summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-11-21 23:14:11 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-11-21 23:14:11 +0000
commit7bd6f1744b15679278ea73df70b95a4d3083270d (patch)
treec064a797e30d24619e87ea6ae2d85ffff41b20a1 /main/pbx.c
parent6fb1f8605403aee12b058d700e3e781d6e54b563 (diff)
Merged revisions 158600 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r158600 | tilghman | 2008-11-21 17:07:46 -0600 (Fri, 21 Nov 2008) | 5 lines The passed extension may not be the same in the list as the current entry, because we strip spaces when copying the extension into the structure. Therefore, use the copied item to place the item into the list. (found by lmadsen on -dev, fixed by me) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@158602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 7c308121d..2621aa1fd 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -7523,7 +7523,7 @@ int ast_add_extension2(struct ast_context *con,
}
res = 0; /* some compilers will think it is uninitialized otherwise */
for (e = con->root; e; el = e, e = e->next) { /* scan the extension list */
- res = ext_cmp(e->exten, extension);
+ res = ext_cmp(e->exten, tmp->exten);
if (res == 0) { /* extension match, now look at cidmatch */
if (!e->matchcid && !tmp->matchcid)
res = 0;