Hello,
In the MpCallFlowGraph::createConnection, I've coded MprBridge
redirection as follows,
// MprBridge -> MprCustomAudioGraph (upstream/downstream both)
OsStatus stat = addLink(*mpBridge, bridgePort,
*mpCustomGraph, 0);
assert(OS_SUCCESS == stat);
//Now wire up MprCustomAudioGraph and AudioConnection container
stat = addLink(*mpCustomGraph, customGraphPort, *pBridgeSink, 0);
assert(OS_SUCCESS == stat);
stat = addLink(*pBridgeSource, 0, *mpCustomGraph, customGraphPort);
assert(OS_SUCCESS == stat);
//...
where bridgePort, customGraphPort are both chosen from free
available ports. 1 is the value normally.
But I'm not getting anything in the speaker! Am I missing anything here?
Do I need to code port forwarding inside MprCustom::doProcessFrame as
//...
outBufs[1] = inBufs[0]; //send
outBufs[0] = inBufs[1]; //receive.
mprEncode/mprDecode
|
__|1__________________
|
| mprCustom
|__0_________________
|
|
__|1________________
| |
---mic mixer ---|0 mprBridge 0|----- bridge mixer...spk
Thanks
Debasish
-----Original Message-----
From: Jaroslav Libák [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 9:36 PM
To: [EMAIL PROTECTED]; [email protected]
Subject: Re: [sipxtapi-dev] Am i posting to the right list ??
Only microphone and speaker will be disabled in defocused flowgraph, data
will still be flowing. Try wxCommunicator (link is here in the mailinglist)
and record a call that is in bridged hold state. You will hear the sound
there. To put call on bridged hold, you need to enable bridged hold in
general configuration first. It's not possible from the main panel. It uses
full hold by default.
Have a look at http://sipx-wiki.calivia.com/index.php/SipXmediaLib if you
haven't found it already.
If you want to just modify the PCM stream in the mediaconnection part you
can do it without altering flowgraph significantly (just redirect bridge
output and input to your own resource). 2nd option is to modify just the
flowgraph (add 2 new resources) and the leave media connection without
change. Keep in mind that for conferences, there are more media connections
connected to the same flow graph via the central bridge.
Jaroslav Libak
>Hello,
> Thanks for the response. Let me clarify, I will make 5 calls (say.)
>in a line and if I'm not wrong, each will have a separate
>CpPhoneMediaInterface attached. Now the first (foreground callgraph) call
>will acquire mic./spk. and for others they will be disabled (defocused
>etc.). I want to tap the PCM stream (after decoding while receiving/before
>encoding while sending RTP packets) for other background callgraphs.
>
>Thanks
>DB
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/