[SR-Users] Kamailio Dispatcher fails in front of FreeSwitch, help (again).

Henrik Aagaard Sørensen henrikaagaardsorensen at gmail.com
Fri Oct 14 22:07:31 CEST 2011


Yes, pbx.my-domain.com is pointing to the IP of FreeSwitch.
sip.my-domain.com is the domain name for Kamailio.

2011/10/14 Daniel-Constantin Mierla <miconda at gmail.com>

>
>
> On 10/14/11 7:06 PM, Henrik Aagaard Sørensen wrote:
>
> My dispatcher.list currently just contains:
> 1 pbx.my-domain.com:5060
>
> Is pbx.my-domain.com pointing to the IP address of freeswitch? What is the
> domain name for kamailio ip address?
>
> Daniel
>
>
>
> 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.
>
> 2011/10/14 Daniel-Constantin Mierla <miconda at gmail.com>
>
>>  Hello,
>>
>>
>> On 10/14/11 4:48 PM, Henrik Aagaard Sørensen wrote:
>>
>> Hi Daniel (and everyone else) again.
>>
>> I've just tried to add:
>> loadmodule "path.so"
>> modparam("path", "use_received", 1)
>>
>> and:
>> add_path_received()
>> just before the "if(!t_relay())..." in the ROUTE part.
>>
>> That made both devices get the error "Too many loops".
>>
>>  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.
>>
>> Cheers,
>>  Daniel
>>
>>
>>
>> Moving the add_path_received() into the part:
>> if (nat_uac_test("19")) {         if (method=="REGISTER") {
>> fix_nated_register();             add_path_received();
>> made the same issues as before loading the path.so module.
>>
>> 2011/10/14 Henrik Aagaard Sørensen <henrikaagaardsorensen at gmail.com>
>>
>>> Hi Daniel (and everyone else).
>>>
>>> This is a tshark trace (is that as good as ngrep?) from Kamailio when
>>> there are too many loops: http://pastebin.com/yRjduB0s
>>> In this trace I got the note that 253 packets was dropped (and therefor
>>> not in the trace).
>>>
>>> And this is a trace when it times out: http://pastebin.com/KT0bJzEU
>>>
>>> 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?
>>>
>>> I really do appreciate all the help!
>>>
>>>
>>> 2011/10/14 Daniel-Constantin Mierla <miconda at gmail.com>
>>>
>>>>  Hello,
>>>>
>>>> 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.
>>>>
>>>> Then, what would be helpful, will be a ngrep trace taken on kamailio
>>>> server for failed calls.
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>>
>>>> On 10/14/11 4:13 PM, Henrik Aagaard Sørensen wrote:
>>>>
>>>>  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.
>>>>
>>>> This is my status so far.
>>>>
>>>> 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".
>>>>
>>>> This is my kamailio.cfg: http://pastebin.com/KEuZmikh
>>>>
>>>> When connected directly to FreeSwitch where everything works, this is
>>>> how my clients are registrered in FreeSwitch:
>>>> http://pastebin.com/prkjkb7g
>>>>
>>>> When connected to Kamailio where nothing works, this is how my clients
>>>> are registrered in FreeSwitch: http://pastebin.com/b5x6NZyv
>>>>
>>>> 215.197.145.132 (sip.my-domain.com) is my Kamailio.
>>>> pbx.my-domain.com is my FreeSwitch.
>>>> 96.224.14.164 is my IP at home, where my 2 devices are from.
>>>>
>>>> Can anyone help me out? I'm kinda lost at this point.
>>>>
>>>>
>>>>  _______________________________________________
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>>> --
>>>> Daniel-Constantin Mierla -- http://www.asipto.com
>>>> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>>>
>>>>
>>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla -- http://www.asipto.com
>> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>
>>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- http://www.asipto.com
> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111014/46772b43/attachment-0001.htm>


More information about the sr-users mailing list