[asterisk-dev] asterisk's bridge

Russell Bryant russell at digium.com
Thu Nov 22 09:02:19 CST 2007


truename wrote:
> Hi, I found that if I set mixmonitor or spy options, that asteriosk will
> choose ast_generic_bridge() function in channel.c , but ast_rtp_bridge()
> in rtp.c can also deal with monitor and spy because monitor or spy is
> only doing in ast_read() and ast_write() function using
> queue_frame_to_spies(). So can anyone tell me , why asterisk
> choose  ast_generic_bridge() instead of ast_rtp_bridge() ?

Asterisk must be able to intercept every single audio frame.  In the case of an
RTP bridge, the audio may not be flowing through Asterisk anymore.

-- 
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.



More information about the asterisk-dev mailing list