mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-22 20:56:39 +00:00 
			
		
		
		
	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
This commit is contained in:
		
				
					committed by
					
						 Richard Mudgett
						Richard Mudgett
					
				
			
			
				
	
			
			
			
						parent
						
							4bde3d8634
						
					
				
				
					commit
					da40976987
				
			| @@ -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; | ||||
| } | ||||
|  | ||||
| /*! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user