Skip to end of metadata
Go to start of metadata

UserEvent()

Synopsis

Send an arbitrary event to the manager interface.

Description

Sends an arbitrary event to the manager interface, with an optional body representing additional arguments. The body may be specified as a , delimited list of headers. Each additional argument will be placed on a new line in the event. The format of the event will be:

Event: UserEvent

UserEvent: <specified event name>

[body]

If no body is specified, only Event and UserEvent headers will be present.

Syntax

UserEvent(eventname,[body])
Arguments
  • eventname
  • body

See Also

Import Version

This documentation was imported from Asterisk Version SVN-branch-11-r418713

  • No labels

1 Comment

  1. Example:
    UserEvent(MY_EVENT,CHANNEL: ${CHANNEL},CALLFILENAME: ${CALLFILENAME})

    Return:

    $VAR1 = {

              'CALLFILENAME' => '1401911778.528',

              'CHANNEL' => 'SIP/VOIP01-000000e1',

              'Event' => 'UserEvent',

              'Uniqueid' => '1401911789.531',

              'Privilege' => 'user,all',

              'UserEvent' => 'My_EVENT'

            };