<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="MSHTML 11.00.9600.16476">
<style title="owaParaStyle"><!--P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
--></style>
</head>
<body ocsi="x">
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">Thanks - I've been through that doc before and couldn't find the info needed, which is why I went to the source code eventually.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">All events are grouped, and each group is given a name/flag like 'system', 'call', etc. The docs just don't say which events are in which group/flag.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">Perhaps something Digium could add at some point :)</font></div>
<div id="divRpF139438" style="DIRECTION: ltr">
<hr tabindex="-1">
<font size="2" face="Tahoma"><b>From:</b> asterisk-users-bounces@lists.digium.com [asterisk-users-bounces@lists.digium.com] On Behalf Of Daniel Jenkins [dan.jenkins88@gmail.com]<br>
<b>Sent:</b> Thursday, January 23, 2014 10:25 AM<br>
<b>To:</b> Asterisk Users List<br>
<b>Subject:</b> Re: [asterisk-users] AMI eventmask question<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jan 23, 2014 at 3:06 PM, Michelle Dupuis <span dir="ltr">
<<a href="mailto:mdupuis@ocg.ca">mdupuis@ocg.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div dir="ltr"><font color="#000000" face="Tahoma">That's an interesting link - I didn't know you could set a per user eventfilter in the conf file</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">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').</font></div>
</div>
</blockquote>
<div><br>
</div>
<div>Ah, I remember what you're talking about now</div>
<div><br>
</div>
<div><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+ManagerAction_Events" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+ManagerAction_Events</a><br>
</div>
<div><br>
</div>
<div>That's the link to the Asterisk 12 AMI docs, the specs changed in 12 and some events are different but it's the best docs available for the AMI in my opinion - the specs didn't change much at all.</div>
<div><br>
</div>
<div>So in answer to your question, using EventMask, I don't think this is possible as EventMask only works with those blocks of permissions, like call and security. If you wanted to only get the one event type then you'd need to do that in manager.conf - I
may be wrong on that, I haven't looked at the source code or anything but from what the docs say, and the docs are generated from the source code now, you can only specifiy those larger blocks,</div>
<div><br>
</div>
<div>Hope I've helped,</div>
<div><br>
</div>
<div>Dan</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div style="DIRECTION: ltr">
<hr>
<font face="Tahoma"><b>From:</b> <a href="mailto:asterisk-users-bounces@lists.digium.com">
asterisk-users-bounces@lists.digium.com</a> [<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Daniel Jenkins [<a href="mailto:dan.jenkins88@gmail.com">dan.jenkins88@gmail.com</a>]<br>
<b>Sent:</b> Thursday, January 23, 2014 9:03 AM<br>
<b>To:</b> Asterisk Users List<br>
<b>Subject:</b> Re: [asterisk-users] AMI eventmask question<br>
</font><br>
</div>
<div>
<div class="h5">
<div></div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Jan 23, 2014 at 3:25 AM, Michelle Dupuis <span dir="ltr">
<<a href="mailto:mdupuis@ocg.ca">mdupuis@ocg.ca</a>></span> wrote:<br>
<div><br>
</div>
<div>Hi</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div dir="ltr"><font color="#000000" face="Tahoma">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?</font></div>
<div dir="ltr"><font face="tahoma"></font></div>
</div>
</blockquote>
<div><br>
</div>
<div>Are you talking about the event filter in manager.conf?</div>
<div><br>
</div>
<div>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</div>
<div><br>
</div>
<div>Take a look at the event filters in this blog post and you'll see what I mean,</div>
<div><br>
</div>
<div><a href="http://hungrygeek.holidayextras.co.uk/2012/05/14/elastix-apply-configuration-changes-problem/" target="_blank">http://hungrygeek.holidayextras.co.uk/2012/05/14/elastix-apply-configuration-changes-problem/</a><br>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div dir="ltr"> </div>
<div dir="ltr"><font face="tahoma">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...</font></div>
</div>
<br>
</blockquote>
<div> </div>
<div>Dan </div>
<div><br>
</div>
<div> </div>
</div>
<br>
</div>
</div>
</div>
</div>
</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>
</div>
</div>
</body>
</html>