[Asterisk-Users] Record all phone calls
Robert Mann
asterisk at easyway.com
Sat Jan 10 11:48:15 MST 2004
<See Below>
----- Original Message -----
From: Jimmy Riley
To: 'asterisk-users at lists.digium.com'
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/guest at 24.202.159.205/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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040110/9ef19627/attachment.htm
More information about the asterisk-users
mailing list