[asterisk-users] Catch an event

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Sep 5 23:23:30 MST 2006


On Tue, Sep 05, 2006 at 09:56:57PM +0200, Olivier Saulnier wrote:
> Hello,
> 
> I would like for some reasons, catch the ring event since Asterisk, in 
> real-time. Is this information record in a database? How can I read it, 
> immediatly?
> I either think to catch the information by a little shell script as:
> asterisk -r |tail -1|grep ring|awk ...  and redirect the internal number 
> to an application fir process?
> Do you see a best way to do that??

tail -f /var/log/asterisk/full | grep whatever

However a mor robust way would be to use the manager interface.

-- 
Tzafrir Cohen         sip:tzafrir at local.xorcom.com
icq#16849755          iax:tzafrir at local.xorcom.com
+972-50-7952406          jabber:tzafrir at jabber.org
tzafrir.cohen at xorcom.com     http://www.xorcom.com


More information about the asterisk-users mailing list