On Fri, Jan 11, 2013 at 10:29 AM, Satish Barot <satish4aster...@gmail.com>wrote:
> On Thu, Jan 10, 2013 at 7:53 PM, RSCL Mumbai <rscl.mum...@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=))
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users