summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-24 03:07:08 +0000
committerMark Spencer <markster@digium.com>2004-11-24 03:07:08 +0000
commit8f2b687a9523730a0bd9a3506f930c8569e1ef4c (patch)
treebcd0e0ca1d561867119d44cfffd88075bea9671e /pbx.c
parent2a1bf5efd9ffc6f7d88615b50322759727fa0a1d (diff)
Make realtime pbx understand patterns.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbx.c b/pbx.c
index 5ae63735e..737611af5 100755
--- a/pbx.c
+++ b/pbx.c
@@ -649,7 +649,7 @@ int ast_extension_match(const char *pattern, const char *data)
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 @@ static struct ast_exten *pbx_find_extension(struct ast_channel *chan, struct ast
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)