]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add API for channel frame deferral. 97/4297/2
authorMark Michelson <mmichelson@digium.com>
Thu, 3 Nov 2016 21:36:13 +0000 (16:36 -0500)
committerMark Michelson <mmichelson@digium.com>
Mon, 7 Nov 2016 18:25:59 +0000 (12:25 -0600)
commit9231a56cf3d6f5eca1bf2d37d827453400690773
tree05e77e73135c85693acab9930b6a55725850ea02
parentd971647949a5a6dee5c80526f2baa90b02687ad5
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