[Thread 0x7fff822e9700 (LWP 10164) exited] [New Thread 0x7fff822e9700 (LWP 10251)] -- Executing [7012@from-lrz-pin:1] Answer("PJSIP/7885-T-00000000", "") in new stack asterisk: ../src/pj/os_core_unix.c:692: pj_thread_this: Assertion `!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."' failed. Thread 105 "asterisk" received signal SIGABRT, Aborted. [Switching to Thread 0x7fff822e9700 (LWP 10251)] __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 58 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) (gdb) bt full #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58 set = {__val = {134238211, 140735377466120, 0, 140737296345998, 93827783032832, 140737085715424, 140737085715525, 140737085715424, 140737085715424, 140737085715650, 140737085715724, 140737085715424, 140737085715724, 0, 0, 0}} pid = tid = #1 0x00007ffff48a740a in __GI_abort () at abort.c:89 save_stage = 2 act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0, 140735377466160, 4, 0, 0, 140737297336160, 0, 0, 21474836480, 140733193388033, 140735377466312, 140737297364976, 140737297350576, 0, 140737354059776, 140736727618888}}, sa_flags = 692, sa_restorer = 0x7fffd2a81968 <__PRETTY_FUNCTION__.6205>} sigs = {__val = {32, 0 }} #2 0x00007ffff489ee47 in __assert_fail_base (fmt=, assertion=assertion@entry=0x7fffd2a81548 "!\"Calling pjlib from unknown/external thread. You must \" \"register external threads with pj_thread_register() \" \"before calling any pjlib functions.\"", file=file@entry=0x7fffd2a81321 "../src/pj/os_core_unix.c", line=line@entry=692, function=function@entry=0x7fffd2a81968 <__PRETTY_FUNCTION__.6205> "pj_thread_this") at assert.c:92 str = 0x7fffe80033e0 "\020\065" total = 4096 #3 0x00007ffff489eef2 in __GI___assert_fail ( assertion=assertion@entry=0x7fffd2a81548 "!\"Calling pjlib from unknown/external thread. You must \" \"register external threads with pj_thread_register() \" \"before calling any pjlib functions.\"", file=file@entry=0x7fffd2a81321 "../src/pj/os_core_unix.c", line=line@entry=692, function=function@entry=0x7fffd2a81968 <__PRETTY_FUNCTION__.6205> "pj_thread_this") at assert.c:101 No locals. #4 0x00007fffd2a6e8e9 in pj_thread_this () at ../src/pj/os_core_unix.c:690 rec = rec = #5 0x00007fffd2a6eb0d in pj_mutex_lock (mutex=0x7fffd400f518) at ../src/pj/os_core_unix.c:1257 status = __PRETTY_FUNCTION__ = "pj_mutex_lock" #6 0x00007fffd2a6f001 in pj_atomic_inc_and_get (atomic_var=0x7fffd400f508) at ../src/pj/os_core_unix.c:935 new_value = #7 0x00007fffd2a6f025 in pj_atomic_inc (atomic_var=) at ../src/pj/os_core_unix.c:949 No locals. #8 0x00007ffff001fd6a in pjsip_inv_add_ref (inv=) at ../src/pjsip-ua/sip_inv.c:204 No locals. #9 0x00007fff88e297cf in chan_pjsip_answer (ast=0x7fffd402cd60) at chan_pjsip.c:603 channel = session = 0x7fffd4010100 __PRETTY_FUNCTION__ = "chan_pjsip_answer" #10 0x000055555560729a in ast_raw_answer (chan=0x7fffd402cd60) at channel.c:2782 chan = 0x7fffd402cd60 #11 0x0000555555609853 in __ast_answer (chan=chan@entry=0x7fffd402cd60, delay=delay@entry=0) at channel.c:2804 res = 0 old_state = AST_STATE_RING __PRETTY_FUNCTION__ = "__ast_answer"