Remove code, that operate with cdr in attempt_transfer(). That was removed somewhere...
authorIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Tue, 24 Jul 2012 08:53:01 +0000 (08:53 +0000)
committerIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Tue, 24 Jul 2012 08:53:01 +0000 (08:53 +0000)
(closes issue ASTERISK-19628)
Reported by: Igor Olhovskiy

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

channels/chan_unistim.c

index e7317c1..a277cd3 100644 (file)
@@ -2351,20 +2351,6 @@ static int attempt_transfer(struct unistim_subchannel *p1, struct unistim_subcha
                        unistim_quiet_chan(peerd);
                }
 
-               if (ast_channel_cdr(peera) && ast_channel_cdr(peerb)) {
-                       ast_channel_cdr_set(peerb, ast_cdr_append(ast_channel_cdr(peerb), ast_channel_cdr(peera)));
-               } else if (ast_channel_cdr(peera)) {
-                       ast_channel_cdr_set(peerb, ast_channel_cdr(peera));
-               }
-               ast_channel_cdr_set(peera, NULL);
-
-               if (ast_channel_cdr(peerb) && ast_channel_cdr(peerc)) {
-                       ast_channel_cdr_set(peerb, ast_cdr_append(ast_channel_cdr(peerb), ast_channel_cdr(peerc)));
-               } else if (ast_channel_cdr(peerc)) {
-                       ast_channel_cdr_set(peerb, ast_channel_cdr(peerc));
-               }
-               ast_channel_cdr_set(peerc, NULL);
-
                ast_log(LOG_NOTICE, "UNISTIM transfer: trying to masquerade %s into %s\n", ast_channel_name(peerc), ast_channel_name(peerb));
                if (ast_channel_masquerade(peerb, peerc)) {
                        ast_log(LOG_WARNING, "Failed to masquerade %s into %s\n", ast_channel_name(peerb),