channel.c: Route all control frames to a channel through the same code.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 22 Feb 2016 18:15:34 +0000 (12:15 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 29 Feb 2016 18:50:43 +0000 (12:50 -0600)
commit128c96456ce0fc794867317c6a47fb41795c33d5
tree27f459c2e6c8eb26c626c5d00d75a0758de7230f
parent62d98b5a7f096b39bde412bac5cb310aeb7ee068
channel.c: Route all control frames to a channel through the same code.

Frame hooks can conceivably return a control frame in exchange for an
audio frame inside ast_write().  Those returned control frames were not
handled quite the same as if they were sent to ast_indicate().  Now it
doesn't matter if you use ast_write() to send an AST_FRAME_CONTROL to a
channel or ast_indicate().

ASTERISK-25582

Change-Id: I5775f41421aca2b510128198e9b827bf9169629b
main/channel.c