Wrote a confbridge menu to allow the staff to disconnect a caller using dialplan_exec. It works as intended, but it says the calling it from the bridge is report as falling through and in an unknown state. I noticed the channel on pjsip becomes appended with the last application used in the dialplan. I can’t use hangup as I want this to execute and return the staff to the bridge, return doesn’t work as there was no gosub.
I know there are other ways to kick from a bridge, but I was modelling this to run other functions for someone not wanting to leave the bridge.
Is there a proper way to terminate the hangup context for a dialplan_exec?
[menu-staff]
type=menu
*=playback_and_continue(conf-usermenu)
1=dialplan_exec(send-vm,2001,1)
4=dialplan_exec(goodbye,s,1)
Auto fallthrough, channel ‘PJSIP/KAMTEST-00000007’ status is ‘UNKNOWN’
pjsip show channels
Channel: <ChannelId…> <State…> <Time…>
Exten: <DialedExten…> CLCID: <ConnectedLineCID…>Channel: PJSIP/KAMTEST-00000007/UserEvent Up 00:01:51
Exten: s CLCID: “” <>
[goodbye]
exten => s,1,NoOp(Goodbye requested ${BRIDGEPEER})
same => n,Set(BRIDGENAME=${CUT(CUT(BRIDGEPEER,/,2)),1)})
same => n,ConfKick(${BRIDGENAME},participants)
same => n,UserEvent(REQ_DROP_CALLER,BridgeID=${BRIDGENAME})