[Asterisk-cvs] asterisk pbx.c,1.128,1.129

markster at lists.digium.com markster at lists.digium.com
Wed Jun 23 17:01:03 CDT 2004


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

Modified Files:
	pbx.c 
Log Message:
Generate "failed" context on busy, too


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- pbx.c	22 Jun 2004 17:42:13 -0000	1.128
+++ pbx.c	23 Jun 2004 20:46:58 -0000	1.129
@@ -3942,7 +3942,9 @@
 					ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", chan->name);
 				ast_hangup(chan);
 			}
-		} else {
+		}
+
+		if(res < 0) { /* the call failed for some reason */
 			/* create a fake channel and execute the "failed" extension (if it exists) within the requested context */
 			/* check if "failed" exists */
 			if (ast_exists_extension(chan, context, "failed", 1, NULL)) {




More information about the svn-commits mailing list