On Fri, Sep 23, 2016 at 03:59:20PM +0200, Loic Chabert wrote: > - I have some sbc for one destination. If one destination fail, kamailio > try to second one etc.. > - If no SBC is available for this destination (for exemple, all are down), > i want to send my call to an error server (asterisk), play an error sound. > > To accomplish this, i re-write the RURI: "sip:error1@errorserver.local", > and launch RELAY route. But kamailio dont make a DNS query to find IP of > "errorserver.local", only change RURI and try to send to the last LCR > gateway. > > I have also try to add a new branch, but same result... Why kamailio do not > make a new DNS query ?
I never used the LCR module myself, but the documentation mentions that the module "sets the R-URI and possibly the destination URI". If $du is set any modification of R-URI is just send to the same destination. The solution might be: $ru="sip:error1@errorserver.local"; $du=$null; _______________________________________________ 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