Soporte & Consultoria

Soporte Remoto y Consultoria skype : ambiorixg12.
Nota no se brinda ningun tipo de consulta o soporte fuera del blog de forma gratuita

jueves, 29 de octubre de 2015

Asterisk how to find who has disconnected call

Re: how to find who has disconnected call

New postby 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

No hay comentarios:

Publicar un comentario