aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-23 05:06:47 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-23 05:06:47 +0000
commit5d15612a72c7523273ca7d47c55c6931e15a7d64 (patch)
tree9928cf784ddf7281a27c985e1db3ef8ce75c4040 /channel.c
parent7388c7ee9946dcd96184692ba745b3e1934f4d70 (diff)
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 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38117 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 275f92374..551f6e5c3 100644
--- 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 :