Here is what I have now. Where should the line " exten => _.,1,macro(record-on,${EXTEN},${CALLERIDNUM})" go should it be under [sip]? Right now if I call sip to sip monitoring starts and the calls connect but I only get 44 byte files. If I call and iaxtel number monitoring starts but call never gets placed and again 44byte files with nothing in them. Thanks for the help.
[iaxtel] exten => _1700XXXXXXX,1,Dial(IAX2/jmproductions:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => _1888NXXXXXX,1,Dial(IAX2/jmproductions:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => _1877NXXXXXX,1,Dial(IAX2/jmproductions:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => _1866NXXXXXX,1,Dial(IAX2/jmproductions:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => _1800NXXXXXX,1,Dial(IAX2/jmproductions:[EMAIL PROTECTED]/[EMAIL PROTECTED]) [sip] include => iaxtel exten => _.,1,macro(record-on,${EXTEN},${CALLERIDNUM}) exten => s,1,Dial(SIP/one|20|tr) 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 ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Mann Sent: January 10, 2004 12:48 PM To: [EMAIL PROTECTED] Subject: Re: [Asterisk-Users] Record all phone calls <See Below> ----- Original Message ----- From: Jimmy Riley To: '[EMAIL PROTECTED]' 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. _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users