<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>&gt; I am looking for a solution to record calls that come into our Asterisk <o:p></o:p></p><p class=MsoPlainText>&gt; server. I am hoping for something that is easy to use - however, if I <o:p></o:p></p><p class=MsoPlainText>&gt; have to modify it to make it easier to use, I do not mind.<o:p></o:p></p><p class=MsoPlainText><o:p>&nbsp;</o:p></p><p class=MsoPlainText>&gt; Does anyone know of any opensource or otherwise solutions out there that <o:p></o:p></p><p class=MsoPlainText>&gt; I can try out?<o:p></o:p></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>We give our clients to option of either recording all calls, or allowing the operator to press *1 during a call to start recording manually.<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>Using Asterisk 1.4, this is what we do:-<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>We created a Macro in extensions.conf like this:-<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [macro-mixmon]<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; s,1,GotoIf($[&quot;${XAD}&quot; = &quot;0&quot; | &quot;${XAD}&quot; = &quot;&quot;]?startrec:donothing)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; s,n(startrec),GotoIf($[&quot;${ARG1}&quot;=&quot;&quot;]?beep:nobeep)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; s,n(beep),Playback(/var/lib/asterisk/sounds/rec1)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; s,n(nobeep),Set(XAD=1)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; s,n,MixMonitor(FILENAME.wav,b)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; s,n(donothing),MacroExit<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>(please note, FILENAME.wav is usually ${UNIQUEID:0:10}, but I changed it to make it easier for you to understand. You'll need to change it back to something like ${UNIQUEID:0:10}.wav if you are recording multiple calls because otherwise they'll be constantly saved to FILENAME.wav and you'll lose all the previous calls.)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>(please note, /var/lib/asterisk/sounds/rec1 is a beep tone so that the operator knows that he's successfully started the recording.)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>Then to recording every call, we add this before the DIAL(SIP/extension) command in extensions.conf:-<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exten =&gt; _9.,14,Macro(mixmon,nobeep)<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>If you don't want to record every call, you can give the operator the option of press *1. We did this by adding the following to features.conf:-<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MixMonApp =&gt; *1,self/both,Macro,mixmon<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p><p class=MsoPlainText><span style='color:black'>Hope that helps.<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Dan Journo<o:p></o:p></p><p class=MsoNormal>Kesher Communications (UK)<o:p></o:p></p><p class=MsoNormal><a href="http://www.keshercommunications.com/"><span style='color:blue'>Business Phone Systems</span></a> | <a href="http://www.keshercommunications.com/hostedpbx.html"><span style='color:blue'>Hosted PBX</span></a><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoPlainText><span style='color:black'><o:p>&nbsp;</o:p></span></p></div></body></html>