UserEvent(eventname[,body])
Full arguments reference
eventnamerequiredbody
Sends an arbitrary event to interested parties, with an optional body representing additional arguments. The body may be specified as a , delimited list of key:value pairs.
For AMI, each additional argument will be placed on a new line in the event and the format of the event will be:
Event: UserEvent
UserEvent:
[body]
If no body is specified, only Event and UserEvent headers will be present.
For res_stasis applications, the event will be provided as a JSON blob with additional arguments appearing as keys in the object and the eventname under the eventname key.
eventnamerequiredbody
User Notes
Know a tip or gotcha for this topic? Share it below and help others.
Contribute a note
Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.