mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Make extension matching non case sensitive. So 'T' and 't' are
different extensions (bug 1327) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
pbx.c
2
pbx.c
@@ -3682,7 +3682,7 @@ int ast_add_extension2(struct ast_context *con,
|
|||||||
}
|
}
|
||||||
e = con->root;
|
e = con->root;
|
||||||
while(e) {
|
while(e) {
|
||||||
res= strcasecmp(e->exten, extension);
|
res= strcmp(e->exten, extension);
|
||||||
if (!res) {
|
if (!res) {
|
||||||
if (!e->matchcid && !tmp->matchcid)
|
if (!e->matchcid && !tmp->matchcid)
|
||||||
res = 0;
|
res = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user