Dear Morten and everyone else.<br><br>I&#39;m still struggling with Kamailio as a simple dispatcher for FreeSwitch. This is my configuration so far (with help from Morten): <a href="http://pastebin.com/nBPSpe6S">http://pastebin.com/nBPSpe6S</a><br>

<br>Connecting an iPhone and an Android makes the calls between them timeout.<br>Connecting one of the phones and my laptops makes calls between them produce the error &quot;Too many hops&quot;.<br><br>With all of them I&#39;m able to call in to the Freeswitch, for listening to voicemail, hold music etc.<br>

<br>So I guess it&#39;s still NAT problems or similar?<br><br>Can anyone spot the error, missing thing or something else that is wrong with the config?<br><br>P.S. Adding phones, laptops etc. directly to FreeSwitch, without Kamailio, makes everything works.<br>

<br><div class="gmail_quote">2011/10/7 Henrik Aagaard Sørensen <span dir="ltr">&lt;<a 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 Morten.<br><br>I&#39;ve tested it a lot know, your latest config-example. At it actually works when I connect 2 devices, 1 iPhone and 1 Android. But when connecting 1 phone and my laptop with SFLPhone or Linphone I cannot call the laptop. Does that make any sense?<div>

<div></div><div class="h5"><br>
<br><div class="gmail_quote">2011/10/6 Henrik Aagaard Sørensen <span dir="ltr">&lt;<a 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">


Still getting &quot;Too Many Hops&quot; :(<div><div></div><div><br><br><div class="gmail_quote">On Thu, Oct 6, 2011 at 10:19 PM, Morten Isaksen <span dir="ltr">&lt;<a href="mailto:misak@misak.dk" target="_blank">misak@misak.dk</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Try this one <a href="http://pastebin.com/mahKECAw" target="_blank">http://pastebin.com/mahKECAw</a><br>
<font color="#888888"><br>
/Morten<br>
</font><div><div></div><div><br>
2011/10/6 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com" target="_blank">henrikaagaardsorensen@gmail.com</a>&gt;:<br>
&gt; Hi Morten.<br>
&gt;<br>
&gt; I&#39;ve tried to add that part: <a href="http://pastebin.com/MmKnbKLz" target="_blank">http://pastebin.com/MmKnbKLz</a><br>
&gt;<br>
&gt; But now it won&#39;t even register. Do you know any config-example for a working<br>
&gt; dispatcher for Kamailio?<br>
&gt;<br>
&gt; On Thu, Oct 6, 2011 at 10:54 AM, Morten Isaksen &lt;<a href="mailto:misak@misak.dk" target="_blank">misak@misak.dk</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; This part<br>
&gt;&gt;<br>
&gt;&gt; # handle requests within SIP dialogs<br>
&gt;&gt; route(WITHINDLG);<br>
&gt;&gt;<br>
&gt;&gt; 2011/10/6 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com" target="_blank">henrikaagaardsorensen@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; Hi Morten.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Do you mean anything specific in the standard config:<br>
&gt;&gt; &gt; <a href="http://pastebin.com/Aj4mHAJq" target="_blank">http://pastebin.com/Aj4mHAJq</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Because that handles registrations, subscriber list etc. etc... I&#39;m only<br>
&gt;&gt; &gt; interested in Kamailio as a dispatcher.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; And I&#39;ve already tried adding the PATH module with the use_received<br>
&gt;&gt; &gt; parameter and add_path() and add_path_received() functions. That didn&#39;t<br>
&gt;&gt; &gt; help.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Wed, Oct 5, 2011 at 7:41 PM, Morten Isaksen &lt;<a href="mailto:misak@misak.dk" target="_blank">misak@misak.dk</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; You need to handle in dialog routing - check one of the configs that<br>
&gt;&gt; &gt;&gt; ships with kamailio. Right now Kamailio forwards all SIP packets to<br>
&gt;&gt; &gt;&gt; freeswitch, even the ones that freeswitch sends to Kamailio.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; /Morten<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; 2011/10/5 Henrik Aagaard Sørensen &lt;<a href="mailto:henrikaagaardsorensen@gmail.com" target="_blank">henrikaagaardsorensen@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt; &gt; I have a setup with Kamailio as dispatcher in front of a FreeSwitch<br>
&gt;&gt; &gt;&gt; &gt; server.<br>
&gt;&gt; &gt;&gt; &gt; This is my kamailio.cfg: <a href="http://pastebin.com/8PR2GFBD" target="_blank">http://pastebin.com/8PR2GFBD</a><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I&#39;m currently getting &quot;Too many hops&quot; when calling between SIP<br>
&gt;&gt; &gt;&gt; &gt; clients.<br>
&gt;&gt; &gt;&gt; &gt; I am<br>
&gt;&gt; &gt;&gt; &gt; able to call to FreeSwitch and listen to voicemail, hold music etc.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; After a long conversation with a FreeSwitch expert, and some tests, I<br>
&gt;&gt; &gt;&gt; &gt; was<br>
&gt;&gt; &gt;&gt; &gt; told that Kamailio delivers the wrong IP (NAT problems) to<br>
&gt;&gt; &gt;&gt; &gt; FreeSwitch.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; I&#39;ve also run tshark on both FreeSwitch and Kamailio and when calling<br>
&gt;&gt; &gt;&gt; &gt; between clients they just send the packets between each other.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; Can anyone help me out? I&#39;ve tried to Google a lot for this problem<br>
&gt;&gt; &gt;&gt; &gt; and<br>
&gt;&gt; &gt;&gt; &gt; asked in several IRC channels, mailing lists and forums. Without any<br>
&gt;&gt; &gt;&gt; &gt; luck.<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing<br>
&gt;&gt; &gt;&gt; &gt; list<br>
&gt;&gt; &gt;&gt; &gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt;&gt; &gt;&gt; &gt; <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><br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; Morten Isaksen<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt;&gt; &gt;&gt; <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><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt;&gt; &gt; <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><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Morten Isaksen<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <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><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
&gt; <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><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Morten Isaksen<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<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><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>