[asterisk-users] Call Disconnected by Caller or Agent

Satish Barot satish4asterisk at gmail.com
Thu Jan 10 22:59:46 CST 2013


On Thu, Jan 10, 2013 at 7:53 PM, RSCL Mumbai <rscl.mumbai at gmail.com> wrote:

> Hello,
>
> Can asteriskCDR logs tell me if a call was disconnected by the caller
> or the Agent ?
>
> My call flow is as follows:
> Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter
> Queue > Call sent to Dynamic Logged-in Agent(s)
>
> Thank you in advance.
>
> Best regards,
> Sans
>

I would use userfield of CDR to identify who disconnected the call and have
following sort of logic in a context where I send a call to Queue
application.

... ...
... ...
same => n,Set(HNGPPARTY=CALLER)
same => n,Queue(QNAME,c,,,60)
same => n,ExecIf($["${QUEUESTATUS}" = "CONTINUE"]?Set(HNGPPARTY=AGENT):)
... ...

exten => h,1,set(CDR(userfield)=${HNGPPARTY})

Note that if nobody answers a call then a variable HNGPPARTY would be empty.

--Satish Barot
Ahmedabad,Gujarat,India.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130111/5d2504c6/attachment.htm>


More information about the asterisk-users mailing list