[sr-dev] [kamailio/kamailio] cfgt: wrong route name if onsend_route is not declared at the beginning (#1536)

Marco Capetta notifications at github.com
Mon May 21 10:20:54 CEST 2018


kamailio version: kamailio 5.1.2 (x86_64/linux)

If "onsend_route" routing block is defined at the beginning of the kamailio.cfg routing part, the name defined in "src/core/cfg.lex" file (DEFAULT_SEND) is used when printed in the json files.

Instead, if this routing block is defined in between the configuration, its name is changed to the previous defined block.
For example, if the cfg file looks like the following:

route[TEST_1]
{
    ...
}
onsend_route
{
    ...
}
route[TEST_2]
{
    ...
}

then in the output json file, the "onsend_route" block is called TEST_1.


The issue doesn't happen for "request_route" block.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1536
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180521/0514f278/attachment.html>


More information about the sr-dev mailing list