Re: how to find who has disconnected call
by satish4asterisk » 07 Oct 2015 05:27
I normally use something like below to find out who disconnected the call
exten => _X.,1,Set(DisconnectedBy=CALLER)
; g - Proceed with dialplan execution at the next priority in the current extension if the destination channel hangs up.
same => n,Dial(${YOUR_DIAL_TECHNOLOGY}/${NUMBER},,g)
same => n,Set(DisconnectedBy=CALLEE)
same => n,Hangup
exten => h,1,NoOp(DisconnectedBy ${DisconnectedBy})
same => n,Set(CDR(userfield)=${DisconnectedBy})
--Satish Barot
exten => _X.,1,Set(DisconnectedBy=CALLER)
; g - Proceed with dialplan execution at the next priority in the current extension if the destination channel hangs up.
same => n,Dial(${YOUR_DIAL_TECHNOLOGY}/${NUMBER},,g)
same => n,Set(DisconnectedBy=CALLEE)
same => n,Hangup
exten => h,1,NoOp(DisconnectedBy ${DisconnectedBy})
same => n,Set(CDR(userfield)=${DisconnectedBy})
--Satish Barot
No hay comentarios:
Publicar un comentario