Hello, The case am pursuing is as follow:
When receiving a call from the caller(A-party). I want to dial to called(B-party) and initiate a sub-routine, for simplicity let’s say we only want for the B-party to listen to a tone.
I am using the below configuration:
[default]
exten => _X.,1,Dial(SIP/${EXTEN},20,U(test))
same => n,Hangup()
[test]
exten => s,1,Playback(tt-monkeys)
same => n,Return()
The problem I am facing is that while playing the tone, if A-party hangs up the call, B-party still hears the remaining of the tone (the call is not dropped from the B-party side directly).
What I want is if one of the parties left the call, the call must be dropped from both parties immediately and all created channels must be closed.
PS: I can’t use option A in dial since Playback is not the only application I want to use.