[pjsip] Audio Pre-Processing
norman at myasd.com
Tue Feb 19 15:20:31 EST 2008
Perhaps I'll make a patch if I get time today. I'll post it if so.
Sounds pretty simple.
Answering Service for Directors, Inc.
On Feb 19, 2008, at 3:40 AM, Benny Prijono wrote:
> On 2/18/08, Norman Franke <norman at myasd.com> wrote:
>> I'm using the PJSUA library, and I want to intercept audio from
>> callers and process it before mixing in the conference bridge.
>> What's the
>> best way to do this? I want to add some type of dynamic gain
>> control, since
>> we get some very soft callers. I've done something similar for
>> playback of
>> files and that works great, so now I want to do so with callers.
> Currently there's no way to do that with PJSUA-LIB, as stream will be
> added to the conference bridge automatically. But perhaps this would
> be simple to support by adding couple of callbacks below in
> /** Notify application when media session is created and before
> * it is registered to the conference bridge. Application may return
> * different media port if it has added media processing port to
> * the stream.
> void (*on_stream_created)(pjsua_call_id call_id, pjmedia_session
> unsigned stream_idx,
> pjmedia_port **p_port);
> /** Notify application when media session is about to be destroyed.
> void (*on_stream_destroyed)(pjsua_call_id call_id,
> pjmedia_session *sess,
> unsigned stream_idx);
> This would also fix the problem discussed in "stream port destroyed
> before callback function was called" thread.
> Now, care to make patch? ;-)
>> Norman Franke
>> Answering Service for Directors, Inc.
>> Visit our blog: http://blog.pjsip.org
>> pjsip mailing list
>> pjsip at lists.pjsip.org
> Visit our blog: http://blog.pjsip.org
> pjsip mailing list
> pjsip at lists.pjsip.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pjsip