# Call recording in Asterisk

**URL:** <https://community.asterisk.org/t/call-recording-in-asterisk/72232>\
**Category:** Asterisk Support\
**Created:** [October 6, 2017, 11:48pm UTC](https://community.asterisk.org/t/call-recording-in-asterisk/72232 "2017-10-06T23:48:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mubeen](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Mubeen](https://community.asterisk.org/u/Mubeen)\
**Post date:** [October 6, 2017, 11:48pm UTC](https://community.asterisk.org/t/call-recording-in-asterisk/72232/1 "2017-10-06T23:48:09Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [October 7, 2017, 8:44am UTC](https://community.asterisk.org/t/call-recording-in-asterisk/72232/2 "2017-10-07T08:44:24Z")

</div>

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.
