<div dir="ltr">On Thu, Jan 10, 2013 at 7:53 PM, RSCL Mumbai <span dir="ltr"><<a href="mailto:rscl.mumbai@gmail.com" target="_blank">rscl.mumbai@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
Can asteriskCDR logs tell me if a call was disconnected by the caller<br>
or the Agent ?<br>
<br>
My call flow is as follows:<br>
Caller Dials a DID >> Inbound Routes > Play Greeting > Call Enter<br>
Queue > Call sent to Dynamic Logged-in Agent(s)<br>
<br>
Thank you in advance.<br>
<br>
Best regards,<br>
Sans<br></blockquote><div><br></div><div style>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. </div><div style><br>
</div><div style><div>... ...</div><div>... ...</div><div>same => n,Set(HNGPPARTY=CALLER)</div><div>same => n,Queue(QNAME,c,,,60)</div><div>same => n,ExecIf($["${QUEUESTATUS}" = "CONTINUE"]?Set(HNGPPARTY=AGENT):)</div>
<div>... ...</div><div><br></div><div>exten => h,1,set(CDR(userfield)=${HNGPPARTY})</div><div><br></div><div>Note that if nobody answers a call then a variable HNGPPARTY would be empty.<br></div><div><br></div><div style>
--Satish Barot</div><div style>Ahmedabad,Gujarat,India.</div></div></div></div></div>