diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 02:20:40 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-17 02:20:40 +0000 |
commit | 3f10f837d1c0c7373837995ee5556fe9023ec986 (patch) | |
tree | e6b52e58febad93aaf358862502bc7d45dbe43f7 /res | |
parent | 8009b9891c14e756efdc4b4138969d7c45298ba3 (diff) |
(closes issue #10715)
Reported by: the-chopper
Don't bother hanging up the new channel if it does not exist yet.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82546 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index dea8d805a..6427b8fb8 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -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), xferto, atxfernoanswertimeout, &outstate, transferer->cid.cid_num, transferer->cid.cid_name, 1); if (ast_autoservice_stop(transferee) < 0) { - ast_hangup(newchan); + if (newchan) + ast_hangup(newchan); return -1; } if (!newchan) { |