Hi all,
I try to do something like this on my failure_route[1] :
if (t_check_status("503")) {
if (ip_src==A.B.C.D) { ... } }
The goal, is to prevent a 503 from a PSTN gateway and try another one for terminating the call.
But, I realize that "src_ip" is the IP source of SIP Request.
What could be a possible way to match IP source of the 503 responses ?
Regards,
Adrien L.
On Friday 04 June 2010, inge wrote:
[..] The goal, is to prevent a 503 from a PSTN gateway and try another one for terminating the call.
But, I realize that "src_ip" is the IP source of SIP Request.
What could be a possible way to match IP source of the 503 responses ?
Hi inge,
have you tried the T_rpl(..) PV? http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x#t_rpl_pv
If you use 3.0 you need to load the tmx module to be able to access this PV.
Regards,
Henning
Hi Henning,
Thanks for your reply.
I'm using ser 0.9.9. It looks to answer my need, but I need something usable on this branch.
If anyone have an idea?
Regards,
Adrien .L
Le vendredi 04 juin 2010 à 16:36 +0200, Henning Westerholt a écrit :
On Friday 04 June 2010, inge wrote:
[..] The goal, is to prevent a 503 from a PSTN gateway and try another one for terminating the call.
But, I realize that "src_ip" is the IP source of SIP Request.
What could be a possible way to match IP source of the 503 responses ?
Hi inge,
have you tried the T_rpl(..) PV? http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x#t_rpl_pv
If you use 3.0 you need to load the tmx module to be able to access this PV.
Regards,
Henning
On Jun 07, 2010 at 19:22, inge inge@legos.fr wrote:
Hi Henning,
Thanks for your reply.
I'm using ser 0.9.9. It looks to answer my need, but I need something usable on this branch.
If anyone have an idea?
Try setting a flag in onreply_route if the src_ip match and then check it in the failure route. E.g.:
onreply_route { if (src_ip == .... ) setflag(8); # 0.9.x does not support named flags }
failure_route { if (isflagset(8) && t_check_status("503")) { # reply from gw ... } }
Andrei
Le vendredi 04 juin 2010 à 16:36 +0200, Henning Westerholt a écrit :
On Friday 04 June 2010, inge wrote:
[..] The goal, is to prevent a 503 from a PSTN gateway and try another one for terminating the call.
But, I realize that "src_ip" is the IP source of SIP Request.
What could be a possible way to match IP source of the 503 responses ?
Hi inge,
have you tried the T_rpl(..) PV? http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x#t_rpl_pv
If you use 3.0 you need to load the tmx module to be able to access this PV.
Regards,
Henning
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
Hi Andrei,
Great idea !
It seems to work. Thank you.
Regards,
Adrien .L
Le lundi 07 juin 2010 à 21:52 +0200, Andrei Pelinescu-Onciul a écrit :
On Jun 07, 2010 at 19:22, inge inge@legos.fr wrote:
Hi Henning,
Thanks for your reply.
I'm using ser 0.9.9. It looks to answer my need, but I need something usable on this branch.
If anyone have an idea?
Try setting a flag in onreply_route if the src_ip match and then check it in the failure route. E.g.:
onreply_route { if (src_ip == .... ) setflag(8); # 0.9.x does not support named flags }
failure_route { if (isflagset(8) && t_check_status("503")) { # reply from gw ... } }
Andrei
Le vendredi 04 juin 2010 à 16:36 +0200, Henning Westerholt a écrit :
On Friday 04 June 2010, inge wrote:
[..] The goal, is to prevent a 503 from a PSTN gateway and try another one for terminating the call.
But, I realize that "src_ip" is the IP source of SIP Request.
What could be a possible way to match IP source of the 503 responses ?
Hi inge,
have you tried the T_rpl(..) PV? http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x#t_rpl_pv
If you use 3.0 you need to load the tmx module to be able to access this PV.
Regards,
Henning
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