[SR-Users] LCR routing, and finaly route to media gateway if not found

Daniel Tryba d.tryba at pocos.nl
Mon Sep 26 11:52:03 CEST 2016

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 at 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 at errorserver.local";

More information about the sr-users mailing list