Thanks for you answer,but I’ve tried without options e,g,e&g, etc. but this doesn’t make a difference.
I did some additional testing:
*) Bridge 2 incoming SIP calls (3040->3030, 3050->3030) - OK
*) Bridge 1 incoming and 1 outgoing SIP call (3040->3030, 3030->3050) - OK
*) Bridge 2 outgoing SIP calls (3030->3040, 3030->3050) - NOK. In this case, if the last channel has
left the simple bridge, the dialplan ist restarted. Any clues why this is happening and/or hints how to further debug this issue?
In the meantime I’ve implemented the following (dialplan) workaround :
exten => s,1,NoOP()
same => n,GotoIf($[ ${HANGUPCAUSE} = 16 ]?Done)
same => n,NoOP()
same => n(Done),Verbose("${CALLERID(num)} hung up, do not restart dialplan! ")
Debug:
-- Channel PJSIP/3050-00000216 joined 'simple_bridge' basic-bridge <6ccafe5b-b991-419e-b131-2949e0481966>
-- Channel PJSIP/3030-00000215 joined 'simple_bridge' basic-bridge <6ccafe5b-b991-419e-b131-2949e0481966>
-- Channel PJSIP/3040-00000212 left 'simple_bridge' basic-bridge <a3bd3686-7a38-4998-a3b0-1c92d4f2ad33>
-- Channel PJSIP/3040-00000212 joined 'simple_bridge' basic-bridge <22d83754-b36d-42c0-bc3c-3a26cb9ffe9f>
-- Channel PJSIP/3050-00000216 left 'simple_bridge' basic-bridge <6ccafe5b-b991-419e-b131-2949e0481966>
-- Channel PJSIP/3030-00000211 left 'simple_bridge' basic-bridge <a3bd3686-7a38-4998-a3b0-1c92d4f2ad33>
-- Channel PJSIP/3050-00000216 joined 'simple_bridge' basic-bridge <22d83754-b36d-42c0-bc3c-3a26cb9ffe9f>
== Spawn extension (default, 3040, 2) exited non-zero on 'PJSIP/3030-00000211'
-- Executing [h@default:1] Verbose("PJSIP/3030-00000211", ""Hangup!!!!"") in new stack
Hangup!!!!
-- Channel PJSIP/3030-00000215 left 'simple_bridge' basic-bridge <6ccafe5b-b991-419e-b131-2949e0481966>
== Spawn extension (default, 3050, 2) exited non-zero on 'PJSIP/3030-00000215'
-- Executing [h@default:1] Verbose("PJSIP/3030-00000215", ""Hangup!!!!"") in new stack
Hangup!!!!
-- <PJSIP/3040-00000212> Playing 'beep.slin' (language 'en')
-- <PJSIP/3050-00000216> Playing 'beep.slin' (language 'en')
-- Channel PJSIP/3050-00000216 left 'simple_bridge' basic-bridge <22d83754-b36d-42c0-bc3c-3a26cb9ffe9f>
-- Channel PJSIP/3040-00000212 left 'simple_bridge' basic-bridge <22d83754-b36d-42c0-bc3c-3a26cb9ffe9f>
== Starting PJSIP/3040-00000212 at default,,1 failed so falling back to exten 's'
-- Executing [s@default:1] NoOp("PJSIP/3040-00000212", "") in new stack
-- Executing [s@default:2] GotoIf("PJSIP/3040-00000212", "1?Done") in new stack
-- Goto (default,s,4)
-- Executing [s@default:4] Verbose("PJSIP/3040-00000212", ""3040 hung up, do not restart dialplan! "") in new stack
3040 hung up, do not restart dialplan!
-- Auto fallthrough, channel 'PJSIP/3040-00000212' status is 'UNKNOWN'
-- Executing [h@default:1] Verbose("PJSIP/3040-00000212", ""Hangup!!!!"") in new stack
Hangup!!!!
Thanks & kind regards
// Clemens