[asterisk-users] Subscribing to events on AMI login

TTT lists at telium.io
Tue Aug 8 11:28:56 CDT 2023


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-bounces at 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 at lists.digium.com>
Subject: Re: [asterisk-users] Subscribing to events on AMI login

 

On Tue, Aug 8, 2023 at 12:44 PM TTT <lists at telium.io <mailto:lists at 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> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230808/22de2245/attachment.html>


More information about the asterisk-users mailing list