[SR-Users] Kamailio drouting failure not working

Ali Taher ataher at vanrise.com
Tue May 26 11:14:06 CEST 2015


Dears,

 

I'm trying drouting module in kamailio , it's working good when first
gateway in the list is up , yet when first gateway is unrecheable , it's not
rerouted to second destination, meaning that fail over is not working.

 

Kindly find attached wireshark trace I'm getting .

 

Below is db entries I'm using :

 

dr_gateways:



Dr_gw_lists



 

Dr_groups:



 

Dr_rules:



 

Below is routing block I'm using :

 

request_route{

if (is_method("INVITE"))

                {

                                if (!do_routing("0")) {

                                send_reply("503", "Test No Rules matching
the URI");

                                exit;

               }

                                route(10);

                                exit;

                }

 

}

route[10] {

    if (!do_routing("0")) {

        xlog("do_routing: No rules matching the URI\n");

        send_reply("503","No rules matching the URI");

        exit;

    }

                

    if (is_method("INVITE")) {

        t_on_failure("4");

    }

    route(1);

}

failure_route[4] {

    xlog("DEBUG: DROUTING failure route active\n");

    if (t_check_status("[34][0-9][0-9]")) {

        exit;

    }

    if (use_next_gw()) {

        t_relay();

        exit;

    } else {

    t_reply ("503", "Service not available");

        exit;

    }

}

route[1] {

        # send it out now; use stateful forwarding as it works

        # reliably even for UDP2TCP

        if (!t_relay()) {

         sl_reply_error();

        };

        exit;

}

 

Appreciating your prompt reply and assistance.

 


 



 

Ali Taher

Technical Support Engineer

 

 


T&F          

M

W

A

+961-5-457437 Ext 215

+961-70-010600

 <http://www.vanrise.com/> http://www.vanrise.com 

 
<https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d6
12c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:\Users\Mar
ie\Documents\My%20Received%20Files> Vanrise Building, Facing Galerie Semaan

Hazmiyeh Highway - Beirut, Lebanon


 




Join us at

  <http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533>
<http://www.linkedin.com/company/vanrise-solutions>
<http://twitter.com/VanriseSolution> 

 

					

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2134 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 737 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 677 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 719 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 666 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.png
Type: image/png
Size: 2027 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.png
Type: image/png
Size: 3101 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 3958 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.jpg
Type: image/jpeg
Size: 6289 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio trace.pcapng
Type: application/octet-stream
Size: 15142 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/b3dfab70/attachment.obj>


More information about the sr-users mailing list