is_local cannot be used in branch_route block

1 message Options
Embed this post
Permalink
Juha Heinanen

is_local cannot be used in branch_route block

Reply Threaded More More options
Print post
Permalink
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

_______________________________________________
sr-dev mailing list
[hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev