Hi , i was looking for an answer on asterisk relevant forums and i got this reply:
"ok, from the information provided everything looks good. Looks like the call hit your IVR and the user selected 4, which immediately launched the application Queue(TechSupportQueue,tT), the caller was listening to musiconhold for 13 seconds while the call was being offered to Agent/1010. Unfortunately the caller hung up before Agent/1010 could pick up the phone, which is why you have 2 log entries for abandoned. However, both those log entries record the exact same uniqueid 1233843585.3162, so your analysis software just needs to record 1 abandoned call.
Running the statistics needs to assemble a table of call records (based on uniqueid) and then report the status based on the log entry. Once said table is assembled, then totals can be extrapolated from the table. Simply doing a count of the word ABANDON or any other status will yield erroneous data, like when a caller waits, agent 1 doesnt answer, caller remains in queue, agent 2 doesnt answer, caller remains in queue even longer, and then agent 3 answers. All those offers to agents will log on that uniqueID but the final status of the call itself will be COMPLETEAGENT or COMPLETECALLER or maybe even TRANSFER, even with all the RINGNOANSWER entries.
"
This is the cdr of the call in question above:
"","22372345","4","131_voice_menu_GR","""22372345"" <22372345>","SIP/5060-aad1b4d0","","Queue","TechSupportQueue|tT","2009-02-05 16:19:45","2009-02-05 16:19:47","2009-02-05 16:20:32",47,45,"ANSWERED","DOCUMENTATION","1233843585.3162",""
and this is what i got in the queue.log
1233843632|1233843585.3162|TechSupportQueue|Agent/1010|ABANDON|1|1|13
1233843632|1233843585.3162|TechSupportQueue|NONE|ABANDON|1|1|13