<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
do you get any errors in the log?<br>
<br>
Be aware that hash functions may return same code for different
input values. A hash function is guaranteed to return same code for
same input value, but there can be collisions of codes for
different values.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 6/3/12 3:41 PM, SamyGo wrote:<br>
</div>
<blockquote
cite="mid:CAJUJwthRn8e8-eK77wDB1J473fmy8-fmXm4yEOTdXqvmSqu-CQ@mail.gmail.com"
type="cite">Hello,
<div><br>
</div>
<div>I'm having trouble using algorithm 7 in dispatcher module.
Here is my kamailio version. The problem is that despite
multiple dispatcher entries corresponding to one set all calls
go only to only one destination.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><font face="courier new, monospace">[root@control1 ~]#
kamailio -V</font></div>
<div><font face="courier new, monospace">version: kamailio 3.2.3
(x86_64/linux) 59f87e</font></div>
<div>
<font face="courier new, monospace">flags: STATS: Off,
USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES</font></div>
<div><font face="courier new, monospace">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE
1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB</font></div>
<div><font face="courier new, monospace">poll method support:
poll, epoll_lt, epoll_et, sigio_rt, select.</font></div>
<div><font face="courier new, monospace">id: 59f87e</font></div>
<div><font face="courier new, monospace">compiled on 18:04:08
Apr 19 2012 with gcc 4.1.2</font></div>
<div><font face="courier new, monospace">[root@control1 ~]#</font></div>
</div>
<div><br>
</div>
<div>
<div>Here is the dipacther module params.</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div># ------- Load-balancer params ------</div>
<div>modparam("dispatcher", "db_url", DBURL)</div>
<div>modparam("dispatcher", "table_name", "dispatcher")</div>
<div>modparam("dispatcher", "setid_col", "setid")</div>
<div>modparam("dispatcher", "destination_col", "destination")</div>
<div>modparam("dispatcher", "force_dst", 1)</div>
<div>modparam("dispatcher", "flags", 3)</div>
<div>modparam("dispatcher", "dst_avp", "$avp(i:271)")</div>
<div>modparam("dispatcher", "cnt_avp", "$avp(i:273)")</div>
<div>modparam("dispatcher", "ds_ping_from",
<a class="moz-txt-link-rfc2396E" href="sip:proxy@109.XXX.2XX.XX">"sip:proxy@109.XXX.2XX.XX"</a>)</div>
<div>modparam("dispatcher", "ds_ping_interval",15)</div>
<div>modparam("dispatcher", "ds_probing_mode", 1)</div>
<div>modparam("dispatcher", "ds_ping_reply_codes",
"class=2;code=403;code=404;code=484;class=3")</div>
<div>modparam("dispatcher", "hash_pvar", "$avp(i:274)")</div>
<div>modparam("dispatcher", "ds_hash_size", 9)</div>
<div>modparam("dispatcher", "ds_hash_initexpire", 60)</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Below is the function call based on avp(i:274)</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>avp_db_query("select uid from uid_did_map where accountcode
= '$fU'","$avp(i:274)");</div>
<div>xlog("L_INFO","$rm from $fu (IP:$si:$sp) ---------
UID:'$avp(i:274)-----------'\n");</div>
<div> ds_load_update();</div>
<div> if(!ds_select_dst("1","7")) {</div>
<div> sl_send_reply("500", "No
destination available");</div>
<div> xlog("route[MAIN] : $rm : No
destinations available for $rd");</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I'm getting two different values for avp(i:274) {26,29} but
the destination are not hashed on its base.</div>
<div><br>
</div>
<div>Please help.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Sammy G.</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://www.asipto.com">http://www.asipto.com</a>
<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>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
<br>
<br>
</body>
</html>