I am trying to figure out which table/column stores the information about the number of outgoing calls an agent has made. I can get the total number of incoming calls using the query below, but I am not sure about how to get total outgoing calls. The database is MySQL and the application is Shoretel.
Any help would be greatly appreciated!
SELECT sum(a_acd_answered) FROM ecc.agent, ecc.agnto where agent.agent_id = agnto.agent_id and a_date >= ''2014-03-09'' and a_date <= ''2014-03-15'' and agnto.agent_id = 9'
If you want to know the statistical number, then here is the query:
If you want to know the call details info, then it is better to use
shorewarecdr
schema by agent extension. Check the below query.Note:
CallType=3
is for outbound.