On Jun 07, 2010 at 19:22, inge <i...@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 _______________________________________________ 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