[asterisk-dev] return control after ast_bridge_call

Kevin P. Fleming kpfleming at digium.com
Mon Feb 21 08:49:06 CST 2011


On 02/21/2011 08:40 AM, ISABEL ORDAS ARNAL wrote:
> Hi all,
>
> I need to make things with the RTP transmitted over the channels of a
> bridged call once they have been bridged and while the call is going on.
> If I do ast_bridge_call(), the control is not returned to my application
> until the call is finished. How to do so?

If I understand you correctly, you want to monitor/modify the audio 
associated with some channels (which is not 'RTP', Asterisk does not use 
RTP internally). You are correct that you can't do this from the same 
thread that you are running ast_bridge_call() from, because that thread 
is dedicated to handling the call bridge while the call is up.

You probably want to look at the audiohooks API; this is what many 
modules in Asterisk already used to attach themselves to channels and 
manipulate the audio.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list