Problem with externalMedia hangup

Hello
I created a bridge with externalMedia channel and snoopChannel - a copy of originated channel
after end of the call i hangup externalMedia and then destroy bridge (snoopChannel somehow get away ) and sometimes (not always) I get FRACK error

[2022-10-12 15:00:59.699] VERBOSE[6670] bridge_channel.c: Channel UnicastRTP/127.0.0.1:46052-0x7ff6a8002a60 left 'simple_bridge' stasis-bridge <473c3a11-865b-4f1f-a113-00feafaca6cf>
[2022-10-12 15:00:59.703] VERBOSE[6669] bridge_channel.c: Channel Snoop/1665586853.325-0000001d left 'simple_bridge' stasis-bridge <473c3a11-865b-4f1f-a113-00feafaca6cf>
[2022-10-12 15:00:59.707] VERBOSE[6584][C-0000001f] pbx.c: Executing [h@call-this:3] Hangup("Local/mmagibitdh@call-this-0000003a;2", "") in new stack
[2022-10-12 15:00:59.707] VERBOSE[6584][C-0000001f] pbx.c: Spawn extension (call-this, h, 3) exited non-zero on 'Local/mmagibitdh@call-this-0000003a;2'
[2022-10-12 15:00:59.707] VERBOSE[6666][C-0000001f] bridge_channel.c: Channel Local/mmagibitdh@call-this-0000003a;1 left 'simple_bridge' basic-bridge <4c30bd51-028e-44da-b22a-4dad37d3c27f>
[2022-10-12 15:00:59.707] VERBOSE[6577][C-0000001f] bridge_channel.c: Channel SIP/12-0000001e left 'simple_bridge' basic-bridge <4c30bd51-028e-44da-b22a-4dad37d3c27f>
[2022-10-12 15:00:59.708] VERBOSE[6577][C-0000001f] pbx.c: Spawn extension (docker-in, kvint3|79824512026|None|1|00|1|12|docker|docker|mmagibitdh, 54) exited non-zero on 'SIP/12-0000001e'
[2022-10-12 15:00:59.708] VERBOSE[6577][C-0000001f] pbx.c: Executing [h@docker-in:1] System("SIP/12-0000001e", "curl "http://158.255.7.163:5000/callChangeStatus?secret_key=SF7Bbtsa28&call_id=mmagibitdh&server=1-12&status=ANSWER&sipcallid=6bc4ce384f97336274c12c2821f11396@172.17.0.1:5060" > /dev/null &") in new stack
[2022-10-12 15:00:59.731] VERBOSE[6577][C-0000001f] pbx.c: Executing [h@docker-in:2] NoOp("SIP/12-0000001e", "CallerId:"kvint3" <asterisk> UniqID:1665586853.323 DialStatus:ANSWER") in new stack
[2022-10-12 15:00:59.731] VERBOSE[6577][C-0000001f] pbx.c: Executing [h@docker-in:3] Hangup("SIP/12-0000001e", "") in new stack
[2022-10-12 15:00:59.731] VERBOSE[6577][C-0000001f] pbx.c: Spawn extension (docker-in, h, 3) exited non-zero on 'SIP/12-0000001e'
[2022-10-12 15:01:09.332] ERROR[371] format_cap.c: FRACK!, Failed assertion bad magic number 0x0 for object 0x559a835bbf08 (0)
[2022-10-12 15:01:09.334] ERROR[371] : Got 11 backtrace records
# 0: /usr/sbin/asterisk(__ao2_ref+0xab) [0x559a8243842b]
# 1: /usr/sbin/asterisk(+0x10da89) [0x559a824d9a89]
# 2: /usr/sbin/asterisk(ast_format_cap_append_from_cap+0xf0) [0x559a824da720]
# 3: /usr/lib/asterisk/modules/chan_sip.so(+0x66349) [0x7ff62f62b349]
# 4: /usr/lib/asterisk/modules/chan_sip.so(+0x6730a) [0x7ff62f62c30a]
# 5: /usr/lib/asterisk/modules/chan_sip.so(+0x67f5d) [0x7ff62f62cf5d]
# 6: /usr/sbin/asterisk(ast_sched_runq+0xf6) [0x559a82562006]
# 7: /usr/lib/asterisk/modules/chan_sip.so(+0x76bb7) [0x7ff62f63bbb7]
# 8: /usr/sbin/asterisk(+0x1df93f) [0x559a825ab93f]
# 9: /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7ff8004446db]
#10: /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7ff7ff97e61f]

Did you post this in the issue tracker?

FYI there would likely be a follow-up request for more dialplan, exact steps to reproduce, etc.:

https://issues.asterisk.org/jira/browse/ASTERISK/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.