summaryrefslogtreecommitdiff
path: root/main/autoservice.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-12-26 18:47:52 +0000
committerRussell Bryant <russell@russellbryant.com>2007-12-26 18:47:52 +0000
commit2295f37761b249d546b94b8fe19b94b1672a51f5 (patch)
tree708fcdab16cb26a84d8f06b4599b3d0a8a2f4fa4 /main/autoservice.c
parentf853918c53142d69082dd31b9a9caf48972c9665 (diff)
Merged revisions 94797 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94797 | russell | 2007-12-26 12:46:39 -0600 (Wed, 26 Dec 2007) | 4 lines When a channel is in autoservice, mark a flag on the channel that says that we only care about the END of a digit. That way, no magic digit emulation stuff will happen when all we're doing is queueing up END frames. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/autoservice.c')
-rw-r--r--main/autoservice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/autoservice.c b/main/autoservice.c
index b21d1e701..853c1dfab 100644
--- a/main/autoservice.c
+++ b/main/autoservice.c
@@ -169,6 +169,7 @@ int ast_autoservice_start(struct ast_channel *chan)
} else {
/* New entry created */
as->chan = chan;
+ ast_set_flag(chan, AST_FLAG_END_DTMF_ONLY);
as->use_count = 1;
AST_RWLIST_INSERT_HEAD(&aslist, as, list);
if (asthread == AST_PTHREADT_NULL) { /* need start the thread */
@@ -211,6 +212,7 @@ int ast_autoservice_stop(struct ast_channel *chan)
removed = 1;
if (!ast_check_hangup(chan))
res = 0;
+ ast_clear_flag(chan, AST_FLAG_END_DTMF_ONLY);
break;
}
}