<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    sorry, haven't actually got to look deep at it, but I updated the
    config file in the dispatcher readme (had in mind to ping you about
    it, but got out of office meanwhile) -- that maybe it will help you:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2523004">http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2523004</a><br>
    <br>
    Should be like full config for load balancing with round robin
    policy, doing failover routing in case of server error or no reply
    from gateways (e.g., freeswitch). Either try with that config or try
    to figure out what you need to plug in your config.<br>
    <br>
    Let me know if works this time.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 11/9/11 12:18 AM, Henrik Aagaard S&oslash;rensen wrote:
    <blockquote
cite="mid:CAGH8SeZhjavB+OpyndGzsMmhxHW=7xr2Hotpz_HGomT_7CKwow@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="color: rgb(34,
        34, 34); font-family: arial, sans-serif; font-size: 13px;
        background-color: rgba(255, 255, 255, 0.917969); ">Hi&nbsp;</span><span
        class="il" style="background-image: initial;
        background-attachment: initial; background-origin: initial;
        background-clip: initial; background-color: rgba(255, 255, 255,
        0.917969); color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; ">Daniel</span><span
        class="Apple-style-span" style="color: rgb(34, 34, 34);
        font-family: arial, sans-serif; font-size: 13px;
        background-color: rgba(255, 255, 255, 0.917969); ">.</span>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); ">
        <br>
      </div>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); ">I just wanted to hear if you have had any time
        to look at the&nbsp;<span class="il" style="background-image:
          initial; background-attachment: initial; background-origin:
          initial; background-clip: initial; background-color: rgb(255,
          255, 204); ">Kamailio</span>&nbsp;Dispatcher &lt;-&gt; FreeSwitch
        problem?</div>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); "><br>
      </div>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); ">
        This is NOT to rush you. I've followed the mailing list and can
        see how busy you are and how much involved you are in all this,
        so I fully respect all the help you give to this mailing list
        etc.</div>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); ">
        <br>
      </div>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); ">Best regards,</div>
      <div style="color: rgb(34, 34, 34); font-family: arial,
        sans-serif; font-size: 13px; background-color: rgba(255, 255,
        255, 0.917969); ">
        <span class="il" style="background-image: initial;
          background-attachment: initial; background-origin: initial;
          background-clip: initial; background-color: rgb(255, 255,
          204); ">Henrik</span></div>
      <br>
      <div class="gmail_quote">
        2011/10/20 Henrik Aagaard S&oslash;rensen <span dir="ltr">&lt;<a
            moz-do-not-send="true"
            href="mailto:henrikaagaardsorensen@gmail.com">henrikaagaardsorensen@gmail.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex;">
          Hi Daniel.<br>
          <br>
          I've just upgraded to 3.2.0.<br>
          <br>
          This is my NEW kamailio.cfg: <a moz-do-not-send="true"
            href="http://pastebin.com/XzXjf1VY" target="_blank">http://pastebin.com/XzXjf1VY</a><br>
          This is my dispatcher.list: <a moz-do-not-send="true"
            href="http://pastebin.com/9dLS8243" target="_blank">http://pastebin.com/9dLS8243</a><br>
          <br>
          I've also attached a ngrep where it errors with "Too many
          hops" with the new version 3.2.0.<br>
          <br>
          Once again, I really appreciate all the help you give! It's
          remarkable with your effort in this.<br>
          <br>
          Best regards,<br>
          Henrik
          <div class="HOEnZb">
            <div class="h5"><br>
              <br>
              <div class="gmail_quote">2011/10/17 Daniel-Constantin
                Mierla <span dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:miconda@gmail.com" target="_blank">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"> I will try to
                    look over the sip traces you sent, although it is
                    tight schedule for the 3.2.0 right now -- so it may
                    take few days.<br>
                    <br>
                    Cheers,<br>
                    <font color="#888888"> Daniel</font>
                    <div>
                      <div><br>
                        <br>
                        On 10/14/11 10:07 PM, Henrik Aagaard S&oslash;rensen
                        wrote:
                        <blockquote type="cite">Yes, <a
                            moz-do-not-send="true"
                            href="http://pbx.my-domain.com"
                            target="_blank">pbx.my-domain.com</a> is
                          pointing to the IP of FreeSwitch.<br>
                          <a moz-do-not-send="true"
                            href="http://sip.my-domain.com"
                            target="_blank">sip.my-domain.com</a> is the
                          domain name for Kamailio.<br>
                          <br>
                          <div class="gmail_quote"> 2011/10/14
                            Daniel-Constantin Mierla <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:miconda@gmail.com"
                                target="_blank">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">
                                <div> <br>
                                  <br>
                                  On 10/14/11 7:06 PM, Henrik Aagaard
                                  S&oslash;rensen wrote:
                                  <blockquote type="cite">My
                                    dispatcher.list currently just
                                    contains:<br>
                                    1 <a moz-do-not-send="true"
                                      href="http://pbx.my-domain.com:5060"
                                      target="_blank">pbx.my-domain.com:5060</a><br>
                                  </blockquote>
                                </div>
                                Is <a moz-do-not-send="true"
                                  href="http://pbx.my-domain.com"
                                  target="_blank">pbx.my-domain.com</a>
                                pointing to the IP address of
                                freeswitch? What is the domain name for
                                kamailio ip address?<br>
                                <font color="#888888"> <br>
                                  Daniel</font>
                                <div>
                                  <div><br>
                                    <br>
                                    <blockquote type="cite"><br>
                                      I will provide a ngrep trace
                                      within an hour or two. Thank you
                                      so much for helping me. I really
                                      hope to get this solved.<br>
                                      <br>
                                      <div class="gmail_quote">2011/10/14
                                        Daniel-Constantin Mierla <span
                                          dir="ltr">&lt;<a
                                            moz-do-not-send="true"
                                            href="mailto:miconda@gmail.com"
                                            target="_blank">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,
                                            <div><br>
                                              <br>
                                              On 10/14/11 4:48 PM,
                                              Henrik Aagaard S&oslash;rensen
                                              wrote:
                                              <blockquote type="cite">Hi
                                                Daniel (and everyone
                                                else) again.<br>
                                                <br>
                                                I've just tried to add:<br>
                                                loadmodule "path.so"<br>
                                                modparam("path",
                                                "use_received", 1)<br>
                                                <br>
                                                and:<br>
                                                add_path_received()<br>
                                                just before the
                                                "if(!t_relay())..." in
                                                the ROUTE part.<br>
                                                <br>
                                                That made both devices
                                                get the error "Too many
                                                loops".<br>
                                              </blockquote>
                                            </div>
                                            what is the content of the
                                            dispatcher list file? Maybe
                                            is better to use
                                            ds_select_domain(...) and
                                            ds_next_domain() -- cannot
                                            say it since I haven't seen
                                            full sip trace, but maybe
                                            the problem is that
                                            freeswitch is sending back
                                            if the r-uri address is
                                            kamailio's address.<br>
                                            <br>
                                            Cheers,<br>
                                            <font color="#888888">
                                              Daniel</font>
                                            <div>
                                              <div><br>
                                                <br>
                                                <blockquote type="cite"><br>
                                                  Moving the
                                                  add_path_received()
                                                  into the part:<br>
                                                  if
                                                  (nat_uac_test("19")) {
                                                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if
                                                  (method=="REGISTER") {
                                                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                                                  fix_nated_register();
                                                  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                                                  add_path_received();<br>
                                                  made the same issues
                                                  as before loading the
                                                  path.so module.<br>
                                                  <br>
                                                  <div
                                                    class="gmail_quote">2011/10/14
                                                    Henrik Aagaard
                                                    S&oslash;rensen <span
                                                      dir="ltr">&lt;<a
                                                        moz-do-not-send="true"
href="mailto:henrikaagaardsorensen@gmail.com" target="_blank">henrikaagaardsorensen@gmail.com</a>&gt;</span><br>
                                                    <blockquote
                                                      class="gmail_quote"
                                                      style="margin:0 0
                                                      0
                                                      .8ex;border-left:1px
                                                      #ccc
                                                      solid;padding-left:1ex">Hi
                                                      Daniel (and
                                                      everyone else).<br>
                                                      <br>
                                                      This is a tshark
                                                      trace (is that as
                                                      good as ngrep?)
                                                      from Kamailio when
                                                      there are too many
                                                      loops: <a
                                                        moz-do-not-send="true"
href="http://pastebin.com/yRjduB0s" target="_blank">http://pastebin.com/yRjduB0s</a><br>
                                                      In this trace I
                                                      got the note that
                                                      253 packets was
                                                      dropped (and
                                                      therefor not in
                                                      the trace).<br>
                                                      <br>
                                                      And this is a
                                                      trace when it
                                                      times out: <a
                                                        moz-do-not-send="true"
href="http://pastebin.com/KT0bJzEU" target="_blank">http://pastebin.com/KT0bJzEU</a><br>
                                                      <br>
                                                      I've actually
                                                      looked at the PATH
                                                      module, and tried
                                                      several things.
                                                      And I know this
                                                      type of question
                                                      is rather
                                                      newbee-like, but
                                                      can you help me
                                                      out with the PATH
                                                      module and how to
                                                      integrate it
                                                      correctly?<br>
                                                      <br>
                                                      I really do
                                                      appreciate all the
                                                      help!
                                                      <div>
                                                        <div><br>
                                                          <br>
                                                          <div
                                                          class="gmail_quote">2011/10/14


                                                          Daniel-Constantin
                                                          Mierla <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:miconda@gmail.com" target="_blank">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>
                                                          when using the
                                                          load balancer
                                                          in front of
                                                          the registrar,
                                                          you have to
                                                          use PATH
                                                          extensions for
                                                          SIP (see path
                                                          module in
                                                          kamailio) in
                                                          order to be
                                                          able to cope
                                                          with nat.<br>
                                                          <br>
                                                          Then, what
                                                          would be
                                                          helpful, will
                                                          be a ngrep
                                                          trace taken on
                                                          kamailio
                                                          server for
                                                          failed calls.<br>
                                                          <br>
                                                          Cheers,<br>
                                                          Daniel
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          On 10/14/11
                                                          4:13 PM,
                                                          Henrik Aagaard
                                                          S&oslash;rensen
                                                          wrote: </div>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div>
                                                          <div>I've
                                                          asked a lot of
                                                          question about
                                                          Kamailio
                                                          Dispatcher in
                                                          front of
                                                          FreeSwitch in
                                                          this mailing
                                                          list. So I'm
                                                          sorry that I'm
                                                          still
                                                          "spamming",
                                                          but it still
                                                          fails.<br>
                                                          <br>
                                                          This is my
                                                          status so far.<br>
                                                          <br>
                                                          When
                                                          connecting 2
                                                          devices
                                                          directly to
                                                          FreeSwitch
                                                          everything
                                                          works. When
                                                          connecting to
                                                          Kamailio, some
                                                          calls fails
                                                          with "Timeout"
                                                          and some fails
                                                          with "Too many
                                                          loops".<br>
                                                          <br>
                                                          This is my
                                                          kamailio.cfg:
                                                          <a
                                                          moz-do-not-send="true"
href="http://pastebin.com/KEuZmikh" target="_blank">http://pastebin.com/KEuZmikh</a><br>
                                                          <br>
                                                          When connected
                                                          directly to
                                                          FreeSwitch
                                                          where
                                                          everything
                                                          works, this is
                                                          how my clients
                                                          are
                                                          registrered in
                                                          FreeSwitch: <a
moz-do-not-send="true" href="http://pastebin.com/prkjkb7g"
                                                          target="_blank">http://pastebin.com/prkjkb7g</a><br>
                                                          <br>
                                                          When connected
                                                          to Kamailio
                                                          where nothing
                                                          works, this is
                                                          how my clients
                                                          are
                                                          registrered in
                                                          FreeSwitch: <a
moz-do-not-send="true" href="http://pastebin.com/b5x6NZyv"
                                                          target="_blank">http://pastebin.com/b5x6NZyv</a><br>
                                                          <br>
                                                          215.197.145.132
                                                          (<a
                                                          moz-do-not-send="true"
href="http://sip.my-domain.com" target="_blank">sip.my-domain.com</a>)
                                                          is my
                                                          Kamailio.<br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://pbx.my-domain.com" target="_blank">pbx.my-domain.com</a> is
                                                          my FreeSwitch.<br>
                                                          96.224.14.164
                                                          is my IP at
                                                          home, where my
                                                          2 devices are
                                                          from.<br>
                                                          <br>
                                                          Can anyone
                                                          help me out?
                                                          I'm kinda lost
                                                          at this point.<br>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <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>
                                                          <font
                                                          color="#888888">
                                                          <br>
                                                          <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, Dec 5-8, 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>
                                                        </div>
                                                      </div>
                                                    </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>
                                                <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, Dec 5-8, 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>
                                              </div>
                                            </div>
                                          </div>
                                        </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>
                                    <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, Dec 5-8, 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>
                                  </div>
                                </div>
                              </div>
                            </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>
                        <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, Dec 5-8, 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>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
      <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>
Kamailio Advanced Training, Dec 5-8, 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>