Asterisk Manager API Action Events

Action: Events
Synopsis: Contol Event Flow
Privilege:
Description: Enable/Disable sending of events to this manager client.

Variables:
EventMask:
  • 'on' if all events should be sent,
  • 'off' if no events should be sent,
  • 'system,call,log,verbose,command,agent,user' to select which flags events should have to be sent.
  • In asterisk 1.6 you can also have 'reporting' as a flag.

(NOTE: this is the *CLI help output.)

Hint: Some Events are enabled or disabled in their corresponding .conf Files too. They might be disabled by default.

NOTE:
EventMask ON does not return any immediate response, in this example below, there was nothing returned until the device unregistered (Asterisk 1.0.9):
>ACTION: EVENTS
>EVENTMASK: ON

Event: PeerStatus
Peer: SIP/ChannelName
PeerStatus: Unregistered
Cause: Expired



As opposed to EventMask OFF which returns a response immediately:
>ACTION: EVENTS
>EVENTMASK: OFF

Response: Events Off


Action: Events
Synopsis: Contol Event Flow
Privilege:
Description: Enable/Disable sending of events to this manager client.

Variables:
EventMask:
  • 'on' if all events should be sent,
  • 'off' if no events should be sent,
  • 'system,call,log,verbose,command,agent,user' to select which flags events should have to be sent.
  • In asterisk 1.6 you can also have 'reporting' as a flag.

(NOTE: this is the *CLI help output.)

Hint: Some Events are enabled or disabled in their corresponding .conf Files too. They might be disabled by default.

NOTE:
EventMask ON does not return any immediate response, in this example below, there was nothing returned until the device unregistered (Asterisk 1.0.9):
>ACTION: EVENTS
>EVENTMASK: ON

Event: PeerStatus
Peer: SIP/ChannelName
PeerStatus: Unregistered
Cause: Expired



As opposed to EventMask OFF which returns a response immediately:
>ACTION: EVENTS
>EVENTMASK: OFF

Response: Events Off


Created by: adriaomendes, Last modification: Thu 08 of Jul, 2010 (15:32 UTC) by akavan
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+