[asterisk-users] AMI eventmask question

Michelle Dupuis mdupuis at ocg.ca
Thu Jan 23 09:06:16 CST 2014


That's an interesting link - I didn't know you could set a per user eventfilter in the conf file

However, I'm hoping to do this in the AMI connection for more flexibility.  Upon login, you can specify the event mask to restrict the type of events sent over the AMI connection.  Looking through the Asterisk code I think Newchannel falls under the 'call' event flag...but it would be nice to restrict this even further (since lots of events fall under 'call').
________________________________
From: asterisk-users-bounces at lists.digium.com [asterisk-users-bounces at lists.digium.com] On Behalf Of Daniel Jenkins [dan.jenkins88 at gmail.com]
Sent: Thursday, January 23, 2014 9:03 AM
To: Asterisk Users List
Subject: Re: [asterisk-users] AMI eventmask question



On Thu, Jan 23, 2014 at 3:25 AM, Michelle Dupuis <mdupuis at ocg.ca<mailto:mdupuis at ocg.ca>> wrote:

Hi

I'm creating an AMI client and I only want to get newchannel events (as well as responses to any actions I initiate).  What would I set the eventmask to to only get the newchannel events?

Are you talking about the event filter in manager.conf?

Using event filters you can say if you want to receive an event or not, specific to the event, instead of the classification of system/call etc

Take a look at the event filters in this blog post and you'll see what I mean,

http://hungrygeek.holidayextras.co.uk/2012/05/14/elastix-apply-configuration-changes-problem/



For anyone else looking...is there a table somewhere online that maps events to their eventmask categories?  I checked the asterisk wiki and voip-info but can't find this...


Dan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140123/7aa393e0/attachment.html>


More information about the asterisk-users mailing list