[asterisk-commits] file: trunk r82546 - /trunk/res/res_features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Sep 16 21:20:41 CDT 2007


Author: file
Date: Sun Sep 16 21:20:40 2007
New Revision: 82546

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82546
Log:
(closes issue #10715)
Reported by: the-chopper
Don't bother hanging up the new channel if it does not exist yet.

Modified:
    trunk/res/res_features.c

Modified: trunk/res/res_features.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_features.c?view=diff&rev=82546&r1=82545&r2=82546
==============================================================================
--- trunk/res/res_features.c (original)
+++ trunk/res/res_features.c Sun Sep 16 21:20:40 2007
@@ -1041,7 +1041,8 @@
 				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) {




More information about the asterisk-commits mailing list