Name

UserEvent() — Sends an arbitrary event to the Manager interface

Synopsis

    UserEvent(eventname[,body])

Sends an arbitrary event to the Manager interface, with an optional body representing additional arguments. The format of the event is:

    Event: UserEvent<specified event name>
    Channel: <channel name>
    Uniqueid: <call uniqueid>
    [body]

If the body is not specified, only the Event, Channel, and Uniqueid fields will be present.

Always returns 0.

               exten => 123,1,UserEvent(BossCalled,${CALLERIDNAME} has called the boss!)
    exten => 123,2,Dial(${BOSS})

See Also

manager.conf, Asterisk Manager interface

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.