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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.