Fix monitoring when channel redirected (bug #3809, patch redone)
authorMark Spencer <markster@digium.com>
Sun, 31 Jul 2005 21:27:21 +0000 (21:27 +0000)
committerMark Spencer <markster@digium.com>
Sun, 31 Jul 2005 21:27:21 +0000 (21:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6247 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 2af7f4a..d4e8885 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -2652,6 +2652,9 @@ int ast_do_masquerade(struct ast_channel *original)
 
        /* Update the type. */
        original->type = clone->type;
+       t_pvt = original->monitor;
+       original->monitor = clone->monitor;
+       clone->monitor = t_pvt;
        
        /* Keep the same language.  */
        ast_copy_string(original->language, clone->language, sizeof(original->language));