From ab988ac6f43be480a0050f676663c19cf59d14c9 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher <tilghman@meg.abyt.es> Date: Fri, 6 Jun 2008 19:55:08 +0000 Subject: [PATCH] Make extension match characters case-insensitive. (closes issue #12777) Reported by: jsmith Patches: lower_case_patterns-trunk-v1.patch uploaded by jsmith (license 15) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@121010 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index 343ed85dfd..8f6fb83ffb 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -1483,7 +1483,7 @@ static int ext_cmp1(const char **p) ; /* ignore some characters */ /* always return unless we have a set of chars */ - switch (c) { + switch (toupper(c)) { default: /* ordinary character */ return 0x0000 | (c & 0xff); -- GitLab