I forgot to mention that the cancel issue only happens when an internal user is calling outbound via a SIP trunk.
I am able to resolve the issue when in my Route[4] I add the following command rewritehostport("pt1.vitelity.net:5060"); But this in turn messes up when a call is established between an internal user and an external user and one of them hangs up. The BYE message is never received. Here is my full Route[4] route[4] { xlog("L_INFO", "Route 4 Entering Route: call [$rm] rU[$rU] ru[$ru] fu[$fu] tu[$tu] si[$si] ct[$ct]\n"); # routing to the public network t_relay("udp:pt1.vitelity.net:5060"); setbflag(6); # Required to enable Mediaproxy if (!t_relay()) { sl_reply_error(); }; route(1); } Bogdan-Andrei Iancu wrote: > > Hi, > > There were some discussion on the list on the topic if a cancelled call > should hit the failure route or not, or more technically said, if the > "487 request cancelled" should be caught by the failure route or not. > > The argument for transparently and automatically handle this reply is: > if the call was cancelled by the caller, you as a proxy cannot do > anything about (like forking) - you have to obey and send back the > reply. Right now you have to manually handle this case in failure route > via t_was_cancelled() function. So, automatizing this will reduce the > complexity of the script (special cases are automatically handled). > Anyhow, logically speaking, a caller cancelling should not be translated > in a call failure... > > The only argument against is that you will not be able to log info > related to this reply from failure_route - but you can do it from > onreply_route. The accounting part will not be affected at all. > > > > My question is if somebody uses some tricky configuration where he needs > to catch the 487 reply in failure route ? > > > Regards, > Bogdan > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Inquiry-487-Request-Cancelled-processing-tp3056235p3791422.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users