<div dir="ltr"><div><div><div>Hi,<br><br></div>In the documentation I read the following for "ds_ping_reply_codes":<br><br>"Please note that the response codes the module accepts as valid reply to the
                        PING-Method are not only the ones generated from the remote servers, but also those
                        that are generated locally. E.g.: setting code=408 or class=400 will never set
                        a backend down even if it is, because internally the Kamailio transaction layer
                        generates a 408 in the case of no response from the remote server, and this
                        internal code 408 is accepted as valid value"<br><br></div>Then I can see you set class=4 which probably collides with the above statement.<br><br></div><div>Try removing the class=4 and give it a try. If it works, you can set specific 4xx codes afterwards(if needed).<br><br></div><div>---<br></div>Stefan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 30, 2017 at 4:49 PM, Jean Cérien <span dir="ltr"><<a href="mailto:cerien.jean@gmail.com" target="_blank">cerien.jean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>Hello</div><div><br></div><div>I am working with Kamailio 5.0 dispatcher module. I am aiming at having two or more gateways receiving the traffic with load balancing, and when one fails, that the traffic is distributed among others. Currently, testing with 2 gw.</div><div><br></div><div>I see the options message going out (and not being answered). When I monitor with kamctl dispatcher dump, I never see the faulty gw going inactive (flags remain AP), and calls are still tried to the faulty gw.</div><div><br></div><div>"Best" result so far is with ds_probing_mode=1, the flags start at AX with both gateway up, then AP once they've replied to an OPTIONS, and even if I stop one, and OPTIONS is no longer replied, it stays at AP. when a call comes through, it is tried on this GW (3 invites), and then fails onto the other one. I was expecting that the gw would not be tried if inactive.</div><div><br></div><div>Am I missing something ?</div><div><br></div><div>J.</div><div><br></div><div><div><font face="monospace, monospace">modparam("dispatcher", "db_url", DBURL)</font></div><div><font face="monospace, monospace">modparam("dispatcher", "table_name", "dispatcher")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "flags", 2)</font></div><div><font face="monospace, monospace">modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "sock_avp", "$avp(AVP_SOCK)")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_ping_method", "OPTIONS")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_ping_from", "sip:probe@probe")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_ping_reply_codes", "class=2;class=3;class=4;<wbr>class=5")</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_ping_interval", 30)</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_probing_mode", 1)</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_probing_threshold", 3)</font></div><div><font face="monospace, monospace">modparam("dispatcher", "ds_timer_mode", 1)</font></div></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div>