summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/pbx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 31f554acd..522da6f64 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -739,6 +739,9 @@ enum ext_match_t {
static int _extension_match_core(const char *pattern, const char *data, enum ext_match_t mode)
{
mode &= E_MATCH_MASK; /* only consider the relevant bits */
+
+ if (!strcasecmp(pattern,data)) /* note: if this test is left out, then _x. will not match _x. !!! */
+ return 1;
if (pattern[0] != '_') { /* not a pattern, try exact or partial match */
int ld = strlen(data), lp = strlen(pattern);