]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add API for channel frame deferral. 40/4340/2
authorMark Michelson <mmichelson@digium.com>
Thu, 3 Nov 2016 21:36:13 +0000 (16:36 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 8 Nov 2016 12:59:43 +0000 (05:59 -0700)
commit4a8b1940b896f7e783a5429d0fffee8bed0e4afd
tree33d604dbd34955b0c9d0313ccb5699a45d27f10d
parent5ad463581fa4e2c49828bfaa6c21558c5ae7b7eb
Add API for channel frame deferral.

There are several places in Asterisk that have duplicated logic
for deferring important frames until later.

This commit adds a couple of API calls to facilitate this automatically.

ast_channel_start_defer_frames(): Future reads of deferrable frames on
this channel will be deferred until later.

ast_channel_stop_defer_frames(): Any frames that have been deferred get
requeued onto the channel.

ASTERISK-26343

Change-Id: I3e1b87bc6796f222442fa6f7d1b6a4706fb33641
include/asterisk/channel.h
main/channel.c
main/channel_internal_api.c