[SR-Users] Kamailio drouting failure not working

Daniel-Constantin Mierla miconda at gmail.com
Tue May 26 12:43:41 CEST 2015


Hello,

iirc, you have to set some parameter that is related to AVP storing the
addresses for re-routing. Look at the readme of the module, see the
parameters that have avp in name or something similar.

Cheers,
Daniel

On 26/05/15 12:27, Ali Taher wrote:
>
> Hello,
>
>  
>
> Below are parameters used for drouting module :
>
>  
>
> modparam("drouting", "db_url","mysql://kamailio:ali@localhost/kamailio")
>
> modparam("drouting", "drd_table", "dr_gateways")
>
> modparam("drouting", "drr_table", "dr_rules")
>
> modparam("drouting", "drg_table", "dr_groups")
>
> modparam("drouting", "drl_table", "dr_gw_lists")
>
> modparam("drouting", "sort_order", 0)
>
>  
>
> regards,
>
>  
>
>  
>
> Description: Description: cid:image001.png at 01CDB75E.FF3A44B0
>
> 	
>
> * *
>
> *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/>__
>
> Vanrise Building
> <https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d612c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:%5CUsers%5CMarie%5CDocuments%5CMy%20Received%20Files>,
> Facing Galerie Semaan
>
> Hazmiyeh Highway – Beirut, Lebanon
>
>  
>
> 	
>
> /Description: Description: cid:image002.png at 01CDB75E.FF3A44B0/
>
> /Join us at/
>
> 	
>
>  Description: Description: cid:image006.png at 01CDB760.3643AA40
> <http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533>Description:
> Description: cid:image007.png at 01CDB760.3643AA40
> <http://www.linkedin.com/company/vanrise-solutions> Description:
> Description: cid:image008.png at 01CDB760.3643AA40
> <http://twitter.com/VanriseSolution>
>
> * *
>
>
> 	
> 	
> 	
> 	
>
>  
>
>  
>
>  
>
>  
>
> *From:*sr-users [mailto:sr-users-bounces at lists.sip-router.org] *On
> Behalf Of *Daniel-Constantin Mierla
> *Sent:* Tuesday, May 26, 2015 12:57 PM
> *To:* Kamailio (SER) - Users Mailing List
> *Subject:* Re: [SR-Users] Kamailio drouting failure not working
>
>  
>
> Hello,
>
> what are the parameters for drouting module?
>
> Cheers,
> Daniel
>
> On 26/05/15 11:14, Ali Taher wrote:
>
>     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.
>
>      
>
>      
>
>     Description: Description: cid:image001.png at 01CDB75E.FF3A44B0
>
>     	
>
>     * *
>
>     *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/>__
>
>     Vanrise Building
>     <https://maps.google.com/maps/ms?msa=0&msid=208243362929850217065.0004cbc8d612c5f9b4237&ie=UTF8&t=h&vpsrc=0&z=19&iwloc=0004cbc8e4652b4edf71cC:%5CUsers%5CMarie%5CDocuments%5CMy%20Received%20Files>,
>     Facing Galerie Semaan
>
>     Hazmiyeh Highway – Beirut, Lebanon
>
>      
>
>     	
>
>     /Description: Description: cid:image002.png at 01CDB75E.FF3A44B0/
>
>     /Join us at/
>
>     	
>
>      Description: Description: cid:image006.png at 01CDB760.3643AA40
>     <http://www.facebook.com/pages/Vanrise-Solutions-Offshore/128309743915533>Description:
>     Description: cid:image007.png at 01CDB760.3643AA40
>     <http://www.linkedin.com/company/vanrise-solutions> Description:
>     Description: cid:image008.png at 01CDB760.3643AA40
>     <http://twitter.com/VanriseSolution>
>
>     * *
>
>
>     	
>     	
>     	
>     	
>
>      
>
>      
>
>
>
>
>     _______________________________________________
>
>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>
>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> -- 
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
> Kamailio World Conference, May 27-29, 2015
> Berlin, Germany - http://www.kamailioworld.com

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/18763edc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 2134 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/18763edc/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 737 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/18763edc/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 677 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/18763edc/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 719 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/18763edc/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 666 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150526/18763edc/attachment-0004.png>


More information about the sr-users mailing list