<See Below>
 
----- Original Message -----
Sent: Saturday, January 10, 2004 10:01 AM
Subject: [Asterisk-Users] Record all phone calls

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,

 

[macro-record-on]
exten => s,1,SetVar(CALLFILENAME=${DATETIME}-${ARG2}-${ARG1})
exten => s,2,Monitor(wav,${CALLFILENAME})
 

 

[sip]
include => macro-record-on
include => iaxtel
exten => _,1,macro(record-on,${EXTEN},${CALLERIDNUM})
exten => 1001,1,Dial(SIP/one|20|tr)
exten => 1001,2,VoiceMail,u1001
exten => 1001,102,VocieMail,b1001
exten => 2001,1,Dial,IAX2/[EMAIL PROTECTED]/2001
exten => 1002,1,Dial(SIP/two|20|mtr)
exten => 1002,2,VoiceMail,u1002
exten => 1002,102,VoiceMail,b1002
exten => 6001,1,Ringing
exten => 6001,2,Wait(2)
exten => 6001,3,VoicemailMain

 
There are a few issues I can see with this but your two big problems are as follows.
 
You never want to include a macro.
include => macro-record-on
So remove that line altogether.
 
You show exten => _,1,macro(record-on,${EXTEN},${CALLERIDNUM})
the _ tells asterisk that you are going to want to match characters but then you dont tell it what you want to match.
so exten => _.,1etc...  See the . after _ this tells * to match the rest of the characters (digits)
 
Those are your two big issues with not getting the recording to start.

 
 


 

Reply via email to