diff options
author | Alexandr Anikin <may@telecom-service.ru> | 2013-05-19 20:52:34 +0000 |
---|---|---|
committer | Alexandr Anikin <may@telecom-service.ru> | 2013-05-19 20:52:34 +0000 |
commit | 62e64134facb69cbd43880b20f6c4847b6987330 (patch) | |
tree | c484c95dac8cb2334065f84d2e7bda3a2a20f6b6 /addons/chan_ooh323.c | |
parent | 8d6b0c9f3bfd996d69c5115e167afa18624b5f96 (diff) |
add ast_publish_channel_state according new event framework
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/chan_ooh323.c')
-rw-r--r-- | addons/chan_ooh323.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c index d6ddf9eaf..a393e8e0e 100644 --- a/addons/chan_ooh323.c +++ b/addons/chan_ooh323.c @@ -490,9 +490,8 @@ static struct ast_channel *ooh323_new(struct ooh323_pvt *i, int state, } 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 @@ int onCallEstablished(ooCallData *call) 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); |