<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    please keep the mainling list cc-ed.<br>
    <br>
    Calling ds_select_dst() first in the main route block is not really
    a good place. First you have to handle sanity checks, within dialog
    requests a.s.o. Of course it is a matter of your purpose, but as
    general hint, selecting the destination should be done just (or as
    close as possible) before relaying.<br>
    <br>
    If you take default config and you have only load balancing, then
    you can replace location lookup part with load balancing. Other
    parts may be stripped as well, just giving some direction here.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 9/28/11 11:11 PM, Henrik Aagaard S&oslash;rensen wrote:
    <blockquote
cite="mid:CAGH8SeaLSyGgZoxRSM2+So8DRi6qWS-cUJkCg4v=PGzeY=oH_w@mail.gmail.com"
      type="cite">That did the job.<br>
      <br>
      I just placed the ds_select_dst-code at the very first thing after
      route{<br>
      <br>
      Thank you for your help!<br>
      <br>
      <div class="gmail_quote">2011/9/28 Daniel-Constantin Mierla <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><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>
            the devel version of dispatcher module README has a
            different config example, maybe it helps you more:<br>
            <br>
            <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id2522847"
              target="_blank">http://kamailio.org/docs/modules/devel/modules_k/dispatcher.html#id2522847</a><br>
            <br>
            I am considering to update it again soon to be a bit more
            complete and follow the structure of the default config file
            shipped with kamailio.<br>
            <br>
            Cheers,<br>
            Daniel
            <div>
              <div class="h5"><br>
                <br>
                On 9/28/11 6:30 PM, Henrik Aagaard S&oslash;rensen wrote:
                <blockquote type="cite">Hi Carsten.<br>
                  <br>
                  The configuration works. It's actually where (which
                  line) in the configuration I should put:<br>
                  ds_select_dst("1", "0");<br>
                  <br>
                  :) I'm not strong in Kamailio and just want it to load
                  balance between Freswitch servers. So I have a basic
                  installation of Kamailio, without MySQL, NAT, Auth
                  etc.<br>
                  <br>
                  <div class="gmail_quote">On Wed, Sep 28, 2011 at 5:09
                    PM, Carsten Bock <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:carsten@ng-voice.com"
                        target="_blank">carsten@ng-voice.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      Hi,<br>
                      <br>
                      When you've got problems with placing
                      "ds_select_dst()" in your<br>
                      config, you should do the following:<br>
                      - Open an Editor of your choice<br>
                      - go to the line, where you want to place it<br>
                      - type: ds_select_dst("1", "0");<br>
                      - save &amp; exit<br>
                      <br>
                      Just kidding! You should do the following with
                      your config:<br>
                      kamailio -f &lt;path-to-your-config&gt; -c<br>
                      <br>
                      What error is displayed? If none, then check your
                      syslog for errors.<br>
                      Could you post your config? It is better to put a
                      full path in the<br>
                      config to the dispatcher-file... otherwise it
                      might be dependent of,<br>
                      where you are running the
                      init.d-skript/kamailio....<br>
                      <br>
                      I am using dispatcher in Kamailio 1.5, 3.1 and
                      3.2, everythings works<br>
                      fine with me.<br>
                      <br>
                      Kind regards,<br>
                      Carsten<br>
                      <br>
                      2011/9/28 Henrik Aagaard S&oslash;rensen &lt;<a
                        moz-do-not-send="true"
                        href="mailto:henrikaagaardsorensen@gmail.com"
                        target="_blank">henrikaagaardsorensen@gmail.com</a>&gt;:<br>
                      <div>
                        <div>&gt; I've installed 2 Freeswitch on
                          different servers and would like to have<br>
                          &gt; Kamailio load balance between them.<br>
                          &gt;<br>
                          &gt; I've installed Kamailio following:<br>
                          &gt; <a moz-do-not-send="true"
href="http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git"
                            target="_blank">http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-3.1.x-from-git</a><br>
                          &gt;<br>
                          &gt; I've created dispatcher.list and added:<br>
                          &gt;<br>
                          &gt; loadmodule "dispatcher.so"<br>
                          &gt;<br>
                          &gt; modparam("dispatcher", "list_file",
                          "../etc/dispatcher.list")<br>
                          &gt;<br>
                          &gt; in the kamailio.cfg.<br>
                          &gt;<br>
                          &gt; But looking at:<br>
                          &gt; <a moz-do-not-send="true"
                            href="http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html"
                            target="_blank">http://kamailio.org/docs/modules/3.1.x/modules_k/dispatcher.html</a><br>
                          &gt; I'm having difficulties to placing:<br>
                          &gt;<br>
                          &gt; ds_select_dst("1", "0");<br>
                          &gt;<br>
                          &gt; in the kamailio.cfg that was created
                          originally.<br>
                          &gt;<br>
                          &gt; Can anyone help me?<br>
                          &gt;<br>
                        </div>
                      </div>
                      &gt;
                      _______________________________________________<br>
                      &gt; SIP Express Router (SER) and Kamailio
                      (OpenSER) - sr-users mailing list<br>
                      &gt; <a moz-do-not-send="true"
                        href="mailto:sr-users@lists.sip-router.org"
                        target="_blank">sr-users@lists.sip-router.org</a><br>
                      &gt; <a moz-do-not-send="true"
                        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><br>
                      &gt;<br>
                      &gt;<br>
                      <br>
                      <br>
                      <br>
                      --<br>
                      Carsten Bock<br>
                      CEO (Gesch&auml;ftsf&uuml;hrer)<br>
                      <br>
                      ng-voice GmbH i. Gr.<br>
                      Schomburgstr. 80<br>
                      D-22767 Hamburg / Germany<br>
                      <br>
                      <a moz-do-not-send="true"
                        href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
                      mailto:<a moz-do-not-send="true"
                        href="mailto:carsten@ng-voice.com"
                        target="_blank">carsten@ng-voice.com</a><br>
                      <br>
                      Mobile <a moz-do-not-send="true"
                        href="tel:%2B49%20179%202021244"
                        value="+491792021244" target="_blank">+49 179
                        2021244</a><br>
                      Office <a moz-do-not-send="true"
                        href="tel:%2B49%2040%2034927219"
                        value="+494034927219" target="_blank">+49 40
                        34927219</a><br>
                      Fax <a moz-do-not-send="true"
                        href="tel:%2B49%2040%2034927220"
                        value="+494034927220" target="_blank">+49 40
                        34927220</a><br>
                      <br>
                      _______________________________________________<br>
                      SIP Express Router (SER) and Kamailio (OpenSER) -
                      sr-users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:sr-users@lists.sip-router.org"
                        target="_blank">sr-users@lists.sip-router.org</a><br>
                      <a moz-do-not-send="true"
                        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><br>
                    </blockquote>
                  </div>
                  <br>
                  <br>
                  <fieldset></fieldset>
                  <br>
                  <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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>
</pre>
                </blockquote>
                <br>
              </div>
            </div>
            <font color="#888888">
              <pre cols="72">-- 
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
            </font></div>
        </blockquote>
      </div>
      <br>
    </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>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>