<div dir="ltr">Hello Daniel!<div><br></div><div>Adding the sock_avp parameter, fixes the error on the log, but the behaviour is the same as before.</div><div><br></div><div><div><br></div></div><div>As you can see, with nothing listening on those two servers, the loadbalancing it's still disables.</div><div><br></div><div><br></div><div><div>SET: {</div><div><span class="" style="white-space:pre"> </span>ID: 3</div><div><span class="" style="white-space:pre"> </span>TARGETS: {</div><div><span class="" style="white-space:pre"> </span>DEST: {</div><div><span class="" style="white-space:pre"> </span>URI: sip:media22-test.internal:5060</div><div><span class="" style="white-space:pre"> </span>FLAGS: AP</div><div><span class="" style="white-space:pre"> </span>PRIORITY: 0</div><div><span class="" style="white-space:pre"> </span>}</div><div><span class="" style="white-space:pre"> </span>DEST: {</div><div><span class="" style="white-space:pre"> </span>URI: sip:media21-test.internal:5060</div><div><span class="" style="white-space:pre"> </span>FLAGS: AP</div><div><span class="" style="white-space:pre"> </span>PRIORITY: 0</div><div><span class="" style="white-space:pre"> </span>}</div><div><span class="" style="white-space:pre"> </span>}</div><div>}</div></div><div><br></div><div>Thanks</div><div>Alessio</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 27, 2015 at 5:33 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@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 bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
it looks like sock_avp parameter has to be set -- it is there before
4.3.0 release, as I could spot in 'git blame' for dispatcher.c:768.<br>
<br>
Not sure is really needed for failover, I will check its usage when
I get first chance.<br>
<br>
<a href="http://kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.p.sock_avp" target="_blank">http://kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.p.sock_avp</a><br>
<br>
Cheers,<br>
DAniel<div><div class="h5"><br>
<br>
<div>On 26/10/15 17:00, Alessio Casco wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div class="gmail_quote"><br>
<div dir="ltr">Hello!
<div><br>
</div>
<div>We noticed today an issue with the kamailio
loadbalancing.</div>
<div><br>
</div>
<div>Basically kamailio is not considering if an host is up
or not, backends are set always as "FLAGS: AP" even if the
host is down.</div>
<div><br>
</div>
<div>I see this when the proxy starts :</div>
<div><br>
</div>
<div>ERROR: dispatcher [dispatcher.c:768]: ds_warn_fixup():
failover functions used, but required AVP parameters are
NULL -- feature disabled<br>
</div>
<div><br>
</div>
<div>These the parameters I have set:</div>
<div>
<div><br>
</div>
<div>
<div># ----- dispatcher params -----</div>
<div>modparam("dispatcher", "list_file",
"/etc/kamailio/dispatcher.list")</div>
<div>modparam("dispatcher", "dst_avp", "$avp(dsdst)")</div>
<div>modparam("dispatcher", "grp_avp", "$avp(dsgrp)")</div>
<div>modparam("dispatcher", "cnt_avp", "$avp(dscnt)")</div>
<div>modparam("dispatcher", "ds_ping_method", "OPTIONS")</div>
<div>modparam("dispatcher", "ds_ping_reply_codes",
"class=2;class=3;code=404")</div>
<div>modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3Aproxy@sip.nexmo.com" target="_blank"></a><a>sip:proxy@sip.nexmo.com</a>")</div>
<div>modparam("dispatcher", "ds_ping_interval", 20)</div>
<div>modparam("dispatcher", "ds_probing_threshold", 1)</div>
<div>modparam("dispatcher", "ds_probing_mode", 1)</div>
<div>modparam("dispatcher", "ds_hash_size", 10)</div>
<div>modparam("dispatcher", "ds_hash_expire", 3600)</div>
<div>modparam("dispatcher", "ds_hash_initexpire", 60)</div>
<div>modparam("dispatcher", "ds_hash_check_interval",
10)</div>
<div>modparam("dispatcher", "use_default", 0)</div>
<div>modparam("dispatcher", "attrs_pvname",
"$avp(carrierattr)")</div>
<div>modparam("dispatcher", "setid_pvname",
"$avp(carriergroup)")</div>
<div>modparam("dispatcher", "flags", 2)</div>
</div>
</div>
<div><br>
</div>
<div>I use 4.3.3, I think this issue started after upgrading
from 4.3.1 but I can't say for sure.</div>
<div><br>
</div>
<div>Can someone please give us some advices on this?</div>
<div><br>
</div>
<div>Thanks</div>
<span><font color="#888888">
<div>Alessio</div>
</font></span></div>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a href="http://asipto.com/kat" target="_blank">http://asipto.com/kat</a></pre>
</font></span></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>