[Asterisk-cvs] asterisk/apps app_enumlookup.c,1.16,1.17

markster markster
Sun Aug 7 18:28:46 CDT 2005


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

Modified Files:
	app_enumlookup.c 
Log Message:
Fix lookup to use proper API call...


Index: app_enumlookup.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_enumlookup.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- app_enumlookup.c	7 Aug 2005 14:45:31 -0000	1.16
+++ app_enumlookup.c	7 Aug 2005 22:32:30 -0000	1.17
@@ -85,8 +85,7 @@
 	LOCAL_USER_REMOVE(u);
 	if (!res) {	/* Failed to do a lookup */
 		/* Look for a "busy" place */
-		if (option_priority_jumping && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
-			chan->priority += 100;
+		ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
 		pbx_builtin_setvar_helper(chan, "ENUMSTATUS", "ERROR");
 		return 0;
 	}
@@ -140,9 +139,7 @@
 				*t = 0;
 				pbx_builtin_setvar_helper(chan, "ENUM", tmp);
 				ast_log(LOG_NOTICE, "tel: ENUM set to \"%s\"\n", tmp);
-				if (option_priority_jumping && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 51, chan->cid.cid_num))
-					chan->priority += 50;
-				else
+				if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 51))
 					res = 0;
 			}
 		} else if (!ast_strlen_zero(tech)) {




More information about the svn-commits mailing list