[SR-Users] Redirect server vs CANCEL

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 4 09:55:10 CEST 2014


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.

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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany

More information about the sr-users mailing list