[asterisk-commits] russell: branch 1.4 r94797 - /branches/1.4/main/autoservice.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 26 12:46:39 CST 2007
Author: russell
Date: Wed Dec 26 12:46:39 2007
New Revision: 94797
URL: http://svn.digium.com/view/asterisk?view=rev&rev=94797
Log:
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.
Modified:
branches/1.4/main/autoservice.c
Modified: branches/1.4/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/autoservice.c?view=diff&rev=94797&r1=94796&r2=94797
==============================================================================
--- branches/1.4/main/autoservice.c (original)
+++ branches/1.4/main/autoservice.c Wed Dec 26 12:46:39 2007
@@ -176,6 +176,7 @@
} 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 @@
removed = 1;
if (!chan->_softhangup)
res = 0;
+ ast_clear_flag(chan, AST_FLAG_END_DTMF_ONLY);
break;
}
}
More information about the asterisk-commits
mailing list