[asterisk-commits] may: trunk r389180 - in /trunk/addons: chan_ooh323.c chan_ooh323.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun May 19 15:52:38 CDT 2013
Author: may
Date: Sun May 19 15:52:34 2013
New Revision: 389180
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389180
Log:
add ast_publish_channel_state according new event framework
Modified:
trunk/addons/chan_ooh323.c
trunk/addons/chan_ooh323.h
Modified: trunk/addons/chan_ooh323.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/chan_ooh323.c?view=diff&rev=389180&r1=389179&r2=389180
==============================================================================
--- trunk/addons/chan_ooh323.c (original)
+++ trunk/addons/chan_ooh323.c Sun May 19 15:52:34 2013
@@ -490,9 +490,8 @@
}
if (ch) {
- manager_event(EVENT_FLAG_SYSTEM, "ChannelUpdate",
- "Channel: %s\r\nChanneltype: %s\r\n"
- "CallRef: %d\r\n", ast_channel_name(ch), "OOH323", i->call_reference);
+ ast_publish_channel_state(ch);
+
}
} else
ast_log(LOG_WARNING, "Unable to allocate channel structure\n");
@@ -2149,8 +2148,7 @@
ast_queue_control(c, AST_CONTROL_ANSWER);
ast_channel_unlock(p->owner);
- manager_event(EVENT_FLAG_SYSTEM,"ChannelUpdate","Channel: %s\r\nChanneltype: %s\r\n"
- "CallRef: %d\r\n", ast_channel_name(c), "OOH323", p->call_reference);
+ ast_publish_channel_state(c);
}
ast_mutex_unlock(&p->lock);
Modified: trunk/addons/chan_ooh323.h
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/chan_ooh323.h?view=diff&rev=389180&r1=389179&r2=389180
==============================================================================
--- trunk/addons/chan_ooh323.h (original)
+++ trunk/addons/chan_ooh323.h Sun May 19 15:52:34 2013
@@ -64,6 +64,7 @@
#include "asterisk/format.h"
#include "asterisk/format_cap.h"
#include "asterisk/udptl.h"
+#include "asterisk/stasis_channels.h"
#include "ootypes.h"
#include "ooUtils.h"
More information about the asterisk-commits
mailing list