<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="">In order to look at this we can’t look at the core file directly, you’ll need to generate a backtrace from it so we can see.<div class=""><br class=""></div><div class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/Debugging#Debugging-GettingaBacktrace" style="color: rgb(59, 115, 175); text-decoration: none; cursor: pointer; font-family: Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(245, 245, 245);" class="">https://freeswitch.org/confluence/display/FREESWITCH/Debugging#Debugging-GettingaBacktrace</a><span style="color: rgb(51, 51, 51); font-family: Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(245, 245, 245);" class=""> </span></div><div class=""><div style="orphans: 2; widows: 2;" class=""><font color="#333333" face="Arial, sans-serif" class=""><span style="caret-color: rgb(51, 51, 51); font-size: 14px; background-color: rgb(245, 245, 245);" class=""><br class=""></span></font></div><div style="orphans: 2; widows: 2;" class=""><font color="#333333" face="Arial, sans-serif" class=""><span style="caret-color: rgb(51, 51, 51); font-size: 14px; background-color: rgb(245, 245, 245);" class="">Please update the bug when you have this info.</span></font></div><div style="orphans: 2; widows: 2;" class=""><font color="#333333" face="Arial, sans-serif" class=""><span style="caret-color: rgb(51, 51, 51); font-size: 14px; background-color: rgb(245, 245, 245);" class=""><br class=""></span></font></div><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 12, 2018, at 6:37 AM, Julien Terrasson <<a href="mailto:julien.terrasson@gmail.com" class="">julien.terrasson@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">I'm trying to use freeswitch as a transcription gateway :
<br class="">
<br class="">
The goal is to allow a PSTN subscriber (A_party) to call another
(B_party) through freeswitch : freeswitch being used to record and
transcript the call.
<br class="">
<br class="">
This is the scenario i'm trying to acheive :
<br class="">
<br class="">
1/ A_party call freeswitch through a PSTN gateway.
<br class="">
<br class="">
2/ freeswitch execute a lua script (IVRPrompt8.lua) that :
<br class="">
* query the service database
<br class="">
* Initialize few sessions variables
<br class="">
* Play A_party a vocal prompt.
<br class="">
* Attempt to bridge B_party.
<br class="">
<br class="">
3/ When B_party answer, a lua script is called : catchBAnswer2.lua
<br class="">
This script is used to initialise several session variable and play legal warning to both party.
<br class="">
<br class="">
<extension name="experimental_dialplan">
<br class="">
<condition field="destination_number" expression="^(\+33XXXXXXXXX)$">
<br class="">
<br class="">
<!-- Play IVR to get the destination number and service parameters -->
<br class="">
<action inline="true" application="lua" data="IVRPrompt8.lua" />
<br class="">
<br class="">
<!-- Set channel record settings -->
<br class="">
<action application="export" data="RECORD_READ_ONLY=true"/>
<br class="">
<action application="export" data="RECORD_STEREO=false"/>
<br class="">
<br class="">
<!-- Free the "#" terminator from other use-->
<br class="">
<action application="set" data="ivr_menu_terminator=none"/>
<br class="">
<br class="">
<action application="export" data="nolocal:execute_on_answer=lua catchBAnswer2.lua"/>
<br class="">
<br class="">
<!-- Finally bridge the call -->
<br class="">
<action application="bridge" data="sofia/gateway/ippi_33XXXXXXXXX/${destination_number}"/>
<br class="">
<br class="">
</condition>
<br class="">
</extension>
<br class="">
<br class="">
Sometimes the scenario works just fine, but most of the time it crash
when calling catchBAnswer2.lua, as show the last console logs (DEBUG
LEVEL):
<br class="">
<br class="">
2018-10-12 09:42:26.812449 [NOTICE] sofia.c:7304 Pre-Answer sofia/external5090/0665199963!
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_channel.c:3482 (sofia/external5090/0665199963) Callstate Change RINGING -> EARLY
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] sofia.c:7291 Channel sofia/external5090/0665199963 entering state [ready][200]
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:5478 Audio Codec
Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:5533 Audio Codec
Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:5394 Set telephone-event payload to <a href="mailto:101@8000" title="Follow link" class="">101@8000</a>
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:3781 Set Codec
sofia/external5090/0665199963 PCMA/8000 20 ms 160 samples 64000 bits 1
channels
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_codec.c:111 sofia/external5090/0665199963 Original read codec set to PCMA:8
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:5737 Set telephone-event payload to <a href="mailto:101@8000" title="Follow link" class="">101@8000</a>
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:5795
sofia/external5090/0665199963 Set 2833 dtmf send payload to 101 recv
payload to 101
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:8511 AUDIO RTP
[sofia/external5090/0665199963] 94.23.42.139 port 29498 ->
194.169.214.61 port 59684 codec: 8 ms: 20
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_rtp.c:4300 Starting timer [soft] 160 bytes per 20ms
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:8815 sofia/external5090/0665199963 Set 2833 dtmf send payload to 101
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:8822 sofia/external5090/0665199963 Set 2833 dtmf receive payload to 101
<br class="">
2018-10-12 09:42:26.812449 [DEBUG] switch_core_media.c:8845 sofia/external5090/0665199963 Set rtp dtmf delay to 40
<br class="">
2018-10-12 09:42:26.812449 [NOTICE] sofia.c:8429 Channel [sofia/external5090/0665199963] has been answered
<br class="">
EXECUTE sofia/external5090/0665199963 lua(catchBAnswer2.lua)
<br class="">
<br class="">
** CORE DUMP **
<br class="">
<br class="">
I have no clues why this is happening, so i included the backtrack enclosed to have feedbacks (<a href="https://freeswitch.org/jira/browse/FS-11456" class="">https://freeswitch.org/jira/browse/FS-11456</a>).<br class="">
<br class="">
Can somebody have a look and give a more precise idea on what is making freeswitch to crash ?
<br class="">
<br class="">
I can then setup monitoring and collect additional traces if needed (SIP, RTP, etc..).</div><div dir="ltr" class=""><br class=""></div><div class="">J. Terrasson<br class="">
</div></div>
_________________________________________________________________________<br class="">Professional FreeSWITCH Services<br class=""><a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">https://freeswitch.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">https://freeswitch.com/oss<br class="">https://freeswitch.org/confluence<br class="">https://cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">https://freeswitch.com</div></blockquote></div><br class=""></div></body></html>