mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 03:48:34 +00:00
Fix crash on transfer initiated from insreeen menu on Unistim phones. Removed CDR-related code that moved to do_masquarade before.
(closes issue ASTERISK-20417) Reported by: Rudolf Migalin git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@377557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1924,20 +1924,6 @@ static int attempt_transfer(struct unistim_subchannel *p1, struct unistim_subcha
|
||||
ast_quiet_chan(peerc);
|
||||
ast_quiet_chan(peerd); */
|
||||
|
||||
if (peera->cdr && peerb->cdr) {
|
||||
peerb->cdr = ast_cdr_append(peerb->cdr, peera->cdr);
|
||||
} else if (peera->cdr) {
|
||||
peerb->cdr = peera->cdr;
|
||||
}
|
||||
peera->cdr = NULL;
|
||||
|
||||
if (peerb->cdr && peerc->cdr) {
|
||||
peerb->cdr = ast_cdr_append(peerb->cdr, peerc->cdr);
|
||||
} else if (peerc->cdr) {
|
||||
peerb->cdr = peerc->cdr;
|
||||
}
|
||||
peerc->cdr = NULL;
|
||||
|
||||
if (ast_channel_masquerade(peerb, peerc)) {
|
||||
ast_log(LOG_WARNING, "Failed to masquerade %s into %s\n", peerb->name,
|
||||
peerc->name);
|
||||
|
||||
Reference in New Issue
Block a user