Hi Gents,
We have created a small redirect server using the Lua API to get the destinations. Lets say that it takes some time while the script generates the answer, during this time we got a CANCEL. How we can handle this properly ? As far as I could see the TM module always sends back the answer (302) and after that I get the "CANCEL" in my script.
Here is my config: http://pastebin.com/7PyKBJyD Here is my test Lua script: http://pastebin.com/6VXn5y8m
Could you please help me what is the best way to handle the CANCEL ? Is it possible to do it properly ?
Thanks, Misi
Hello,
try to use t_newtran() before executing the lua script and from lua use t_reply() -- I expect it aggregates the responses and should no longer send the redirect.
If it doesn't work, you can look at using htable to mark that the cancel was arriving and then don't send reply.
Cheers, Daniel On 21/08/14 11:55, Mihaly Zachar wrote:
Hi Gents,
We have created a small redirect server using the Lua API to get the destinations. Lets say that it takes some time while the script generates the answer, during this time we got a CANCEL. How we can handle this properly ? As far as I could see the TM module always sends back the answer (302) and after that I get the "CANCEL" in my script.
Here is my config: http://pastebin.com/7PyKBJyD Here is my test Lua script: http://pastebin.com/6VXn5y8m
Could you please help me what is the best way to handle the CANCEL ? Is it possible to do it properly ?
Thanks, Misi
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users