Hi all,
I am working with sipXtapi-media-update branch, and placing code inside the
sipXezPhone.
I would like to find out how to record an audio file.
I want to record what is coming over the network in a .wav file.
Could someone please provide help on how to record an audio file, and give
more information on how is the following code being used and/or should be
used to record an audio file?
========================
OsStatus MpCallFlowGraph::mediaRecord(int ms,
int silenceLength,
const char* fileName,
double& duration,
int& dtmfTerm,
MprRecorder::RecordFileFormat format,
OsProtectedEvent* recordEvent)
{
if (!recordEvent) // behaves like ezRecord
return ezRecord(ms,
silenceLength,
fileName,
duration,
dtmfTerm,
format);
// nonblocking version
if (dtmfTerm)
{
for (int i=0; i<MAX_CONNECTIONS; i++)
{
if (NULL != mpConnections[i])
{
mpConnections[i]->setDtmfTerm(mpRecorders[RECORDER_SPKR]);
}
}
}
==============================
Thanks
Melanie
_________________________________________________________________
Talk now to your Hotmail contacts with Windows Live Messenger.
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://get.live.com/messenger/overview
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/