[SR-Users] Kamailio & Freeswitch as media and SBC

John Tuxies atuxnull at gmail.com
Fri Jul 17 14:09:57 CEST 2020


I know xlog but i do not know where to add it in the kamailio.cf section.

   xlog("Kamailio forwards this to FS");


On Fri, Jul 17, 2020 at 3:01 PM Karsten Horsmann <khorsmann at gmail.com>
wrote:

> Hi,
>
> I mean that module (correct the 5.2.x to your version, 5.3.x if 5.3)
>
> https://kamailio.org/docs/modules/5.2.x/modules/xlog.html
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/pseudovariables
>
> With the cookbook you can log everything you want to watch in the logic of
> kamailio.cfg
>
> Like echo in shell scripts or more logger in scripts as an example to
> image that more.
>
> Cheers
> Karsten
>
> John Tuxies <atuxnull at gmail.com> schrieb am Fr., 17. Juli 2020, 09:33:
>
>> Hi Karsten.
>> Regarding Freeswitch, i have done the changes on the Freeswitch.
>> Regarding the xlog you mention, i am not sure what to do.
>>
>> On Fri, Jul 17, 2020 at 9:49 AM Karsten Horsmann <khorsmann at gmail.com>
>> wrote:
>>
>>> Hi John,
>>>
>>> On Kamailio side you can use xlog to print out log messages from config
>>> to debug. That helps a lot to understand what is going on. You should
>>> configure also syslog for Kamailio correctly.
>>>
>>> Also the howto described changes on freeswitch side whare you can use
>>> fs_cli to trace the call if you enable the correct debug level.
>>>
>>> It seems for me that your call is not be answered by your freeswitch,
>>> but that's guessing.
>>>
>>> Cheers
>>> Karsten
>>>
>>> John Tuxies <atuxnull at gmail.com> schrieb am Fr., 17. Juli 2020, 07:41:
>>>
>>>> Thanks for the replies.
>>>> By following the command kamailio -c -f kamailio i managed to correct
>>>> all the mistakes and now i have Kamailio running with Siremis.
>>>> Unfortunately i am not able to place any call anywhere. No error is
>>>> reported, but the call hangs there. Even if i press end call, softphones
>>>> get hanged for around 1 minute!
>>>> i do not receive 200OK. Here is the print screen of the call.
>>>> 192.168.1.7 is one of the softphones and 192.168.1.213 is the Kamailio with
>>>> Freeswitch system.
>>>> [image: image.png]
>>>>
>>>> I am attaching the kamailio.cfg
>>>> Not able to make calls between extensions.
>>>>
>>>>
>>>> On Thu, Jul 16, 2020 at 10:51 PM Karsten Horsmann <khorsmann at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Between the howto version and today actual version of Kamailio are
>>>>> many changes that can generate errors (due for example rename or new module
>>>>> params in kamailio). So copy paste an howto works not out of the box (if
>>>>> it's not exactly what the author used).
>>>>>
>>>>> Start with the shipped default config, then try to adopt the logic
>>>>> step by step with
>>>>> kamailio -c -f /etc/kamailio/kamailio.cfg is a great place to check
>>>>> Syntax fails.
>>>>>
>>>>> And which Kamailio version you use is also a good way to to describe
>>>>> your issue.
>>>>>
>>>>> Cheers
>>>>> Karsten
>>>>>
>>>>>
>>>>> David Villasmil <david.villasmil.work at gmail.com> schrieb am Do., 16.
>>>>> Juli 2020, 15:33:
>>>>>
>>>>>> What we need are the errors :)
>>>>>>
>>>>>> On Thu, 16 Jul 2020 at 13:46, John Tuxies <atuxnull at gmail.com> wrote:
>>>>>>
>>>>>>> Trying to setup Kamailio with Freeswitch in a Debian machine as in
>>>>>>> the
>>>>>>> http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc,
>>>>>>> but Kamailio fails to start and gives a ton of errors.
>>>>>>> Before of the alterations Kamailio and Siremis start correctly and i
>>>>>>> can easily create users through Siremis. After the changes to include
>>>>>>> Freeswitch's blocks, it fails to start. All run in the same machine with IP
>>>>>>> 192.168.1.213.
>>>>>>> I am attaching kamailio.cfg (named as test1.txt) if someone could
>>>>>>> spot the error, please. Also i am attaching the kamailio.cfg(Original1.txt)
>>>>>>> when it was working fine with Siremis.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>> sr-users at lists.kamailio.org
>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>
>>>>>> David Villasmil
>>>>>> email: david.villasmil.work at gmail.com
>>>>>> phone: +34669448337
>>>>>> _______________________________________________
>>>>>> Kamailio (SER) - Users Mailing List
>>>>>> sr-users at lists.kamailio.org
>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>
>>>>> _______________________________________________
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users at lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200717/733e7393/attachment.htm>


More information about the sr-users mailing list