mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
(closes issue #10715)
Reported by: the-chopper Don't bother hanging up the new channel if it does not exist yet. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1041,7 +1041,8 @@ static int builtin_atxfer(struct ast_channel *chan, struct ast_channel *peer, st
|
|||||||
newchan = ast_feature_request_and_dial(transferer, transferee, "Local", ast_best_codec(transferer->nativeformats),
|
newchan = ast_feature_request_and_dial(transferer, transferee, "Local", ast_best_codec(transferer->nativeformats),
|
||||||
xferto, atxfernoanswertimeout, &outstate, transferer->cid.cid_num, transferer->cid.cid_name, 1);
|
xferto, atxfernoanswertimeout, &outstate, transferer->cid.cid_num, transferer->cid.cid_name, 1);
|
||||||
if (ast_autoservice_stop(transferee) < 0) {
|
if (ast_autoservice_stop(transferee) < 0) {
|
||||||
ast_hangup(newchan);
|
if (newchan)
|
||||||
|
ast_hangup(newchan);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!newchan) {
|
if (!newchan) {
|
||||||
|
|||||||
Reference in New Issue
Block a user