Remove code, that operate with cdr in attempt_transfer(). That was removed somewhere between 1.2 and 1.4 and acidentaly put back in chan_unistim.

(closes issue ASTERISK-19628)
Reported by: Igor Olhovskiy



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Igor Goncharovskiy 2012-07-24 08:53:01 +00:00
parent b5193428a7
commit 8eaba809ab
1 changed files with 0 additions and 14 deletions

View 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),