aboutsummaryrefslogtreecommitdiffstats
path: root/main/app.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-03 18:01:49 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-03 18:01:49 +0000
commit7cbd9fd88c4c120063f7c8e3b29aecbe75388963 (patch)
tree6cca2a708a7b58f0d3f5e8bb374a3c08a5510e15 /main/app.c
parentd9f4144a3f700155689ea23d67ea361781fa75a9 (diff)
Merged revisions 59886 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r59886 | russell | 2007-04-03 12:58:19 -0500 (Tue, 03 Apr 2007) | 5 lines When doing a built-in blind or attended transfer, restore the ability to use '#' to terminate the number and immediately do the transfer instead of having to dial the number and just wait for the feature digit timeout. (issue #8366, xueliangliang) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59887 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/app.c')
-rw-r--r--main/app.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/main/app.c b/main/app.c
index 60cfe236f..0be640257 100644
--- a/main/app.c
+++ b/main/app.c
@@ -85,14 +85,11 @@ int ast_app_dtget(struct ast_channel *chan, const char *context, char *collect,
ast_playtones_stop(chan);
if (res < 1)
break;
+ if (res == '#')
+ break;
collect[x++] = res;
- if (!ast_matchmore_extension(chan, context, collect, 1, chan->cid.cid_num)) {
- if (collect[x-1] == '#') {
- /* Not a valid extension, ending in #, assume the # was to finish dialing */
- collect[x-1] = '\0';
- }
+ if (!ast_matchmore_extension(chan, context, collect, 1, chan->cid.cid_num))
break;
- }
}
if (res >= 0)
res = ast_exists_extension(chan, context, collect, 1, chan->cid.cid_num) ? 1 : 0;