Sérgio Charrua
www.voip.pt
Tel.: +351 21 130 71 77
Email : sergio.charrua@voip.pt
This message and any files or documents attached are strictly confidential or otherwise legally protected. It is intended only for the individual or entity named. If you are not the named addressee or have received this email in error, please inform the sender immediately, delete it from your system and do not copy or disclose it or its contents or use it for any purpose. Please also note that transmission cannot be guaranteed to be secure or error-free. |
_______________________________________________Hi Sergio,
Make sure your dispatcher probing parameters are set correctly. (reply codes as well).And if it happens again you can catch OPTIONS traffic with sngrep "CSeq: [0-9]+ OPTIONS"
and see what happens on this level.
Whether Kamailio does send pings, whether replies from gw are the same as expected, etc.Regards,On Wed, Sep 16, 2020 at 5:55 PM David Villasmil <david.villasmil.work@gmail.com> wrote:HelloI would start by looking at the logs when that happens. The gateway would only get marked "ip" when there is no reply by the gateway or when it replies with 500. Also OPTIONs not being replied promptly.Maybe add some logging right before ds_mark_dst("ip").Hope that helps,Regards,_______________________________________________On Wed, Sep 16, 2020 at 11:40 AM Sergio Charrua <sergio.charrua@voip.pt> wrote:_______________________________________________Hello,Using Kamailio 5.1.6 for load balancing & failover,I noticed that from time to time, and very rarely, the dispatcher module stops dispatching to the Asterisk servers.I have to execute a "kamcmd dispatcher reload" for it to (re)start working.This is my dispatcher.list :1 sip:10.19.XXX.YYY:5060 0 1 duid=sipgw01;maxload=1001 sip:10.19.XXX.YYY:5060 0 2 duid=sipgw02;maxload=1001 sip:10.19.XXX.YYY:5060 0 3 duid=sipgw03;maxload=1001 sip:10.19.XXX.YYY:5060 0 4 duid=sipgw04;maxload=100This is my dispatch routes:# Dispatch requestsroute[DISPATCH] {if(!ds_select_dst("1", "10","4")){xlog("L_INFO","no destination selected from dispatcher list!");send_reply("404", "No destination");exit;}xlog("L_INFO","going to <$ru> via <$du>\n");t_on_failure("RTF_DISPATCH");route(RELAY);exit;}# Sample failure routefailure_route[RTF_DISPATCH] {if (t_is_canceled()) {exit;}xlog("L_INFO", "Media server $du failed to answer, selecting other one!");# next DST - only for 500 or local timeoutif ( t_check_status("500") || (t_branch_timeout() && !t_branch_replied()) ){#mark the destination Inactive and Probingds_mark_dst("ip");if(ds_next_dst()){t_on_failure("RTF_DISPATCH");route(RELAY);exit;}}}I suspect that the ds_mark_dst("ip") command in RTF_DISPACTH is the cause.Is there any think I can improve on this? Or any know bug with the dispatcher in Kamailio 5.1.6 version?Thanks in advance,Sérgio Charrua
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--Arsen Semenov
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users