diff --git a/main/autoservice.c b/main/autoservice.c index b21d1e7011..853c1dfab6 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; } }