Hi, Can we make Kamailio to re-route calls from an address that does not respond to a different address? Thanks,Al
hello; you can do with carrierroute or other routing modules. when address doesn't respond in session time , it gives 408 request timeout. so with failure_route methods, you can re-route calls to different addresss.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/no-response-re-route-calls-to-a-diff... Sent from the Users mailing list archive at Nabble.com.
Thank you for the response. Which function in carrierroute module can check for session time? Is something like this works?
route { if(!cr_route(“SONUS", "0", "$rU", "$rU", "call_id")){ sl_send_reply("408", “Request Timeout"); } else { # Relay the request to the gateway t_relay(); } } failure_route[1] { if (t_check_status("408|5[0-9][0-9]")) { #choose route domain 1 of the default carrier if(cr_route(“SONUS", "1", "$rU", "$rU", "call_id")){ t_relay(); } } } Thanks,Al S
Date: Fri, 11 Sep 2015 07:01:17 -0700 From: yasin.caner@netgsm.com.tr To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] no response, re-route calls to a different address
hello; you can do with carrierroute or other routing modules. when address doesn't respond in session time , it gives 408 request timeout. so with failure_route methods, you can re-route calls to different addresss.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/no-response-re-route-calls-to-a-diff... Sent from the Users mailing list archive at Nabble.com.
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
Hello There is a fr_inv_timer func on TM modules. You can check tm Modules. http://kamailio.org/docs/modules/4.3.x/modules/tm.html
-- View this message in context: http://sip-router.1086192.n5.nabble.com/no-response-re-route-calls-to-a-diff... Sent from the Users mailing list archive at Nabble.com.
Hello,
default kamailio.cfg does re-routing to voicemail server (if you set the address for such server). The mechanism is based on failure_route -- before sending to first destination, arm a failure_route using t_on_failure("name") and then define faolure_route[name] where you handle the case when the first destination doesn't answer.
You can also look at the readme of dispatcher, it has a rather complete example of how a kamailio load balancer does re-routing to a list of gateways.
Another hint, search for sip serial forking to understand the mechanism.
Cheers, Daniel
On 11/09/15 15:54, Al S wrote:
Hi,
Can we make Kamailio to re-route calls from an address that does not respond to a different address?
Thanks, Al
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