See this link: <div><a href="http://www.voip-info.org/wiki/view/Asterisk+queue_log+on+MySQL">http://www.voip-info.org/wiki/view/Asterisk+queue_log+on+MySQL</a></div><div><br></div><div>You'll find similar pages where you can setup to store queue logs/events(as Alex mentioned) in MySQL DB and further do your triggers or functions on them.</div>
<div><br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 10:46 AM, Michael <span dir="ltr"><<a href="mailto:voip.question@gmail.com">voip.question@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">We're using FreePBX and I'm wondering if it's possible to add to the login/logout macros a command to execute an AGI/Command to launch an external process for that.<br><br>Thanks.<br><br><div class="gmail_quote">
On Fri, Aug 12, 2011 at 2:30 PM, Alex Vishnev <span dir="ltr"><<a href="mailto:alex9134@gmail.com" target="_blank">alex9134@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
you can monitor queue_log file for ADDMEMBER or REMOVEMEMBER events. from that point on, you can store them or take any other action.<br>
the other way is to use AMI an monitor for Agent login/logoff events<br>
<div><div></div><div>On Aug 12, 2011, at 7:06 AM, Michael wrote:<br>
<br>
> Hello,<br>
><br>
> Is there a way to either store login/logout agent information in a database or at least send an email when an agent logs in or out of a queue?<br>
><br>
> Thanks,<br>
><br>
> Michael<br>
</div></div></blockquote></div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>