Discussion:
[recon-devel] Capture conversation audio in file
Spiridon Dimopoulos
2015-06-15 13:57:57 UTC
Permalink
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
Scott Godin
2015-06-16 13:40:06 UTC
Permalink
I believe you will need to setup the Mix as you have suggested. It's been
awhile since I've look at recon, so I can't guide you off the top of my
head very well right now. :)

You can try the sipXtapi mailing list as well, since this seems more
specific to that component. http://sipxtapi.sipfoundry.org/wiki/SipXtapi

Scott
Post by Spiridon Dimopoulos
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
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
_______________________________________________
recon-devel mailing list
List Archive: http://list.resiprocate.org/archive/recon-devel/
Loading...