[asterisk-users] Call Disconnected by Caller or Agent
Satish Barot
satish4asterisk at gmail.com
Thu Jan 10 23:03:25 CST 2013
On Fri, Jan 11, 2013 at 10:29 AM, Satish Barot <satish4asterisk at gmail.com>wrote:
> 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.
>
A small correction...
same => n,ExecIf($["${QUEUESTATUS}" =
"CONTINUE"]?Set(HNGPPARTY=AGENT):Set(HNGPPARTY=))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130111/f1fa4483/attachment.htm>
More information about the asterisk-users
mailing list