Fixed manager channelvars support.
authorDavid M. Lee <dlee@digium.com>
Wed, 10 Apr 2013 15:34:47 +0000 (15:34 +0000)
committerDavid M. Lee <dlee@digium.com>
Wed, 10 Apr 2013 15:34:47 +0000 (15:34 +0000)
For the events that have been ported to Stasis, this was broken in
r384910, when a couple of lines of code was lost in a merge.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@385236 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/stasis_channels.c

index 4fc6319..363ceb7 100644 (file)
@@ -153,6 +153,9 @@ struct ast_channel_snapshot *ast_channel_snapshot_create(struct ast_channel *cha
        snapshot->amaflags = ast_channel_amaflags(chan);
        snapshot->hangupcause = ast_channel_hangupcause(chan);
        snapshot->flags = *ast_channel_flags(chan);
+       snapshot->caller_pres = ast_party_id_presentation(&ast_channel_caller(chan)->id);
+
+       snapshot->manager_vars = ast_channel_get_manager_vars(chan);
 
        ao2_ref(snapshot, +1);
        return snapshot;