<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I have also been experiencing this same problem.</div><div class="">Tested and confirmed the issue also exists in the development bra<span style="background-color: rgb(255, 255, 255);" class="">nch (<span style="font-family: Courier;" class="">FreeSWITCH Version 1.10.4-dev+git~20200624T182031Z~ffe0a1b629~64bit</span>) a</span>lso.</div><div class=""><br class=""></div><div class="">In file “sofia.c”, function “static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag, const char *gwname)”, </div><div class=""><br class=""></div><div class="">line 4008 has:</div><div class=""><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">   </span>gateway->options_user_agent = options_user_agent;</div><div class=""><br class=""></div><div class="">Which should instead be:</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>gateway->options_user_agent = switch_core_strdup(gateway->pool, options_user_agent);</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">——————————————————————————————————————————————————————————————————————————————————————————————————</div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(253, 161, 46); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(253, 161, 46); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">index 32f27462e5..da57072cca 100644</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(253, 161, 46); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">--- a/src/mod/endpoints/mod_sofia/sofia.c</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(253, 161, 46); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+++ b/src/mod/endpoints/mod_sofia/sofia.c</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #3abbc8" class="">@@ -4005,7 +4005,7 @@</span><span style="font-variant-ligatures: no-common-ligatures" class=""> static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag,</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        gateway->auth_username = switch_core_strdup(gateway->pool, auth_username);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        gateway->register_password = switch_core_strdup(gateway->pool, password);</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        gateway->distinct_to = distinct_to;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(205, 54, 37); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-                       gateway->options_user_agent = options_user_agent;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(59, 194, 39); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+</span><span style="font-variant-ligatures: no-common-ligatures; color: #ffee95" class="">                       </span><span style="font-variant-ligatures: no-common-ligatures" class="">gateway->options_user_agent = switch_core_strdup(gateway->pool, options_user_agent);</span></div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        if (switch_true(caller_id_in_from)) {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; color: rgb(255, 238, 149); background-color: rgb(9, 30, 16);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                sofia_set_flag(gateway, REG_FLAG_CALLERID);</span></div></div><div class="">——————————————————————————————————————————————————————————————————————————————————————————————————</div><div class=""><br class=""></div><div class="">Not sure of the process to get this patch approved and applied to the git repo…..  </div><div class="">Can someone in the know take care of this?</div><div class=""><br class=""></div><div class="">Best Regards</div><div class=""><br class=""></div><div class="">Keith</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">--------------------------------------------------------------------------------------------------------------------</div><div class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">On Thu, 11 Jun 2020 at 00:58, Mahmood Alkhalil
<<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="">mahmood.alkhalil at outlook.com</a>> wrote:
><i class="">
</i>><i class="">  Hi Everyone,
</i>><i class="">
</i>><i class=""> I'm always getting segmentation fault on fs_cli whenever I'm trying to rescan sofia profile and fs_cli exists, below is an example:
</i>><i class="">
</i>><i class=""> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="">freeswitch at freeswitch</a>> sofia profile AtcomSipProfile rescan
</i>><i class=""> Reload XML [Success]
</i>><i class=""> +OK scan complete
</i>><i class="">
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 debug [7]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 sip-trace [true]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 sip-capture [true]
</i>><i class=""> 2020-06-10 11:30:57.688648 [INFO] mod_enum.c:884 ENUM Reloaded
</i>><i class=""> nua_stack.c:529 nua_signal() nua((nil)): sent signal r_set_params
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 watchdog-enabled [no]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 watchdog-step-timeout [30000]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 watchdog-event-timeout [30000]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 log-auth-failures [false]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 forward-unsolicited-mwi-notify [false]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 context [atcomDialplan]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 rfc2833-pt [101]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 sip-port [5080]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 dialplan [XML]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 dtmf-duration [2000]
</i>><i class=""> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 inbound-codec-prefs [OPUS,G722,PCMU,PCMA,H264,VP8]
</i>><i class=""> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="">freeswitch at freeswitch</a>> Segmentation fault
</i>><i class="">
</i>><i class=""> Please let me know if this is expected or if i can share more details to further investigate this.
</i>><i class="">
</i>><i class=""> Mahmood Alkhalil.</i></pre><div class=""><br class=""></div></div><div class=""><br class=""></div></body></html>