<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)">MixMonitor takes a parameter of a system command to run when the recording finishes. Like Chris said, you can write to ramdisk, and run a script that will move the file into final position only when the call has done recording</div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)">Here we use:</div>
<div class="gmail_default"><div class="gmail_default"><font color="#000066" face="tahoma, sans-serif"> Set(recordFile=${UNIQUEID}_${NUMBER}.gsm);</font></div><div class="gmail_default"><font color="#000066" face="tahoma, sans-serif"> Set(recordPath=/var/log/asterisk/recordings/${CALLERID(dnid)}/${STRFTIME(${EPOCH},GMT+0,%F)});</font></div>
<div class="gmail_default"><font color="#000066" face="tahoma, sans-serif"> MixMonitor(/ramdrive/${recordFile},,/usr/local/bin/mixmon "${recordFile}" "${recordPath}");</font></div>
<div class="gmail_default"><font color="#000066" face="tahoma, sans-serif"> SIPAddHeader(X-REC-FILE: ${recordPath}/${recordFile});</font></div><div style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small">
<br></div><div style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small">and /usr/local/bin/mixmon will move the file to $recordPath and whatever else needs done on that file...</div></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)">
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 January 2014 21:55, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Jan 27, 2014 at 1:02 PM, Ron Wheeler<br>
<<a href="mailto:rwheeler@artifact-software.com">rwheeler@artifact-software.com</a>> wrote:<br>
> Can you get a reading of the total number of I/Os during your test? Peak<br>
> IOPS?<br>
> That might tell you very quickly about the storage pattern that Asterisk<br>
> uses.<br>
><br>
> Can you configure a RAM drive to see if disk is really the bottleneck. May<br>
> need to add some more RAM memory to your configuration.<br>
><br>
> What is your network capacity? Usually one can write faster than the network<br>
> can deliver - just to make sure that you are chasing the right bottleneck.<br>
><br>
> What happens at 80 calls to tell you that you have run out of IOPS?<br>
<br>
</div>Dovetailing on this question, I'll add one as well:<br>
<br>
Are you recording using MixMonitor, or Monitor?<br>
<br>
Depending on your answer to the "what happens at 80 calls", you may<br>
get better results with MixMonitor over Monitor. MixMonitor offloads<br>
the recording of the media to a separate thread; Monitor attempts to<br>
record the audio on the thread servicing the channel(s).<br>
<br>
Matt<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>