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

Henrik Aagaard Sørensen henrikaagaardsorensen at gmail.com
Thu Nov 10 02:59:05 CET 2011


Hi Daniel.

Thank you for your link.

Unfortunately it still either reports "Too many hops" or "Timeout". Again,
everything works when connecting directly to the PBX.

2011/11/9 Daniel-Constantin Mierla <miconda at gmail.com>

>  Hello,
>
> 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:
>
> http://kamailio.org/docs/modules/stable/modules_k/dispatcher.html#id2523004
>
> 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.
>
> Let me know if works this time.
>
> Cheers,
> Daniel
>
>
> On 11/9/11 12:18 AM, Henrik Aagaard Sørensen wrote:
>
> Hi Daniel.
>
>  I just wanted to hear if you have had any time to look at the Kamailio Dispatcher
> <-> FreeSwitch problem?
>
>  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.
>
>  Best regards,
>  Henrik
>
>  2011/10/20 Henrik Aagaard Sørensen <henrikaagaardsorensen at gmail.com>
>
>> Hi Daniel.
>>
>> I've just upgraded to 3.2.0.
>>
>> This is my NEW kamailio.cfg: http://pastebin.com/XzXjf1VY
>> This is my dispatcher.list: http://pastebin.com/9dLS8243
>>
>> I've also attached a ngrep where it errors with "Too many hops" with the
>> new version 3.2.0.
>>
>> Once again, I really appreciate all the help you give! It's remarkable
>> with your effort in this.
>>
>> Best regards,
>> Henrik
>>
>>
>> 2011/10/17 Daniel-Constantin Mierla <miconda at gmail.com>
>>
>>>  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.
>>>
>>> Cheers,
>>>  Daniel
>>>
>>>
>>> On 10/14/11 10:07 PM, Henrik Aagaard Sørensen wrote:
>>>
>>> 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
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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/20111110/423b3e6e/attachment-0001.htm>


More information about the sr-users mailing list