FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
"FreeSWITCH is crashing unpredictably during runtime. How can I determine the specific cause of the crash?
"When an incoming call arrives, an outbound call is made through another SIP profile. A Lua script is used to perform the bridge."
freeswitch version:FreeSWITCH (Version 1.10.11-release git f24064f 2023-12-22 18:08:31Z 64bit) is ready
os version:CentOS Linux release 7.9.2009 (Core)
The log is as follows:"
(gdb) bt full
0 0x00007f1e6396c387 in raise () from /lib64/libc.so.6
No symbol table info available.
1 0x00007f1e6396da78 in abort () from /lib64/libc.so.6
No symbol table info available.
2 0x00007f1e639aef67 in __libc_message () from /lib64/libc.so.6
No symbol table info available.
3 0x00007f1e639b7329 in _int_free () from /lib64/libc.so.6
No symbol table info available.
4 0x00007f1e6702d02b in free_header (header=0x7f1e601d6cc8) at src/switch_event.c:949
11 0x00007fb7ceff84f9 in switch_core_session_thread_pool_worker (thread=0x7fb480053250, obj=0x7fb4800530e0)
at src/switch_core_session.c:1791
---Type to continue, or q to quit---
td = 0x7fb7b432f900
pop = 0x7fb7b432f900
check_status = SWITCH_STATUS_SUCCESS
node = 0x7fb4800530e0
pool = 0x7fb480052ff8
func = "switch_core_session_thread_pool_worker"
12 0x00007fb7cf394690 in dummy_worker (opaque=0x7fb480053250) at threadproc/unix/thread.c:151
thread = 0x7fb480053250
13 0x00007fb7cc443ea5 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
14 0x00007fb7cba97b0d in clone () from /lib64/libc.so.6
No symbol table info available.
The lua scripts:
local caller = session:getVariable('caller_id_number');
local callee = session:getVariable('destination_number');
"FreeSWITCH is crashing unpredictably during runtime. How can I determine the specific cause of the crash? "When an incoming call arrives, an outbound call is made through another SIP profile. A Lua script is used to perform the bridge."
freeswitch version:FreeSWITCH (Version 1.10.11-release git f24064f 2023-12-22 18:08:31Z 64bit) is ready os version:CentOS Linux release 7.9.2009 (Core)
The log is as follows:" (gdb) bt full
0 0x00007f1e6396c387 in raise () from /lib64/libc.so.6
No symbol table info available.
1 0x00007f1e6396da78 in abort () from /lib64/libc.so.6
No symbol table info available.
2 0x00007f1e639aef67 in __libc_message () from /lib64/libc.so.6
No symbol table info available.
3 0x00007f1e639b7329 in _int_free () from /lib64/libc.so.6
No symbol table info available.
4 0x00007f1e6702d02b in free_header (header=0x7f1e601d6cc8) at src/switch_event.c:949
5 0x00007f1e6702e01e in switch_event_destroy (event=0x7f1e601d6d30) at src/switch_event.c:1298
6 0x00007f1e6702bb1f in switch_event_deliver (event=0x7f1e601d6d30) at src/switch_event.c:422
7 0x00007f1e6702b875 in switch_event_dispatch_thread (thread=0x7f1e60324140, obj=0xb6fdb8) at src/switch_event.c:340
8 0x00007f1e67331690 in dummy_worker (opaque=0x7f1e60324140) at threadproc/unix/thread.c:151
9 0x00007f1e643e0ea5 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
10 0x00007f1e63a34b0d in clone () from /lib64/libc.so.6
No symbol table info available.
The other crash info:
0 0x00007fb7776a25e6 in propagatemark () from /lib64/liblua.so
No symbol table info available.
1 0x00007fb7776a2d36 in singlestep () from /lib64/liblua.so
No symbol table info available.
2 0x00007fb7776a3500 in luaC_fullgc () from /lib64/liblua.so
No symbol table info available.
3 0x00007fb77769d04f in lua_gc () from /lib64/liblua.so
No symbol table info available.
4 0x00007fb7778d1730 in lua_uninit (L=0x7fb47c0a7720) at mod_lua.cpp:483
No locals.
5 lua_function (session=0x7fb3a932f368, data=) at mod_lua.cpp:483
6 0x00007fb7ceffc94e in switch_core_session_exec (session=0x7fb3a932f368, application_interface=0xd13be0,
---Type to continue, or q to quit---
expand_variables = SWITCH_TRUE
PRETTY_FUNCTION__ = "switch_core_session_exec"
func__ = "switch_core_session_exec"
7 0x00007fb7ceffbf76 in switch_core_session_execute_application_get_flags (session=0x7fb3a932f368, app=0x7fb7b78c4fd8 "lua",
8 0x00007fb7ceffea71 in switch_core_standard_on_execute (session=0x7fb3a932f368) at src/switch_core_state_machine.c:350
9 0x00007fb7cf0006bf in switch_core_session_run (session=0x7fb3a932f368) at src/switch_core_state_machine.c:647
10 0x00007fb7ceff80d4 in switch_core_session_thread (thread=0x7fb480053250, obj=0x7fb3a932f368) at src/switch_core_session.c:1727
11 0x00007fb7ceff84f9 in switch_core_session_thread_pool_worker (thread=0x7fb480053250, obj=0x7fb4800530e0)
---Type to continue, or q to quit---
td = 0x7fb7b432f900
pop = 0x7fb7b432f900
check_status = SWITCH_STATUS_SUCCESS
node = 0x7fb4800530e0
pool = 0x7fb480052ff8
func = "switch_core_session_thread_pool_worker"
12 0x00007fb7cf394690 in dummy_worker (opaque=0x7fb480053250) at threadproc/unix/thread.c:151
13 0x00007fb7cc443ea5 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
14 0x00007fb7cba97b0d in clone () from /lib64/libc.so.6
No symbol table info available.
The lua scripts: local caller = session:getVariable('caller_id_number'); local callee = session:getVariable('destination_number');
local token="HNNcpRwDoUhic*****"
session:execute("export","proxy_media=true"); session:execute("bridge","{sip_copy_custom_headers=false,sip_h_Task-Token="..token..",absolute_codec_string='PCMA,PCMU',origination_caller_id_number="..caller.."}sofia/external/sip:"..callee.."@..1.:16060")