summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 922fd931c..6bd253174 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -6519,6 +6519,9 @@ static void channel_do_masquerade(struct ast_channel *original, struct ast_chann
*/
ast_channel_internal_swap_uniqueid_and_linkedid(clonechan, original);
+ /* Make sure the Stasis topic on the channel is updated appropriately */
+ ast_channel_internal_swap_topics(clonechan, original);
+
/* Swap channel names. This uses ast_channel_name_set directly, so we
* don't get any spurious rename events.
*/