]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
resolve another XXX comment by implementing proper handling of control frames
authorRussell Bryant <russell@russellbryant.com>
Sun, 23 Jul 2006 05:06:47 +0000 (05:06 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 23 Jul 2006 05:06:47 +0000 (05:06 +0000)
in ast_write(), which is to call the channel's indicate function if it exists

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38117 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index 275f923746f62a12d91a773914d990753354810b..551f6e5c3a8f025b2ab0f7903cab4e80b8b8f9b0 100644 (file)
--- a/channel.c
+++ b/channel.c
@@ -2360,8 +2360,8 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
        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 :