You have to put the monitor after the person presses their selection.
This is how ours is:
exten => s,1,answer
exten => s,2,SetCIDName('PMG')
exten => s,3,SetVar(company=PMG)
exten => s,4,Wait(1)
exten => s,5,DigitTimeout,5
exten => s,6,ResponseTimeout,40
exten => s,7,Background(/var/lib/asterisk/sounds/greetings/pmg)
exten => s,8,Background(greetings/dial)
exten => 1,1,SetVar(CALLFILENAME=${CALLERIDNUM}) exten => 1,2,SetVar(CALLTIME=${DATETIME}) exten => 1,3,SetVar(CALLPATH=/var/calls) exten => 1,4,Monitor(wav,${CALLPATH}/${CALLTIME}-${CALLFILENAME},m) exten => 1,5,DIAL(SIP/something,15,t) exten => 1,6,StopMonitor exten => 1,7,Voicemail(u804) exten => 1,8,Hangup exten => 1,102,StopMonitor exten => 1,103,VoiceMail(b804) exten => 1,104,Hangup
Kyle
mr. barker wrote:
I am sure that this was answered somewhere but my lack of being able to find an answer using google I turn to the pros.
What would be the easist way to record all conversations using Monitor command with the latest [EMAIL PROTECTED] ?
Using a FXO card with SIP extensions
I have tried adding the following in the extensions_additional.conf but I am not getting a file generated in the /var/spool/asterisk/monitor directory or anywhere else.
Help would be muchly appreciated.
Thanks for helping the newbiein return.
exten => s,7,Monitor(wav,${TIMESTAMP}-${CALLERIDNUM}-${MACRO_EXTEN})
[aa_1]
include => aa_1-custom
exten => 1,1,Goto(ext-local,7726258,1) ;
exten => 2,1,Goto(ext-local,7726259,1) ;
exten => 3,1,Goto(ext-local,7726257,1) ;
exten => fax,1,Goto(ext-fax,in_fax,1) ;
exten => h,1,Hangup() ;
exten => i,1,Playback(invalid) ;
exten => i,2,Goto(s,7) ;
include => ext-local
include => app-messagecenter
include => app-directory
exten => s,1,GotoIf($[${DIALSTATUS} = ANSWER]?4) ;
exten => s,2,Answer() ;
exten => s,3,Wait(1) ;
exten => s,4,SetVar(DIR-CONTEXT=default) ;
exten => s,5,DigitTimeout(3) ; Select
exten => s,6,ResponseTimeout(7) ;
exten => s,7,Monitor(wav,${TIMESTAMP}-${CALLERIDNUM}-${MACRO_EXTEN})
exten => s,8,Background(custom/aa_1) ; Press 1 for Peter Press 2 for Paula Press 3 for the Kids
------------------------------------------------------------------------
_______________________________________________ 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
_______________________________________________ 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
