Call recording in Asterisk

Hi,

Can anyone tell how the call recording woks in Asterisk?

I’m using mixmonitor for recording, i was wondering when an agent is on call, how does asterisk process it? Does it writes the recording first and then sends the audio to client/agent or opposite of that happens? Or does asterisk do some kind of mirroring and writes and sends the audio at same time?

For Mixmonitor, Asterisk uses an audio hook to fork the media stream. The original branch goes straight to its destination. The fork goes to MixMonitor and is written to the file in real time (given or take any block buffering). If the file format has meta data, that is back filled just before the file is closed.

I presume that corresponds to your mirroring option.

3 Likes