Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd UserEvent

Author image

UserEvent

Synopsis

Send an arbitrary event to the manager interface

Description

UserEvent(eventname[|body])

Sends an arbitrary event to the manager interface, with an optional body representing additional arguments. To split body text to several lines | character could be used in Asterisk 1.4. There’s no way to do multiple lines in Asterisk 1.2. The format of the event will be:

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

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

In Asterisk 1.4, the format of the event is :
Event: UserEvent
Privilege: <privilege (user,all for example)>
UserEvent: <specified event name>
[body]

Return value

Always returns 0.

Example

UserEvent(ASTDB|Family: dnd)
UserEvent(ASTDB|Family: dnd|State: on) in 1.4
UserEvent(ASTDB,Family: dnd,State: on) in 1.6

See also


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.