<div><div dir="auto">You can do a Pull Request on <a href="http://github.com/freeswitch">github.com/freeswitch</a></div><div dir="auto"><br></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Jun 2020 at 16:51, Keith Laaks <<a href="mailto:wklaaks@gmail.com">wklaaks@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><blockquote type="cite"><div><div style="word-wrap:break-word;line-break:after-white-space"><div>Hi,</div><div><br></div><div>I have also been experiencing this same problem.</div><div>Tested and confirmed the issue also exists in the development bra<span style="background-color:rgb(255,255,255)">nch (<span style="font-family:Courier">FreeSWITCH Version 1.10.4-dev+git~20200624T182031Z~ffe0a1b629~64bit</span>) a</span>lso.</div><div><br></div><div>In file “sofia.c”, function “static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag, const char *gwname)”, </div><div><br></div><div>line 4008 has:</div><div><div><br></div><div><span style="white-space:pre-wrap"> </span>gateway->options_user_agent = options_user_agent;</div><div><br></div><div>Which should instead be:</div><div><span style="white-space:pre-wrap"> </span>gateway->options_user_agent = switch_core_strdup(gateway->pool, options_user_agent);</div></div><div><br></div><div><br></div><div>——————————————————————————————————————————————————————————————————————————————————————————————————</div><div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(253,161,46)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><b style="font-family:Courier">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;background-color:rgb(9,30,16);color:rgb(253,161,46)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><b style="font-family:Courier">index 32f27462e5..da57072cca 100644</b></span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(253,161,46)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><b style="font-family:Courier">--- a/src/mod/endpoints/mod_sofia/sofia.c</b></span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(253,161,46)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"><b style="font-family:Courier">+++ b/src/mod/endpoints/mod_sofia/sofia.c</b></span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier;color:rgb(58,187,200)">@@ -4005,7 +4005,7 @@</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> 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;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> 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;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> gateway->register_password = switch_core_strdup(gateway->pool, password);</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> gateway->distinct_to = distinct_to;</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(205,54,37)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier">- gateway->options_user_agent = options_user_agent;</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(59,194,39)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier">+</span><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier;color:rgb(255,238,149)"> </span><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier">gateway->options_user_agent = switch_core_strdup(gateway->pool, options_user_agent);</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;min-height:14px;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> </span><br></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> if (switch_true(caller_id_in_from)) {</span></div><div style="margin:0px;font-stretch:normal;line-height:normal;font-family:Courier;background-color:rgb(9,30,16);color:rgb(255,238,149)"><span style="font-variant-ligatures:no-common-ligatures;font-family:Courier"> sofia_set_flag(gateway, REG_FLAG_CALLERID);</span></div></div><div>——————————————————————————————————————————————————————————————————————————————————————————————————</div><div><br></div><div>Not sure of the process to get this patch approved and applied to the git repo….. </div><div>Can someone in the know take care of this?</div><div><br></div><div>Best Regards</div><div><br></div><div>Keith</div><div><br></div><div><br></div><div><br></div><div>--------------------------------------------------------------------------------------------------------------------</div><div><pre style="white-space:pre-wrap;font-family:monospace;background-color:rgb(255,255,255)">On Thu, 11 Jun 2020 at 00:58, Mahmood Alkhalil
<<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" style="font-family:monospace">mahmood.alkhalil at outlook.com</a>> wrote:
><i style="font-family:monospace">
</i>><i style="font-family:monospace"> Hi Everyone,
</i>><i style="font-family:monospace">
</i>><i style="font-family:monospace"> 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 style="font-family:monospace">
</i>><i style="font-family:monospace"> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" style="font-family:monospace">freeswitch at freeswitch</a>> sofia profile AtcomSipProfile rescan
</i>><i style="font-family:monospace"> Reload XML [Success]
</i>><i style="font-family:monospace"> +OK scan complete
</i>><i style="font-family:monospace">
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 debug [7]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 sip-trace [true]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 sip-capture [true]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [INFO] mod_enum.c:884 ENUM Reloaded
</i>><i style="font-family:monospace"> nua_stack.c:529 nua_signal() nua((nil)): sent signal r_set_params
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 watchdog-enabled [no]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 watchdog-step-timeout [30000]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 watchdog-event-timeout [30000]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 log-auth-failures [false]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 forward-unsolicited-mwi-notify [false]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 context [atcomDialplan]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 rfc2833-pt [101]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 sip-port [5080]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 dialplan [XML]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 dtmf-duration [2000]
</i>><i style="font-family:monospace"> 2020-06-10 11:30:57.688648 [DEBUG] sofia.c:4628 inbound-codec-prefs [OPUS,G722,PCMU,PCMA,H264,VP8]
</i>><i style="font-family:monospace"> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" style="font-family:monospace">freeswitch at freeswitch</a>> Segmentation fault
</i>><i style="font-family:monospace">
</i>><i style="font-family:monospace"> Please let me know if this is expected or if i can share more details to further investigate this.
</i>><i style="font-family:monospace">
</i>><i style="font-family:monospace"> Mahmood Alkhalil.</i></pre><div><br></div></div><div><br></div></div></div></blockquote></div><br></div>_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>