[SR-Users] Kamailio- Redirect message 300 with LCR reroute

Fatima Chahrour~Vanrise Support fchahrour at vanrise.com
Thu Oct 18 14:18:35 CEST 2012


Dear List,

 

I'd like to get help regarding my case.

I have the following script where many thanks to Daniel has helped me in 

 

if (is_method("INVITE"))

                {              

                  if (!load_gws(1, $rU, $fu)) {

                  sl_send_reply("502", "Unable To lOad GatEwAyS");

                  exit;}

 

                  if(!next_gw()){

                  sl_send_reply("503", "Unable To fInD a gateWaY");

                  exit;}

 

                  while(next_gw()){

                  km_append_branch(); }

                

                  sl_send_reply("302","Moved Temporary");


                  exit;                                     

                }                              

 

The problem am facing is that the call is rerouting from the first gateway
to the next gateway successfully when I have two gateways. BUT when I have
three gateways, and the first two gateways are off, the call is not rerouted
to the third gateway. It keeps hitting the seconds gateway and gives request
time out at the end

 

Why is that?

 

Thanks in advance,

F Chahrour

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121018/df99fb94/attachment.htm>


More information about the sr-users mailing list