Call recording
Call recording
I managed to register SIP account. Incoming numbers are coming up. Is there any way to record the incoming/outgoing calls?
Re: Call recording
No you can't do recording with sipsorcery.com. It's a SIP only service meaning it only sets up the call signalling and does not ever get involved in the audio side of the call.
You can use a service like anveo.com or tropo.com in combination with sipsorcery to do media related functions such as call recording.
You can use a service like anveo.com or tropo.com in combination with sipsorcery to do media related functions such as call recording.
Re: Call recording
Sorry I meant to say. I have followed your softphone example and managed to integrate and get it worked in my c# application. I thought sipsorcery-media deals with audio.
Re: Call recording
Sorry my mistake I thought you were referring to the main sipsorcery service.
If you look at the AudioChannel.cs class you'll see where the RTP packets are processed and played over the local audio device. The m_waveOut object is what ends up with the received audio.
To record the audio you could change the way m_waveOut is configured to save to a local file instead of going to the speaker or I suspect it would be possible to do both (it's been a long time since I wrote that code so I can't recall exactly how to record). The project used to handle the audio in the softphone example is NAudio. It's very well documented and I'm sure it will have some examples of recording to a file.
If you look at the AudioChannel.cs class you'll see where the RTP packets are processed and played over the local audio device. The m_waveOut object is what ends up with the received audio.
To record the audio you could change the way m_waveOut is configured to save to a local file instead of going to the speaker or I suspect it would be possible to do both (it's been a long time since I wrote that code so I can't recall exactly how to record). The project used to handle the audio in the softphone example is NAudio. It's very well documented and I'm sure it will have some examples of recording to a file.