<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0;">Hi <span style="font-size: 11pt; font-family: Calibri, sans-serif; word-break: break-word !important;">Kaufman,</span></div><div style="margin: 0;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; word-break: break-word !important;"><br></span></div><div style="margin: 0;"><span style="font-size: 11pt; font-family: Calibri, sans-serif; word-break: break-word !important;">Really thanks for the tips. ^_^ Currently It's OK now.</span></div><p style="margin: 0;"><br></p><div style="margin: 0px; word-break: break-word !important;"><span style="font-family: Calibri, sans-serif; font-size: 14.6667px; word-break: break-word !important;">If the empty macro defined at the end of file, it will report </span> <span style="color: rgb(221, 64, 50); word-break: break-word !important;">1 more #!if[n]def as #!endif</span></div><div style="margin: 0px; word-break: break-word !important;"><span style="font-family: Calibri, sans-serif; font-size: 14.6667px; word-break: break-word !important;"><br style="word-break: break-word !important;"></span></div><div style="margin: 0px; word-break: break-word !important;"><b style="color: rgb(254, 132, 15); word-break: break-word !important;"><i style="word-break: break-word !important;">#!ifdef WITH_FREESWITCH</i></b></div><div style="margin: 0px; word-break: break-word !important;"><b style="color: rgb(254, 132, 15); word-break: break-word !important;"><i style="word-break: break-word !important;">#!endif</i></b></div><div style="margin: 0px; word-break: break-word !important;"><b style="color: rgb(254, 132, 15); word-break: break-word !important;"><i style="word-break: break-word !important;"><br style="word-break: break-word !important;"></i></b></div><div style="margin: 0px; word-break: break-word !important;"><span style="word-break: break-word !important;">But if the macro defined in before the last function, it's OK.</span></div><div style="margin: 0px; word-break: break-word !important;"><span style="word-break: break-word !important;"><br style="word-break: break-word !important;"></span></div><div style="margin: 0px; word-break: break-word !important;"><span style="word-break: break-word !important;">Seems the macro at the end of file could NOT be parsed correctly. Seems a bug.</span></div><div style="margin: 0px; word-break: break-word !important;"><br></div><div style="margin: 0px; word-break: break-word !important;">BR,</div><div style="margin: 0px; word-break: break-word !important;">Sparkle Zou</div><p style="margin: 0;"><br></p><p style="margin: 0;"><br></p><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><p style="margin: 0;"><br></p><p>At 2022-10-11 21:36:18, "Kaufman" <bkaufman@bcmone.com> wrote:</p><blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<style></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">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:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";mso-fareast-language:EN-US">Kamailio -ddDDeE<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Explanation of the switches here:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";mso-fareast-language:EN-US">-dd A good debug level (info and higher)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";mso-fareast-language:EN-US">-DD Do not daemonize creator; (run in the foreground)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";mso-fareast-language:EN-US">-E Log to stderr<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Courier New";mso-fareast-language:EN-US">-e Log messages printed in terminal colors (requires -E)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Kaufman<o:p></o:p></span></b></p>
<p class="MsoNormal"><i><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Sr. VoIP Engineer - BCM One<o:p></o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">+1.612.735.9309<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><a href="mailto:bkaufman@bcmone.com">bkaufman@bcmone.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">24 hour client support: +1.855.639.6300<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:ZH-TW"> sr-users <sr-users-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Henning Westerholt<br>
<b>Sent:</b> Monday, October 10, 2022 5:57 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Cc:</b> SparkleZou <sparklezou@126.com><br>
<b>Subject:</b> Re: [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hello,</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">as you already noticed, this tutorial was about an older version of Kamailio so its probably needs some adaptions.</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Regarding the startup errors you are facing, please have a look to the system log files to get more information on the probable causes.</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Cheers,</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Henning</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">--
</span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Henning Westerholt ¨C
</span><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><a href="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"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Kamailio services ¨C
</span><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><a href="https://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"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span lang="DE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"> </span><span lang="DE"><o:p></o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>SparkleZou<br>
<b>Sent:</b> Monday, October 10, 2022 4:25 AM<br>
<b>To:</b> <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] About kamailio + freeswitch issue on Kamailio v5.6</span><span lang="DE"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE"> <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">Hi Sir/Mada,</span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> </span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black">I'm trying to integrate kamailio + freeswitch, according to the manual <a href="https://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">http://kb.asipto.com/freeswitch:kamailio-3.3.x-freeswitch-1.2.x-sbc</a> on Kamailio
v5.6</span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> </span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">modified the kamailio.cfg file, add WITH_FREESWITCH parts, then kamailio could NOT start up. </span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> </span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">Could you please help check, what should be modified to fit the version 5.6</span><span lang="ZH-CN" style="font-size:10.5pt;color:#333333">£¿</span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> </span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">Thanks</span><span lang="ZH-CN" style="font-size:10.5pt;color:#333333">£¡</span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> </span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">BR</span><span lang="ZH-CN" style="font-size:10.5pt;color:#333333">£¬</span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#333333">Sparkle Zou</span><span lang="DE"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="DE" style="font-size:10.5pt;font-family:"Arial",sans-serif;color:black"> </span><span lang="DE"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote></div>