diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-24 03:07:08 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-24 03:07:08 +0000 |
commit | 858a683291052dea2930137675ae812027bc16db (patch) | |
tree | bcd0e0ca1d561867119d44cfffd88075bea9671e /pbx.c | |
parent | 728e18f777e12ee91e1828805e6eabfb7c6b5dc3 (diff) |
Make realtime pbx understand patterns.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4326 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |