[Asterisk-code-review] bridge: Add a deferred queue. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Mon Jun 12 11:18:06 CDT 2017


Hello Jenkins2,

I'd like you to reexamine a change.  Please visit

    https://gerrit.asterisk.org/5799

to look at the new patch set (#2).

Change subject: bridge: Add a deferred queue.
......................................................................

bridge: Add a deferred queue.

This change adds a deferred queue to bridging. If a bridge
technology determines that a frame can not be written and
should be deferred it can indicate back to bridging to do so.
Bridging will then requeue any deferred frames upon a new
channel joining the bridge.

This change has been leveraged for T.38 request negotiate
control frames. Without the deferred queue there is a race
condition between the bridge receiving the T.38 request
negotiate and the second channel joining and being in the
bridge. If the channel is not yet in the bridge then the T.38
negotiation fails.

A unit test has also been added that confirms that a T.38
request negotiate control frame is deferred when no other
channel is in the bridge and that it is requeued when a new
channel joins the bridge.

ASTERISK-26923

Change-Id: Ie05b08523f399eae579130f4a5f562a344d2e415
---
M bridges/bridge_native_rtp.c
M bridges/bridge_simple.c
M include/asterisk/bridge_channel.h
M include/asterisk/bridge_channel_internal.h
M include/asterisk/bridge_technology.h
M main/bridge.c
M main/bridge_channel.c
A tests/test_bridging.c
8 files changed, 399 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/5799/2
-- 
To view, visit https://gerrit.asterisk.org/5799
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ie05b08523f399eae579130f4a5f562a344d2e415
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Jenkins2



More information about the asterisk-code-review mailing list