mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@38117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2360,8 +2360,8 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
|
|||||||
CHECK_BLOCKING(chan);
|
CHECK_BLOCKING(chan);
|
||||||
switch(fr->frametype) {
|
switch(fr->frametype) {
|
||||||
case AST_FRAME_CONTROL:
|
case AST_FRAME_CONTROL:
|
||||||
/* XXX Interpret control frames XXX */
|
res = (chan->tech->indicate == NULL) ? 0 :
|
||||||
ast_log(LOG_WARNING, "Don't know how to handle control frames yet\n");
|
chan->tech->indicate(chan, fr->subclass, fr->data, fr->datalen);
|
||||||
break;
|
break;
|
||||||
case AST_FRAME_DTMF_BEGIN:
|
case AST_FRAME_DTMF_BEGIN:
|
||||||
res = (chan->tech->send_digit_begin == NULL) ? 0 :
|
res = (chan->tech->send_digit_begin == NULL) ? 0 :
|
||||||
|
|||||||
Reference in New Issue
Block a user