<div>Hi,</div><div><br></div>No, nothing at all. I haven&#39;t went too deep into debug logs but no internal error was appearing. Everything was as calm as ever and I only get one destination uri.<div><br></div><div>So maybe what I&#39;m getting from your email is that , for this to work the way I expect is to have more unique and random values in my hash_pvar to get the required functionality. <br>
<div><br>Thanks once again,</div><div>BR</div><div>SG</div><div><br><div class="gmail_quote">On Mon, Jun 4, 2012 at 11:52 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</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>
    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<div><div class="h5"><br>
    <br>
    <div>On 6/3/12 3:41 PM, SamyGo wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">Hello,
      <div><br>
      </div>
      <div>I&#39;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(&quot;dispatcher&quot;, &quot;db_url&quot;, DBURL)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;table_name&quot;, &quot;dispatcher&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;setid_col&quot;, &quot;setid&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;destination_col&quot;, &quot;destination&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;force_dst&quot;, 1)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;flags&quot;, 3)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;dst_avp&quot;, &quot;$avp(i:271)&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;cnt_avp&quot;, &quot;$avp(i:273)&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;ds_ping_from&quot;,
          <a>&quot;sip:proxy@109.XXX.2XX.XX&quot;</a>)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;ds_ping_interval&quot;,15)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;ds_probing_mode&quot;, 1)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;ds_ping_reply_codes&quot;,
          &quot;class=2;code=403;code=404;code=484;class=3&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;hash_pvar&quot;, &quot;$avp(i:274)&quot;)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;ds_hash_size&quot;, 9)</div>
        <div>modparam(&quot;dispatcher&quot;, &quot;ds_hash_initexpire&quot;, 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(&quot;select uid from uid_did_map where accountcode
          = &#39;$fU&#39;&quot;,&quot;$avp(i:274)&quot;);</div>
        <div>xlog(&quot;L_INFO&quot;,&quot;$rm from $fu (IP:$si:$sp) ---------
          UID:&#39;$avp(i:274)-----------&#39;\n&quot;);</div>
        <div>        ds_load_update();</div>
        <div>        if(!ds_select_dst(&quot;1&quot;,&quot;7&quot;)) {</div>
        <div>                        sl_send_reply(&quot;500&quot;, &quot;No
          destination available&quot;);</div>
        <div>                        xlog(&quot;route[MAIN] : $rm : No
          destinations available for $rd&quot;);</div>
        <div>                        exit;</div>
        <div>        }</div>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>I&#39;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></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://www.asipto.com" target="_blank">http://www.asipto.com</a>
<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>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a href="http://asipto.com/u/kpw" target="_blank">http://asipto.com/u/kpw</a></pre>
    <br>
    <br>
  </font></span></div>

</blockquote></div><br></div></div>