From 2606a9f8a34f248701c95f65bca993267961cb50 Mon Sep 17 00:00:00 2001 From: tilghman Date: Sat, 29 Nov 2008 18:33:18 +0000 Subject: 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 --- apps/app_readexten.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/app_readexten.c') 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; } } -- cgit v1.2.3