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?

===========================

virtual OsStatus recordChannelAudio(int connectionId,
                                      const char* szFile) = 0 ;


===========================

Is connectionID being passed or not?
It seems that the "connectionId" is coming in, but is not passed anywhere.


Could you please provide more information on the recordChannelAudio function (see bellow):

===========================
OsStatus CpPhoneMediaInterface::recordChannelAudio(int connectionId,
                                                  const char* szFile)
{
// TODO:: This API is designed to record the audio from a single channel.
   // If the connectionId is -1, record all.

   //
   // Also -- not sure of the if the spkr is the correct place to record --
   // this probably doesn't include mic data...
   ///

   double duration = 0 ;
   int dtmf = 0 ;
   return mpFlowGraph->record(1, -1, NULL, NULL, szFile) ;
}

===========================

Is this function already recording an audio from the channel, or not.
Is it recording locally or over the network? Does it include microphone data, or not?

Thanks
Melanie

_________________________________________________________________
Get the latest Windows Live Messenger 8.1 Beta version. Join now. http://ideas.live.com

_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to