<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Dan et al;<br>
<br>
This looks like a perfect solution. <br>
<br>
However, I have one issue. If I initiate the macro manually (put it
in the proper context/dialplan) it works. I see the *.wav file being
created and growing in the /var/spool/asterisk/monitor directory.<br>
<br>
If I try to implement it adding the <span style="color: black;">MixMonApp
=> *1,self/both,Macro,mixmon to the [applicationmap] in
features.conf, I cannot get it to work. <br>
<br>
Steps.<br>
</span>
<ol>
<li>added the example macro to the dialplan in extensions.conf</li>
<li>added the line <span style="color: black;">MixMonApp =>
*1,self/both,Macro,mixmon to the features.conf file under
[applicationmap]</span></li>
<li><span style="color: black;">sip reload / dialplan reload /
reload res_features <br>
</span></li>
<li><span style="color: black;">see the message that 'Mapping
Feature 'apps' to app 'Macro(callrec)'</span></li>
<li><span style="color: black;">make incoming call - answer with
SIP phone</span></li>
<li><span style="color: black;">I press *1 on the keypad, I hear
the tones, but it does not begin recording</span></li>
<li><span style="color: black;">see nothing in the CLI and no new
files get created in </span> /var/spool/asterisk/monitor
directory.</li>
</ol>
What am I missing? Probably something simple. <br>
<br>
Any words of wisdom?<br>
<br>
Glen<br>
<br>
On 4/6/2011 07:29, Dan Journo wrote:
<blockquote
cite="mid:31C6BA8C3525D840B022617ACBB7BC0382F374994C@VMBX123.ihostexchange.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<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]-->
<div class="WordSection1">
<p class="MsoPlainText">> I am looking for a solution to
record calls that come into our Asterisk <o:p></o:p></p>
<p class="MsoPlainText">> server. I am hoping for something
that is easy to use - however, if I <o:p></o:p></p>
<p class="MsoPlainText">> have to modify it to make it easier
to use, I do not mind.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> Does anyone know of any opensource
or otherwise solutions out there that <o:p></o:p></p>
<p class="MsoPlainText">> I can try out?<o:p></o:p></p>
<p class="MsoPlainText"><span style="color: black;"><o:p> </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> </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> </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> </o:p></span></p>
<p class="MsoPlainText"><span style="color: black;">
[macro-mixmon]<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> s,1,GotoIf($["${XAD}" = "0" | "${XAD}" =
""]?startrec:donothing)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> s,n(startrec),GotoIf($["${ARG1}"=""]?beep:nobeep)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> s,n(beep),Playback(/var/lib/asterisk/sounds/rec1)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> s,n(nobeep),Set(XAD=1)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> s,n,MixMonitor(FILENAME.wav,b)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> s,n(donothing),MacroExit<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"><o:p> </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> </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> </o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"> exten
=> _9.,14,Macro(mixmon,nobeep)<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"><o:p> </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> </o:p></span></p>
<p class="MsoPlainText"><span style="color: black;">
MixMonApp => *1,self/both,Macro,mixmon<o:p></o:p></span></p>
<p class="MsoPlainText"><span style="color: black;"><o:p> </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> </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 moz-do-not-send="true"
href="http://www.keshercommunications.com/"><span
style="color: blue;">Business Phone Systems</span></a> | <a
moz-do-not-send="true"
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> </o:p></p>
<p class="MsoPlainText"><span style="color: black;"><o:p> </o:p></span></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
</blockquote>
</body>
</html>