Hi,
On 12/21/07, Jeremy A <[EMAIL PROTECTED]> wrote:
> It appears to me that there is no mixing function of received audio and
> played audio within sipXtapi.
>
> The scenario is that I accept an incoming call and at some stage play an
> audio file locally only. When this occurs the incoming audio is simply
> dropped - but resumes when the audio file play has been terminated.
>
> Is there a way to enable mixing of the played audio and the incoming audio?
Try attached patch and let me know will it help or not.
PS I suppose you're using latest revision of sipXtapi branch.
--
Regards,
Alexander Chemeris.
SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
Index: sipXmediaLib/src/mp/MpCallFlowGraph.cpp
===================================================================
--- sipXmediaLib/src/mp/MpCallFlowGraph.cpp (revision 10428)
+++ sipXmediaLib/src/mp/MpCallFlowGraph.cpp (working copy)
@@ -1813,7 +1813,8 @@
// Only play locally if requested
if (toneOptions & TONE_TO_SPKR)
{
- boolRes = mpTFsBridgeMixer->disable(); assert(boolRes);
+ boolRes = mpTFsBridgeMixer->setWeight(1, 0); assert(boolRes);
+// boolRes = mpTFsBridgeMixer->disable(); assert(boolRes);
}
if (toneOptions & TONE_TO_NET)
@@ -1894,6 +1895,7 @@
// Shut off the tone generator input to the Mixer resources
boolRes = mpTFsBridgeMixer->enable(); assert(boolRes);
boolRes = mpTFsMicMixer->enable(); assert(boolRes);
+ boolRes = mpTFsBridgeMixer->setWeight(0, 0); assert(boolRes);
// The weight of the tone gen / from file resource may have
// be changed to zero if we were requested NOT to send inband
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/