mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merged revisions 162014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r162014 | russell | 2008-12-09 10:46:53 -0600 (Tue, 09 Dec 2008) | 5 lines Allow DISA to handle extensions that start with #. (closes issue #13330) Reported by: jcovert ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -303,10 +303,16 @@ static int disa_exec(struct ast_channel *chan, void *data)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (j == '#') { /* end of extension */
|
if (j == '#') { /* end of extension .. maybe */
|
||||||
|
if (i == 0 &&
|
||||||
|
(ast_matchmore_extension(chan, args.context, "#", 1, chan->cid.cid_num) ||
|
||||||
|
ast_exists_extension(chan, args.context, "#", 1, chan->cid.cid_num)) ) {
|
||||||
|
/* Let the # be the part of, or the entire extension */
|
||||||
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
exten[i++] = j; /* save digit */
|
exten[i++] = j; /* save digit */
|
||||||
exten[i] = 0;
|
exten[i] = 0;
|
||||||
|
Reference in New Issue
Block a user