[Asterisk-cvs] asterisk/apps app_dial.c,1.167,1.168

kpfleming kpfleming
Wed Oct 5 17:22:47 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv9044/apps

Modified Files:
	app_dial.c 
Log Message:
properly report hangupcause when ast_request() fails for the last (or only) target of a dial operation (issue #5394, different fix)


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- app_dial.c	14 Sep 2005 20:46:49 -0000	1.167
+++ app_dial.c	5 Oct 2005 21:18:28 -0000	1.168
@@ -1109,6 +1109,8 @@
 			ast_log(LOG_NOTICE, "Unable to create channel of type '%s' (cause %d - %s)\n", tech, cause, ast_cause2str(cause));
 			HANDLE_CAUSE(cause, chan);
 			cur = rest;
+			if (!cur)
+				chan->hangupcause = cause;
 			continue;
 		}
 		pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", numsubst);




More information about the svn-commits mailing list