Spiridon Dimopoulos
2015-06-15 13:57:57 UTC
Hello,
I am trying to capture the audio stream during a conversation, in either a file or a buffer. I have found that in every remoteParticipant the sipXtapi ConnectionID is saved and also the MediaInterface pointer. By accessing those 2 I am calling the RecordChannelAudio like this:
participant->getMediaInterface()->getInterface()->recordChannelAudio(participant->getMediaConnectionId(),"/tmp/test.wav");
Confirmation from sipXtapi is OK that starts recording (although verifying the connectionID as -1 and not the ConnectionID from participant). The wav file is created and the length is quite close to the actual call duration that the participant is attending. But the audio file is total silence. Do I have to make any adjustments to the flowgraph to connect the recorder with the channel and capture the audio?? Maybe I have to modify the mixer weights somewhere?
Using version 1.9.8 of reciprocate and sipXtapi 3.3.0 test17 library package for Ubuntu.
Thank you,
Spiros
I am trying to capture the audio stream during a conversation, in either a file or a buffer. I have found that in every remoteParticipant the sipXtapi ConnectionID is saved and also the MediaInterface pointer. By accessing those 2 I am calling the RecordChannelAudio like this:
participant->getMediaInterface()->getInterface()->recordChannelAudio(participant->getMediaConnectionId(),"/tmp/test.wav");
Confirmation from sipXtapi is OK that starts recording (although verifying the connectionID as -1 and not the ConnectionID from participant). The wav file is created and the length is quite close to the actual call duration that the participant is attending. But the audio file is total silence. Do I have to make any adjustments to the flowgraph to connect the recorder with the channel and capture the audio?? Maybe I have to modify the mixer weights somewhere?
Using version 1.9.8 of reciprocate and sipXtapi 3.3.0 test17 library package for Ubuntu.
Thank you,
Spiros