[asterisk-commits] russell: trunk r38117 - /trunk/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jul 22 22:06:48 MST 2006


Author: russell
Date: Sun Jul 23 00:06:47 2006
New Revision: 38117

URL: http://svn.digium.com/view/asterisk?rev=38117&view=rev
Log:
resolve another XXX comment by implementing proper handling of control frames
in ast_write(), which is to call the channel's indicate function if it exists

Modified:
    trunk/channel.c

Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=38117&r1=38116&r2=38117&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Sun Jul 23 00:06:47 2006
@@ -2360,8 +2360,8 @@
 	CHECK_BLOCKING(chan);
 	switch(fr->frametype) {
 	case AST_FRAME_CONTROL:
-		/* XXX Interpret control frames XXX */
-		ast_log(LOG_WARNING, "Don't know how to handle control frames yet\n");
+		res = (chan->tech->indicate == NULL) ? 0 :
+			chan->tech->indicate(chan, fr->subclass, fr->data, fr->datalen);
 		break;
 	case AST_FRAME_DTMF_BEGIN:
 		res = (chan->tech->send_digit_begin == NULL) ? 0 :



More information about the asterisk-commits mailing list