[asterisk-commits] russell: branch russell/issue_12658 r163112 - /team/russell/issue_12658/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 11 11:19:04 CST 2008


Author: russell
Date: Thu Dec 11 11:19:03 2008
New Revision: 163112

URL: http://svn.digium.com/view/asterisk?view=rev&rev=163112
Log:
When we need to defer a DTMF frame from a channel driver, it needs to go on
the tail of the readq.  Thanks to Dmitry Andrianov for pointing this out.

Modified:
    team/russell/issue_12658/main/channel.c

Modified: team/russell/issue_12658/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/russell/issue_12658/main/channel.c?view=diff&rev=163112&r1=163111&r2=163112
==============================================================================
--- team/russell/issue_12658/main/channel.c (original)
+++ team/russell/issue_12658/main/channel.c Thu Dec 11 11:19:03 2008
@@ -1995,10 +1995,11 @@
 	fr->subclass = f->subclass;
 	fr->len = f->len;
 
-	/* Put this frame back on the head of the readq to ensure that received
-	 * digits stay in the same order. */
-
-	ast_queue_frame_head(chan, fr);
+	/* The only time this function will be called is for a frame that just came
+	 * out of the channel driver.  So, we want to stick it on the tail of the
+	 * readq. */
+
+	ast_queue_frame(chan, fr);
 }
 
 static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)




More information about the asterisk-commits mailing list