O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required