<div dir="ltr">Faisal:<div><br></div><div>Load up the CDR into a db (MySQL or otherwise) ...</div><div><br></div><div>For ACD you'll want a SQL query akin</div><div><ul><li>SELECT COUNT(*) AS calls_answered, SUM(billusec) AS billusec, SUM(billusec)/COUNT(*) AS acd FROM freeswitchdb.freeswitchcdr WHERE disposition=1;</li>
</ul></div><div>For ASR you'll need another query</div><div><ul><li>SELECT COUNT(*) AS calls_total FROM freeswitchdb.freeswitchcdr;</li><li>ASR is calls_answered/calls_total</li></ul><div>There is sample (read: poor) code in <a href="http://jira.freeswitch.org/browse/FS-1981">http://jira.freeswitch.org/browse/FS-1981</a></div>
</div><div>which a google for "freeswitch ACD ASR" would have helped you get to in the first place.</div><div><br></div><div>-wasim</div><div><br><div class="gmail_quote">On Mon, Oct 24, 2011 at 15:39, Faisal Rehman <span dir="ltr"><<a href="mailto:faisal.rehman22@hotmail.com">faisal.rehman22@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">
Hi Everyone,<div><br></div><div>I want to write a script that reads the Master.csv & generate an alert if the ASR & ACD is low from the desired value. Anybody has written such script, please help me write it or provide any sample.</div>
<div><br></div><div><br></div><div>Thanks</div><div><br></div><font color="#888888"><div><br></div><div>Faisal Rehman</div>                                            </font></div></div>
<br><br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>wasim h. baig | principal consultant | convergence pk | +92 30 0850 8070 | peace be upon you ...<br>
</div></div>