Hi How can I move force_send_socket() call into branch_route? Could someone give me an example, please. Thank you Ernest I have this script: ######################################################################## # Failure route 'pstn-failover' ######################################################################## failure_route[1] { xlog("L_INFO", "Failure route for PSTN entered - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); route(16); if(!next_gw()) { xlog("L_ERR", "Failed to select next PSTN gateway - M=$rm RURI=$ru F=$fu T=$tu IP=$si ID=$ci\n"); route(5); exit; } t_on_failure("1"); switch($rd) { case "10.10.10.2": force_send_socket(udp:10.10.10.1:5060); case "10.10.10.4": force_send_socket(udp:10.10.10.3:5060); case "10.10.10.6": force_send_socket(udp:10.10.10.5:5060); case "10.10.10.8": force_send_socket(udp:10.10.10.7:5060); break; } route(7); } On 29. 06. 2010 13:44, Geoffrey Mina wrote: Yeah, Juha's suggestion worked perfectly. As soon as I moved the force_send_socket() call into branch_route everything started working. --
Ernest Mavrel technical support Novatel d.o.o. informacijske tehnologije Mariborska 88, SI - 3000 Celje tel: +386 (0)82 800 823 fax: +386 (0)82 800 821 mobile: +386 (0)51 436 453 e-mail: ernest.mav...@novatel.si |
_______________________________________________ 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