[asterisk-commits] dlee: branch dlee/json_main r383334 - /team/dlee/json_main/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 18 17:17:25 CDT 2013
Author: dlee
Date: Mon Mar 18 17:17:22 2013
New Revision: 383334
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383334
Log:
Fixed manager docs for Newexten
Modified:
team/dlee/json_main/main/manager_channels.c
Modified: team/dlee/json_main/main/manager_channels.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/json_main/main/manager_channels.c?view=diff&rev=383334&r1=383333&r2=383334
==============================================================================
--- team/dlee/json_main/main/manager_channels.c (original)
+++ team/dlee/json_main/main/manager_channels.c Mon Mar 18 17:17:22 2013
@@ -166,8 +166,19 @@
{
RAII_VAR(struct ast_str *, channel_event_string, NULL, ast_free);
+ if (ast_strlen_zero(snapshot->appl)) {
+ /* Channel's not in a valid state for a Newexten event yet */
+ return;
+ }
+
+ channel_event_string = manager_build_channel_state_string(snapshot);
+
+ if (!channel_event_string) {
+ return;
+ }
+
+ /* DEPRECATED: Extension field deprecated in 12; remove in 14 */
/*** DOCUMENTATION
- <managerEvent language="en_US" name="Newexten">
<managerEventInstance>
<synopsis>Raised when a channel enters a new context, extension, priority.</synopsis>
<syntax>
@@ -185,20 +196,7 @@
</parameter>
</syntax>
</managerEventInstance>
- </managerEvent>
***/
- if (ast_strlen_zero(snapshot->appl)) {
- /* Channel's not in a valid state for a Newexten event yet */
- return;
- }
-
- channel_event_string = manager_build_channel_state_string(snapshot);
-
- if (!channel_event_string) {
- return;
- }
-
- /* DEPRECATED: Extension field deprecated in 12; remove in 14 */
manager_event(EVENT_FLAG_DIALPLAN, "Newexten",
"%s"
"Extension: %s\r\n"
More information about the asterisk-commits
mailing list