diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-29 18:33:18 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-29 18:33:18 +0000 |
commit | b323c972b6759466b98a36fc64fd50bc957c1a12 (patch) | |
tree | f6aa9bcb2e94c12d9c961c351087f5545402cd3e /apps/app_readexten.c | |
parent | 887e28d7aa9a324b065b85550e94008fc0727cb7 (diff) |
Allow the '#' sign to exist within an extension (inspired by issue #13330)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_readexten.c')
-rw-r--r-- | apps/app_readexten.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_readexten.c b/apps/app_readexten.c index 9a54094ea..b55639155 100644 --- a/apps/app_readexten.c +++ b/apps/app_readexten.c @@ -224,12 +224,13 @@ static int readexten_exec(struct ast_channel *chan, void *data) status = "TIMEOUT"; } break; - } else if (res == '#') { - break; } exten[x] = res; if (!ast_matchmore_extension(chan, arglist.context, exten, 1 /* priority */, chan->cid.cid_num)) { + if (!ast_exists_extension(chan, arglist.context, exten, 1, chan->cid.cid_num) && res == '#') { + exten[x] = '\0'; + } break; } } |