]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Masquerade: Retain parkinglot settings made by CHANNEL function.
authorJonathan Rose <jrose@digium.com>
Mon, 10 Sep 2012 17:07:15 +0000 (17:07 +0000)
committerJonathan Rose <jrose@digium.com>
Mon, 10 Sep 2012 17:07:15 +0000 (17:07 +0000)
Prior to this patch, the user would have a parkinglot set on a channel that
was parked and when the channel was retrieved, any attempt by that channel
to park would simply use the default. This patch makes parkinglot values
set in this way be retained through the masquerade.

(closes issue AST-990)
Reported by: Nick Huskinson
Patches:
    masquerade_parkinglot_patch.diff Uploaded by Jonathan Rose (license 6182)

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

main/channel.c

index 86f918995551c678de4ed3692a7c28280957eb95..7307065c3ae67ecfbec2beff4fc565f44bc15b86 100644 (file)
@@ -6682,6 +6682,10 @@ int ast_do_masquerade(struct ast_channel *original)
 
        /* Keep the same language.  */
        ast_string_field_set(original, language, clonechan->language);
+
+       /* Keep the same parkinglot. */
+       ast_string_field_set(original, parkinglot, clonechan->parkinglot);
+
        /* Copy the FD's other than the generator fd */
        for (x = 0; x < AST_MAX_FDS; x++) {
                if (x != AST_GENERATOR_FD)