diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-29 18:33:18 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-29 18:33:18 +0000 |
commit | 2606a9f8a34f248701c95f65bca993267961cb50 (patch) | |
tree | f6aa9bcb2e94c12d9c961c351087f5545402cd3e /apps | |
parent | 246ce365ae87f9c1c908557f84f37ef8cdf92be4 (diff) |
Allow the '#' sign to exist within an extension (inspired by issue #13330)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159853 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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; } } |