Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR, Sparkle Zou
Hi Sir/Mada,
Fond the issue. The Orange part could NOT at the end of file. it will report the error: 1 more #!if[n]def as #!endif
It's really weird.
Although the kamailio start and freeswitch working. But the SIP message is NOT process well. kamailio Always reply 480 Temoraritly Unavailable.
#!ifdef WITH_FREESWITCH failure_route[FAIL_FSVBOX] { #!ifdef WITH_NAT if (is_method("INVITE") && (isbflagset(FLB_NATB) || isflagset(FLT_NATS))) { unforce_rtp_proxy(); } #!endif
if (t_is_canceled()) { exit; }
if (t_check_status("486|408")) { # re-route to FreeSWITCH VoiceMail $rU = $avp(callee); route(FSVBOX); } } #!endif
# Manage failure routing cases failure_route[MANAGE_FAILURE] { route(NATMANAGE);
if (t_is_canceled()) exit;
#!ifdef WITH_BLOCK3XX # block call redirect based on 3xx replies. if (t_check_status("3[0-9][0-9]")) { t_reply("404","Not found"); exit; } #!endif
#!ifdef WITH_BLOCK401407 # block call redirect based on 401, 407 replies. if (t_check_status("401|407")) { t_reply("404","Not found"); exit; } #!endif
#!ifdef WITH_VOICEMAIL # serial forking # - route to voicemail on busy or no answer (timeout) if (t_check_status("486|408")) { $du = $null; route(TOVOICEMAIL); exit; } #!endif return; }
BR, Sparkle Zou
At 2022-10-10 10:24:40, "SparkleZou" sparklezou@126.com wrote:
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR, Sparkle Zou
Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions. Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To: sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR, Sparkle Zou
Hi Henning,
Thanks!If the empty macro defined at the end of file, it will report 1 more #!if[n]def as #!endif
#!ifdef WITH_FREESWITCH #!endif
But if the macro defined in before the last function, it's OK.
Seems the macro at the end of file could NOT be parsed correctly. Seems a bug.
BR, Sparkle Zou
At 2022-10-10 17:56:31, "Henning Westerholt" hw@gilawa.com wrote:
Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions.
Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To: sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR,
Sparkle Zou
Hello,
maybe add a single new-line at the end will fix it, or there are some other non-printable characters that causes errors. Just play a bit around with it.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: SparkleZou sparklezou@126.com Sent: Tuesday, October 11, 2022 7:11 AM To: Henning Westerholt hw@gilawa.com Cc: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re:RE: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Henning,
Thanks!If the empty macro defined at the end of file, it will report 1 more #!if[n]def as #!endif
#!ifdef WITH_FREESWITCH #!endif
But if the macro defined in before the last function, it's OK.
Seems the macro at the end of file could NOT be parsed correctly. Seems a bug.
BR, Sparkle Zou
At 2022-10-10 17:56:31, "Henning Westerholt" <hw@gilawa.commailto:hw@gilawa.com> wrote: Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions. Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://gilawa.comhttps://gilawa.com/
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR, Sparkle Zou
Hello,
preprocessor directives require the end-of-line, it is where the parser stops and evaluates what was before. So, as hinted before, add it at the end and it should work.
Cheers, Daniel
On 11.10.22 08:28, Henning Westerholt wrote:
Hello,
maybe add a single new-line at the end will fix it, or there are some other non-printable characters that causes errors. Just play a bit around with it.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/ https://skalatan.de/blog/
Kamailio services – https://gilawa.com https://gilawa.com/
*From:*SparkleZou sparklezou@126.com *Sent:* Tuesday, October 11, 2022 7:11 AM *To:* Henning Westerholt hw@gilawa.com *Cc:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re:RE: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Henning,
Thanks!If the empty macro defined at the end of file, it will report 1 more #!if[n]def as #!endif
*/#!ifdef WITH_FREESWITCH/*
*/#!endif/*
But if the macro defined in before the last function, it's OK.
Seems the macro at the end of file could NOT be parsed correctly. Seems a bug.
BR,
Sparkle Zou
At 2022-10-10 17:56:31, "Henning Westerholt" hw@gilawa.com wrote:
Hello, as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions. Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes. Cheers, Henning -- Henning Westerholt – https://skalatan.de/blog/ <https://skalatan.de/blog/> Kamailio services – https://gilawa.com <https://gilawa.com/> *From:*sr-users <sr-users-bounces@lists.kamailio.org> *On Behalf Of *SparkleZou *Sent:* Monday, October 10, 2022 4:25 AM *To:* sr-users@lists.kamailio.org *Subject:* [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6 Hi Sir/Mada, I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6 modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up. Could you please help check, what should be modified to fit the version 5.6? Thanks! BR, Sparkle Zou
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
As a note, a quick way to debug more interactively (then checking out the syslog, which may or may not be well configured for Kamailio), run Kamailio in the foreground:
Kamailio -ddDDeE
Explanation of the switches here:
-dd A good debug level (info and higher) -DD Do not daemonize creator; (run in the foreground) -E Log to stderr -e Log messages printed in terminal colors (requires -E)
Most likely problems you’ll encounter here are situations where one module has been replaced/renamed with another and some module param requirement changes, but the startup output should give decent clues.
Kaufman Sr. VoIP Engineer - BCM One
+1.612.735.9309 bkaufman@bcmone.commailto:bkaufman@bcmone.com 24 hour client support: +1.855.639.6300
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Henning Westerholt Sent: Monday, October 10, 2022 5:57 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: SparkleZou sparklezou@126.com Subject: Re: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions. Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F&data=05%7C01%7Cbkaufman%40bcmone.com%7C6d07d11d7bb04e6e4bcf08daaaa5d577%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C638009926490175611%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wMQWVnjy44yG3zprtLUKglir%2BO8GHoaK3HuwbGrsuWA%3D&reserved=0 Kamailio services - https://gilawa.comhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F&data=05%7C01%7Cbkaufman%40bcmone.com%7C6d07d11d7bb04e6e4bcf08daaaa5d577%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C638009926490175611%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FiYXh18%2FH%2BupBryfgqpnHnTbyp56Kx4lwTG12HJo3%2B0%3D&reserved=0
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To: sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbchttps://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fkb.asipto.com%2Ffreeswitch%3Akamailio-3.3.x-freeswitch-1.2.x-sbc&data=05%7C01%7Cbkaufman%40bcmone.com%7C6d07d11d7bb04e6e4bcf08daaaa5d577%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C638009926490175611%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=RMsyZyhWZAjCuWZpUp72BAGz6eWNwCe1luJfr%2FzDm40%3D&reserved=0 on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR, Sparkle Zou
Hi Kaufman,
Really thanks for the tips. ^_^ Currently It's OK now.
If the empty macro defined at the end of file, it will report 1 more #!if[n]def as #!endif
#!ifdef WITH_FREESWITCH #!endif
But if the macro defined in before the last function, it's OK.
Seems the macro at the end of file could NOT be parsed correctly. Seems a bug.
BR, Sparkle Zou
At 2022-10-11 21:36:18, "Kaufman" bkaufman@bcmone.com wrote:
As a note, a quick way to debug more interactively (then checking out the syslog, which may or may not be well configured for Kamailio), run Kamailio in the foreground:
Kamailio -ddDDeE
Explanation of the switches here:
-dd A good debug level (info and higher)
-DD Do not daemonize creator; (run in the foreground)
-E Log to stderr
-e Log messages printed in terminal colors (requires -E)
Most likely problems you’ll encounter here are situations where one module has been replaced/renamed with another and some module param requirement changes, but the startup output should give decent clues.
Kaufman
Sr. VoIP Engineer - BCM One
+1.612.735.9309
bkaufman@bcmone.com
24 hour client support: +1.855.639.6300
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Henning Westerholt Sent: Monday, October 10, 2022 5:57 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: SparkleZou sparklezou@126.com Subject: Re: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions.
Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To:sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR,
Sparkle Zou
Hi Kaufman,
Currently I set up kamailio + freeswitch as the manual. kamailio + freeswitch start up fine.
10.120.100.237 is the windows client, with 2 software clients. account is 103 & 104 10.120.100.246 is the IP of kamailio 10.120.100.245 is the IP of freeswitch
104 call 103. seems the SIP process is working fine. except the last ACK message.
104 send ACK message to kamailio 10.120.100.246. Then kamailio sholde sent ACK message to freeswitch 10.120.100.245. But here send to a unknown IP 163.125.45.132
Really weird.
I searched internet. said it cause by NAT. But here is NO NAT.
Please help check. Thanks!
BR, Sparkle Zou
At 2022-10-11 21:36:18, "Kaufman" bkaufman@bcmone.com wrote:
As a note, a quick way to debug more interactively (then checking out the syslog, which may or may not be well configured for Kamailio), run Kamailio in the foreground:
Kamailio -ddDDeE
Explanation of the switches here:
-dd A good debug level (info and higher)
-DD Do not daemonize creator; (run in the foreground)
-E Log to stderr
-e Log messages printed in terminal colors (requires -E)
Most likely problems you’ll encounter here are situations where one module has been replaced/renamed with another and some module param requirement changes, but the startup output should give decent clues.
Kaufman
Sr. VoIP Engineer - BCM One
+1.612.735.9309
bkaufman@bcmone.com
24 hour client support: +1.855.639.6300
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Henning Westerholt Sent: Monday, October 10, 2022 5:57 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: SparkleZou sparklezou@126.com Subject: Re: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions.
Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To:sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR,
Sparkle Zou
Hi Kaufman,
It's OK now.
in vars.xml,set "external_rtp_ip" "external_sip_ip" of "stun-set" to the local host IP.
Thanks!
BR, Sparkle Zou
At 2022-10-12 10:07:30, "SparkleZou" sparklezou@126.com wrote:
Hi Kaufman,
Currently I set up kamailio + freeswitch as the manual. kamailio + freeswitch start up fine.
10.120.100.237 is the windows client, with 2 software clients. account is 103 & 104 10.120.100.246 is the IP of kamailio 10.120.100.245 is the IP of freeswitch
104 call 103. seems the SIP process is working fine. except the last ACK message.
104 send ACK message to kamailio 10.120.100.246. Then kamailio sholde sent ACK message to freeswitch 10.120.100.245. But here send to a unknown IP 163.125.45.132
Really weird.
I searched internet. said it cause by NAT. But here is NO NAT.
Please help check. Thanks!
BR, Sparkle Zou
At 2022-10-11 21:36:18, "Kaufman" bkaufman@bcmone.com wrote:
As a note, a quick way to debug more interactively (then checking out the syslog, which may or may not be well configured for Kamailio), run Kamailio in the foreground:
Kamailio -ddDDeE
Explanation of the switches here:
-dd A good debug level (info and higher)
-DD Do not daemonize creator; (run in the foreground)
-E Log to stderr
-e Log messages printed in terminal colors (requires -E)
Most likely problems you’ll encounter here are situations where one module has been replaced/renamed with another and some module param requirement changes, but the startup output should give decent clues.
Kaufman
Sr. VoIP Engineer - BCM One
+1.612.735.9309
bkaufman@bcmone.com
24 hour client support: +1.855.639.6300
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of Henning Westerholt Sent: Monday, October 10, 2022 5:57 AM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Cc: SparkleZou sparklezou@126.com Subject: Re: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hello,
as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions.
Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.
Cheers,
Henning
--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com
From: sr-users sr-users-bounces@lists.kamailio.org On Behalf Of SparkleZou Sent: Monday, October 10, 2022 4:25 AM To:sr-users@lists.kamailio.org Subject: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6
Hi Sir/Mada,
I'm trying to integrate kamailio + freeswitch, according to the manual http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc on Kamailio v5.6
modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up.
Could you please help check, what should be modified to fit the version 5.6?
Thanks!
BR,
Sparkle Zou