aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-31 21:27:21 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-31 21:27:21 +0000
commitcc95e732c7e1033b44cf80c056a6b54c18ad4fb8 (patch)
tree730e898eae416ad73d0b67d80771083ee9a4c816 /channel.c
parentb32a4a5861f65e7e3615adc668bea48bd63b9b30 (diff)
Fix monitoring when channel redirected (bug #3809, patch redone)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6247 f38db490-d61c-443f-a65b-d21fe96a405b
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));