On Thu, Aug 11, 2016 at 04:46:38PM +0300, jaflong jaflong wrote: > kamailio A relays to kamailio B > kamailio B send 300 redirect back to kamailio A > > > In this setup how do I catch the redirect response back from kamailio B > What conditions should I do to catch and further process the redirect message
You need to set a failure route that handles the 300. There you need to parse the Contact header of the response, eg: if (t_check_status("300")) { $du=null $ru=$T_rpl($ct); route(RELAY); exit; } _______________________________________________ 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