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