<div dir="ltr"><div dir="ltr" style="font-size:12.8px">I believe this is the most recent database schema guide for us to reference:<div><br></div><div><a href="http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_9_02/user/guide/UCCX_dbschema.pdf" target="_blank">http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_9_02/user/guide/UCCX_dbschema.pdf</a><br></div><div><br></div><div>A couple of things to note from that document:</div><div><ul><li style="margin-left:15px">Most of the call details are stored in the contactcalldetail table<br></li><ul><li style="margin-left:15px">The contactdisposition field holds the abandoned status for the call, which will be a value of 1</li></ul><li style="margin-left:15px">If you call never made it to the Select Resource step then that's as much detail as you can grab</li><li style="margin-left:15px">If you call did make it to the Select Resource step and was queued before abandoned then read further</li><li style="margin-left:15px">Most of the Queue details are stored in the contactqueuedetail table<br></li><ul><li style="margin-left:15px">The name of the CSQ is not in this table, you need to tie the targetid field to the recordid field in the contactservicequeue table</li><li style="margin-left:15px">The disposition field holds the abandoned status for the queued contact, which will be a value of 1</li></ul><li style="margin-left:15px">You can tie the records in the two contact detail tables together with the sessionid field value<br></li></ul><div>So, as an exercise, here is a SQL query example which will show you the last 10 calls which made it to a queue, and then abandoned:</div></div><div><br></div><div><font face="monospace, monospace">run uccx sql db_cra select limit 10 ccd.sessionid, ccd.startdatetime, ccd.originatordn as callingnumber, ccd.callednumber, ccd.applicationname, csq.csqname, ccd.connecttime as callduration, cqd.queuetime as queueduration, ccd.contactdisposition as contactdisposition from contactcalldetail as ccd left join contactqueuedetail as cqd on ccd.sessionid = cqd.sessionid left join contactservicequeue as csq on cqd.targetid = csq.recordid where cqd.sessionid is not null and ccd.contactdisposition = 1 order by ccd.startdatetime desc</font><br></div><div><br></div><div>And for the last 10 calls which abandoned but did not make it to a queue first (so contactqueuedetail would not have a record for the sessionid):</div><div><br></div><div><font face="monospace, monospace">run uccx sql db_cra select limit 10 ccd.sessionid, ccd.startdatetime, ccd.originatordn as callingnumber, ccd.callednumber, ccd.applicationname, csq.csqname, ccd.connecttime as callduration, cqd.queuetime as queueduration, ccd.contactdisposition as contactdisposition from contactcalldetail as ccd left join contactqueuedetail as cqd on ccd.sessionid = cqd.sessionid left join contactservicequeue as csq on cqd.targetid = csq.recordid where cqd.sessionid is null and ccd.contactdisposition = 1 order by ccd.startdatetime desc</font><br></div><div><br></div><div>Or, if you simply did not care if the call made to queue or not, you simply want to see the last 10 calls to abandon within the first 10 seconds</div><div><br></div><div><font face="monospace, monospace">run uccx sql db_cra select limit 10 ccd.sessionid, ccd.startdatetime, ccd.originatordn as callingnumber, ccd.callednumber, ccd.applicationname, csq.csqname, ccd.connecttime as callduration, cqd.queuetime as queueduration, ccd.contactdisposition as contactdisposition from contactcalldetail as ccd left join contactqueuedetail as cqd on ccd.sessionid = cqd.sessionid left join contactservicequeue as csq on cqd.targetid = csq.recordid where ccd.connecttime < 10 and ccd.contactdisposition = 1 order by ccd.startdatetime desc</font><br></div><div><font face="monospace, monospace"><br></font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 5, 2016 at 11:28 AM, Jose Colon II <span dir="ltr"><<a href="mailto:jcolon424@gmail.com" target="_blank">jcolon424@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there a way to pull the abandoned calls from the system on calls that never made it to an agent. Calls that the customer hung up on before being answered by an agent. <div><br></div><div>Example. Customer calls, script starts and customer hangs up right away.</div><div><br></div><div>I want to see what customer numbers are creating those abandoned calls. Is there a way I can pull from the database? If so what table and field should I pull from?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Jose </div></font></span></div>
<br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>