diff options
author | Jean Aunis <jean.aunis@prescom.fr> | 2017-09-07 11:41:09 +0200 |
---|---|---|
committer | Jean Aunis <jean.aunis@prescom.fr> | 2017-09-20 16:04:41 +0200 |
commit | d884871ca7fbd50e67531ea279ff243ed104c403 (patch) | |
tree | 93234ba1fd23a10cfde7f6f6b002d539bd3fe165 /bridges | |
parent | 47e4cbc3952b08c24e6a22c943442b2382c13861 (diff) |
bridge : Fix one-way direct-media when early bridging with native_rtp
When two channels were early bridged in a native_rtp bridge, the RTP description
on one side was not updated when the other side answered.
This patch forbids non-answered channels to enter a native_rtp bridge, and
triggers a bridge reconfiguration when an ANSWER frame is received.
ASTERISK-27257
Change-Id: If1aaee1b4ed9658a1aa91ab715ee0a6413b878df
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/bridge_native_rtp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridges/bridge_native_rtp.c b/bridges/bridge_native_rtp.c index a16625892..fc9d70105 100644 --- a/bridges/bridge_native_rtp.c +++ b/bridges/bridge_native_rtp.c @@ -600,7 +600,8 @@ static int native_rtp_framehook_consume(void *data, enum ast_frame_type type) */ static int native_rtp_bridge_capable(struct ast_channel *chan) { - return !ast_channel_has_hook_requiring_audio(chan); + return !ast_channel_has_hook_requiring_audio(chan) + && ast_channel_state(chan) == AST_STATE_UP; } /*! |