Ok – so if I forgot to add “security” to the read= line in manager.conf for 
this user, will that cause the user to be unable to subscribe to the “security” 
events upon login?  (in other words, although subscribed at login, no security 
events will be shown to this user)

 

Thanks

 

From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf 
Of Joshua C. Colp
Sent: Tuesday, August 8, 2023 11:57 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Subscribing to events on AMI login

 

On Tue, Aug 8, 2023 at 12:44 PM TTT <li...@telium.io <mailto:li...@telium.io> > 
wrote:

I'm looking at an old app I wrote that upon AMI login would subscribe to events 
as follows:

 

Action: Login

ActionID: myid

Username: myun

Secret: mypw

Events: call, system, security

 

I noticed this old code isn't working, and I *think* that the events parameter 
of login has been deprecated; I don't see it referenced in:

https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+ManagerAction_Login

 

I’m using Asterisk 20, so Is the events parameter still valid?  I don't seem to 
receive any events other than the "FullyBooted" event after login.  If not 
valid, how should I subscribe to events programmatically?

 

The parameter appears to be valid, just implemented in such a way that it 
likely got missed when writing the documentation. As for not working, you'd 
need to provide the manager.conf configuration as well. There is also the 
Events AMI action[1] for changing it after login.

 

[1] 
https://docs.asterisk.org/Asterisk_20_Documentation/API_Documentation/AMI_Actions/Events/

 

-- 

Joshua C. Colp

Asterisk Project Lead

Sangoma Technologies

Check us out at www.sangoma.com <http://www.sangoma.com>  and www.asterisk.org 
<http://www.asterisk.org> 

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to