summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channel.c b/channel.c
index 2af7f4af2..d4e88854c 100755
--- 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));