diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-03-28 15:45:18 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-03-28 15:45:18 +0000 |
commit | 71206544a770eb4004294ed13613a7cde6e0e056 (patch) | |
tree | 7664e5ebef6d139f25c264946a7270b4141a8fe3 /main/manager_channels.c | |
parent | 1a2a4578d2ab7e1d1f1518a3f8bcc41f3fd13702 (diff) |
Break the world. Stasis message type accessors should now all be named correctly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/manager_channels.c')
-rw-r--r-- | main/manager_channels.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/manager_channels.c b/main/manager_channels.c index abeffe33b..ce8e0870c 100644 --- a/main/manager_channels.c +++ b/main/manager_channels.c @@ -441,7 +441,7 @@ static void channel_snapshot_update(void *data, struct stasis_subscription *sub, update = stasis_message_data(message); - if (ast_channel_snapshot() != update->type) { + if (ast_channel_snapshot_type() != update->type) { return; } @@ -593,11 +593,11 @@ static void channel_blob_cb(void *data, struct stasis_subscription *sub, { struct ast_channel_blob *obj = stasis_message_data(message); - if (strcmp("varset", ast_channel_blob_type(obj)) == 0) { + if (strcmp("varset", ast_channel_blob_json_type(obj)) == 0) { channel_varset(obj); - } else if (strcmp("userevent", ast_channel_blob_type(obj)) == 0) { + } else if (strcmp("userevent", ast_channel_blob_json_type(obj)) == 0) { channel_userevent(obj); - } else if (strcmp("hangup_request", ast_channel_blob_type(obj)) == 0) { + } else if (strcmp("hangup_request", ast_channel_blob_json_type(obj)) == 0) { channel_hangup_request(obj); } } @@ -627,12 +627,12 @@ int manager_channels_init(void) } ret |= stasis_message_router_add(channel_state_router, - stasis_cache_update(), + stasis_cache_update_type(), channel_snapshot_update, NULL); ret |= stasis_message_router_add(channel_state_router, - ast_channel_blob(), + ast_channel_blob_type(), channel_blob_cb, NULL); |