[Asterisk-cvs] asterisk pbx.c,1.174,1.175

markster at lists.digium.com markster at lists.digium.com
Mon Nov 22 17:40:23 CST 2004


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

Modified Files:
	pbx.c 
Log Message:
Little dial typo fix and make WaitExten continue if nothing entered and there is a step n+1


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -d -r1.174 -r1.175
--- pbx.c	22 Nov 2004 22:11:10 -0000	1.174
+++ pbx.c	22 Nov 2004 22:40:06 -0000	1.175
@@ -4836,9 +4836,12 @@
 		ms = 10000;
 	res = ast_waitfordigit(chan, ms);
 	if (!res) {
-		if (ast_exists_extension(chan, chan->context, "t", 1, chan->cid.cid_num)) {
+		if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 1, chan->cid.cid_num)) {
 			if (option_verbose > 2)
-				ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s\n", chan->name);
+				ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, continuing...\n", chan->name);
+		} else if (ast_exists_extension(chan, chan->context, "t", 1, chan->cid.cid_num)) {
+			if (option_verbose > 2)
+				ast_verbose(VERBOSE_PREFIX_3 "Timeout on %s, going to 't'\n", chan->name);
 			strncpy(chan->exten, "t", sizeof(chan->exten));
 			chan->priority = 0;
 		} else {




More information about the svn-commits mailing list