I just finished up a perl script that connect via the * AMI and triggers actions based when events fire. The triggers are then defined in the a triggers.conf file and point to an action defined in actions.conf, these actions can be any command line application.. pulling data from events is as simple as sticking a {Param} in the command ... ie an action can look like this : SIPStatus => perl ./mycustom_script.pl -p {Exten} {Status} -a {ActionID}
<br><br>again that's just an example, there's more info on the forums about it, and it's still just a rough script using the AMI but for what i need it works great.<br><br><div><span class="gmail_quote">On 4/18/07,
<b class="gmail_sendername">Yuan LIU</b> <<a href="mailto:yliu11@hotmail.com">yliu11@hotmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>From: dave cantera <<a href="mailto:david.cantera@iacnet.net">david.cantera@iacnet.net</a>><br>>Date: Thu, 19 Apr 2007 00:11:09 -0400<br>><br>>cf,<br>>I haven' t used the * manager... but from research, that is how I would
<br>>expect to do it... I would have a cron job fire off every 5 minutes (or<br>>so, probably configurable) and connect to * via the manager, request the<br>>status, then send an email based on the result... would be pretty easy...
<br>>could look into it if you would like... email me off list...<br>>daveC<br><br>If you are inclined to use cron, manager interface would be an overkill.<br>You can easily query either AstDB (database show, database showkey) or sip
<br>show user via asterisk -rx and parse the result.<br><br>Yuan Liu<br><br>>C F wrote:<br>>>I use qualify in sip.conf and need to setup a trigger when asterisk<br>>>sees it as unreachable, so that I can either drop a call file, or send
<br>>>an email, or both. How can I do that?<br>>><br>>>Thank you<br>><br>>--<br>>Building Strong Relationships w/ Intelligent Customer Service<br>>--<br>><br>>Interlocking Business Solutions, LLC
<br>>856-380-0894 x5000<br><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</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">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>