<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P.MsoPlainText {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
LI.MsoPlainText {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
DIV.MsoPlainText {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2><See Below></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A
title=jimmy.riley@vericore.com href="mailto:jimmy.riley@vericore.com">Jimmy
Riley</A> </DIV>
<DIV><B>To:</B> <A title=asterisk-users@lists.digium.com
href="mailto:'asterisk-users@lists.digium.com'">'asterisk-users@lists.digium.com'</A>
</DIV>
<DIV><B>Sent:</B> Saturday, January 10, 2004 10:01 AM</DIV>
<DIV><B>Subject:</B> [Asterisk-Users] Record all phone calls</DIV></DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to record all phone calls
made inbound and outbound. I'm new so having a hard time getting this started.
Here is what I have so far but isn't working. Can someone help me out?
Thanks,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt">[macro-record-on]<BR>exten =>
s,1,SetVar(CALLFILENAME=${DATETIME}-${ARG2}-${ARG1})<BR>exten =>
s,2,Monitor(wav,${CALLFILENAME})<BR></SPAN></FONT><FONT face=Arial><SPAN
style="FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoPlainText><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt">[sip]<BR>include => macro-record-on<BR>include =>
iaxtel <BR>exten => _,1,macro(record-on,${EXTEN},${CALLERIDNUM})<BR>exten
=> 1001,1,Dial(SIP/one|20|tr)<BR>exten => 1001,2,VoiceMail,u1001<BR>exten
=> 1001,102,VocieMail,b1001<BR>exten =>
2001,1,Dial,IAX2/guest@24.202.159.205/2001<BR>exten =>
1002,1,Dial(SIP/two|20|mtr)<BR>exten => 1002,2,VoiceMail,u1002<BR>exten =>
1002,102,VoiceMail,b1002<BR>exten => 6001,1,Ringing<BR>exten =>
6001,2,Wait(2)<BR>exten => 6001,3,VoicemailMain</SPAN></FONT></P><FONT
face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"></SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt"></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><FONT
face=Arial>There are a few issues I can see with this but your two big
problems are as follows.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt"></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt">You never want to
include a macro.</SPAN></FONT></DIV>
<DIV>include => macro-record-on</DIV>
<DIV>So remove that line altogether.</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>You show exten =>
_,1,macro(record-on,${EXTEN},${CALLERIDNUM})<BR>the _ tells asterisk that you
are going to want to match characters but then you dont tell it what you want to
match.</FONT></DIV>
<DIV><FONT face=Arial size=2>so exten => _.,1etc... See the . after _
this tells * to match the rest of the characters (digits)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Those are your two big issues with not getting the
recording to start.</FONT></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt"></SPAN></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><FONT
face=Arial></FONT> </DIV>
<P class=MsoPlainText><BR></SPAN></FONT><FONT face=Arial><SPAN
style="FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></BODY></HTML>