Hi,
Below is failure_route content:
failure_route[1] {
if(t_is_canceled())
{
exit;
}
if (use_next_gw()) {
t_relay();
exit;
}
else {
t_reply ("503", "Service not available");
exit;
}
}
Noting that phone is showing : “Service not available” meaning that all destinations in avp list were tried.
Regards,
Ali Taher Technical Support Engineer | | |||
T&F M W A | +961-5-457437 Ext 215 +961-70-010600 Vanrise Building, Facing Galerie Semaan Hazmiyeh Highway – Beirut, Lebanon | |||
Join us at | ||||
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Dmitri Savolainen
Sent: Tuesday, May 26, 2015 5:42 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio drouting failure not working
show failure_route content and response from phone (while clicking on ignore)
2015-05-26 17:33 GMT+03:00 Ali Taher <ataher@vanrise.com>:
Hi,
Thanks for your fast reply.
I tried below condition in failure_route but still rerouted to next destination when clicking on ignore.
Appreciate your help.
Regards,
Ali Taher
Technical Support Engineer
T&F
M
W
A
+961-5-457437 Ext 215
+961-70-010600
Vanrise Building, Facing Galerie Semaan
Hazmiyeh Highway – Beirut, Lebanon
Join us at
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Dmitri Savolainen
Sent: Tuesday, May 26, 2015 5:18 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio drouting failure not working
486 is a busy error;
you may use in faulure_route :
if ( t_is_canceled() ){
exit;
}
2015-05-26 17:09 GMT+03:00 Ali Taher <ataher@vanrise.com>:
Hi,
Thanks for your reply , it’s working fine now.
Yet, when a call is rerouted to a gateway which cancel it (by clicking on ignore button), call is then rerouted to next gateway which is not correct.
I tried to add this condition : If(t_check_status(“486”)) { exit;} in failure_route function to exit when cancel occur , but didn’t work L.
Appreciate your help.
Regards,
Ali Taher
Technical Support Engineer
T&F
M
W
A
+961-5-457437 Ext 215
+961-70-010600
Vanrise Building, Facing Galerie Semaan
Hazmiyeh Highway – Beirut, Lebanon
Join us at
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Dmitri Savolainen
Sent: Tuesday, May 26, 2015 3:40 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] Kamailio drouting failure not working
if (t_check_status("[34][0-9][0-9]")) {
exit;
}
request timeout == 408 error, so "if (use_next_gw()) {" never called
--
Savolainen Dmitri
_______________________________________________
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
--
Savolainen Dmitri
_______________________________________________
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
--
Savolainen Dmitri