<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body 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 class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.p.sock_avp">http://kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.p.sock_avp</a><br>
<br>
Cheers,<br>
DAniel<br>
<br>
<div class="moz-cite-prefix">On 26/10/15 17:00, Alessio Casco wrote:<br>
</div>
<blockquote
cite="mid:CAPeOiHEOiHEss3zA8dWmN8bD4jE3+Ls+zTCqYpzmToR2oR+UEw@mail.gmail.com"
type="cite">
<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
moz-do-not-send="true"
href="mailto:sip%3Aproxy@sip.nexmo.com"
target="_blank"><a class="moz-txt-link-freetext" href="sip:proxy@sip.nexmo.com">sip:proxy@sip.nexmo.com</a></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 class="HOEnZb"><font color="#888888">
<div>Alessio</div>
</font></span></div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a class="moz-txt-link-freetext" href="http://asipto.com/kat">http://asipto.com/kat</a></pre>
</body>
</html>