<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    first you should use the config file from readme, it is more complete
    in what you need.<br>
    <br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2523101">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2523101</a><br>
    <br>
    Then it seems there are no records in the database table dispatcher,
    or they are wrong. Can you paste them here?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 3/7/13 12:57 PM, Ali Jawad wrote:<br>
    </div>
    <blockquote
cite="mid:CAG2QdgakJ-7G+8-1oTzv5rcuai6x4Ep+0XJZwfoZGNhD4Fmi+g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi
        <div>I am using carrieroute to distribute traffic, I am not sure
          if there is a way for carrieroute to detect if a destination
          is down or not, but I read that the dispatcher module does
          that so I did compile it into the&nbsp;existing&nbsp;kamailio
          installation and added the following settings :</div>
        <div><br>
        </div>
        <div>
          <div>loadmodule "dispatcher.so"</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>modparam("dispatcher","db_url",
            "mysql://connectionstring")</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", "flags_col", "flags")</div>
          <div>modparam("dispatcher", "priority_col", "priority")</div>
          <div><br>
          </div>
          <div>modparam("dispatcher", "force_dst", 1)</div>
          <div><br>
          </div>
          <div>and under ROUTE</div>
          <div>
            <br>
          </div>
          <div>
            <div><br>
            </div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; if ( !mf_process_maxfwd_header("10") )</div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; {</div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("483","To Many Hops");</div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drop();</div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; };</div>
            <div><br>
            </div>
            <div>xlog("L_ERR","************************AFTER TOO MANY
              HOPS******************************************* cr\n");</div>
            <div><br>
            </div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; ds_select_dst("1", "0");</div>
            <div><br>
            </div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; forward();</div>
            <div>&nbsp; &nbsp; &nbsp; &nbsp; # t_relay();</div>
            <div><br>
            </div>
          </div>
          <div><br>
          </div>
          <div>All I get is too many hops in ngrep and kamailio reports
            : (26467) ERROR: dispatcher [dispatch.c:1564]: no
            destination sets</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>In the DB I do have a setid 1 and <a class="moz-txt-link-freetext" href="sip:ip.of.carrer:5060">sip:ip.of.carrer:5060</a>
            as destination.</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div style="color:rgb(136,136,136)">Regards</div>
          <div style="color:rgb(136,136,136)">
            <br>
          </div>
        </div>
      </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 World Conference, April 16-17, 2013, Berlin
 - <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
  </body>
</html>