[Asterisk-cvs] asterisk pbx.c,1.176,1.177

markster at lists.digium.com markster at lists.digium.com
Tue Nov 23 22:07:32 CST 2004


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

Modified Files:
	pbx.c 
Log Message:
Make realtime pbx understand patterns.


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- pbx.c	23 Nov 2004 20:24:14 -0000	1.176
+++ pbx.c	24 Nov 2004 03:07:07 -0000	1.177
@@ -649,7 +649,7 @@
 	return match;
 }
 
-static int extension_close(const char *pattern, const char *data, int needmore)
+int ast_extension_close(const char *pattern, const char *data, int needmore)
 {
 	int match;
 	/* If "data" is longer, it can'be a subset of pattern unless
@@ -749,8 +749,8 @@
 			while(eroot) {
 				/* Match extension */
 				if ((((action != HELPER_MATCHMORE) && ast_extension_match(eroot->exten, exten)) ||
-						((action == HELPER_CANMATCH) && (extension_close(eroot->exten, exten, 0))) ||
-						((action == HELPER_MATCHMORE) && (extension_close(eroot->exten, exten, 1)))) &&
+						((action == HELPER_CANMATCH) && (ast_extension_close(eroot->exten, exten, 0))) ||
+						((action == HELPER_MATCHMORE) && (ast_extension_close(eroot->exten, exten, 1)))) &&
 						(!eroot->matchcid || matchcid(eroot->cidmatch, callerid))) {
 						e = eroot;
 						if (*status < STATUS_NO_PRIORITY)




More information about the svn-commits mailing list