[sr-dev] is_local cannot be used in branch_route block

Juha Heinanen jh at tutpro.com
Sat Jul 4 13:10:20 CEST 2009


i tried to replace k domain module with s, but got this kind of show
stopper:

 0(3499) : <core> [cfg.y:3020]: parse error in config file, line 1877, column 30: Command cannot be used in the block

the line in question is

   	if (is_local("@ruri.host")) {

and the block is branch_route block.

can BRANCH_ROUTE be just added to the list

    {"is_local",      is_local,              1, fixup_var_str_1,     REQUEST_ROUTE|FAILURE_ROUTE },

or will it result into problems?

-- juha



More information about the sr-dev mailing list