aboutsummaryrefslogtreecommitdiffstats
path: root/main/autoservice.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-26 18:46:39 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-26 18:46:39 +0000
commit79bb594590a5cb52d280c2d86570196a4876c33b (patch)
treec2e210022a4fb1b2513da0d129b97eaaa41bcf79 /main/autoservice.c
parent74269bc7b651daefef4383e912fbbb5e7ad1563b (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@94797 f38db490-d61c-443f-a65b-d21fe96a405b
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 d105e510c..9caa56508 100644
--- a/main/autoservice.c
+++ b/main/autoservice.c
@@ -176,6 +176,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_LIST_INSERT_HEAD(&aslist, as, list);
if (asthread == AST_PTHREADT_NULL) { /* need start the thread */
@@ -218,6 +219,7 @@ int ast_autoservice_stop(struct ast_channel *chan)
removed = 1;
if (!chan->_softhangup)
res = 0;
+ ast_clear_flag(chan, AST_FLAG_END_DTMF_ONLY);
break;
}
}