Skip to content
Snippets Groups Projects
Commit a0b9439b authored by Olle Johansson's avatar Olle Johansson
Browse files

Clarify syntax of new manager events that reports a status.

We do not longer approve "ThisEventOn" and "ThisEventOff" named events,
they need to be named "ThisEvent" with a status header showing the
current status.
(Approved by Mark)
Old events won't be changed to keep backwards compatibility,
until we have a revision plan for the AMI.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent f11fb652
No related branches found
No related tags found
No related merge requests found
...@@ -522,6 +522,19 @@ int len = 0; ...@@ -522,6 +522,19 @@ int len = 0;
if (name && (len = strlen(name) + strlen(prefix) + strlen(postfix) + 3) && (newname = alloca(len))) if (name && (len = strlen(name) + strlen(prefix) + strlen(postfix) + 3) && (newname = alloca(len)))
snprintf(newname, len, "%s/%s/%s", prefix, name, postfix); snprintf(newname, len, "%s/%s/%s", prefix, name, postfix);
* Creating new manager events?
------------------------------
If you create new AMI events, please read manager.txt. Do not re-use
existing headers for new purposes, but please re-use existing headers
for the same type of data.
Manager events that signal a status are required to have one
event name, with a status header that shows the status.
The old style, with one event named "ThisEventOn" and another named
"ThisEventOff", is no longer approved.
Check manager.txt for more information on manager and existing
headers. Please update this file if you add new headers.
----------------------------------------------- -----------------------------------------------
Welcome to the Asterisk development community! Welcome to the Asterisk development community!
......
...@@ -296,3 +296,4 @@ Some standard AMI headers: ...@@ -296,3 +296,4 @@ Some standard AMI headers:
** Please try to re-use existing headers to simplify manager message parsing in clients. ** Please try to re-use existing headers to simplify manager message parsing in clients.
Read the CODING-GUIDELINES if you develop new manager commands or events.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment