[Asterisk-cvs] asterisk/apps app_dial.c,1.153,1.154

russell at lists.digium.com russell at lists.digium.com
Wed Jun 1 13:59:38 CDT 2005


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

Modified Files:
	app_dial.c 
Log Message:
fix the one digit exit extension for RetryDial


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- app_dial.c	16 May 2005 00:09:09 -0000	1.153
+++ app_dial.c	1 Jun 2005 18:02:46 -0000	1.154
@@ -210,13 +210,13 @@
 	char rexten[2] = { exten, '\0' };
 
 	if (context) {
-		if (ast_goto_if_exists(chan, context, rexten, pri))
+		if (!ast_goto_if_exists(chan, context, rexten, pri))
 			return 1;
 	} else {
-		if (ast_goto_if_exists(chan, chan->context, rexten, pri))
+		if (!ast_goto_if_exists(chan, chan->context, rexten, pri))
 			return 1;
 		else if (!ast_strlen_zero(chan->macrocontext)) {
-			if (ast_goto_if_exists(chan, chan->macrocontext, rexten, pri))
+			if (!ast_goto_if_exists(chan, chan->macrocontext, rexten, pri))
 				return 1;
 		}
 	}
@@ -1439,7 +1439,7 @@
 					if (!ast_test_flag(chan, AST_FLAG_MOH))
 						ast_moh_start(chan, NULL);
 					if (!res) 
-						res = ast_safe_sleep(chan, sleep);
+						res = ast_waitfordigit(chan, sleep);
 				}
 			}
 		}




More information about the svn-commits mailing list