[Asterisk-Users] how do i make this happen [macro-record-cleanup]

Jimmy Riley jimmy.riley at vericore.com
Sat Jan 10 22:13:45 MST 2004


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

[macro-record-cleanup]

exten => s,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor) 
exten => s,2,GotoIf($[${CALLFILENAME} = ${FOO}]?6:3) 
exten => s,3,System(soxmix ${MONITORDIR}/${CALLFILENAME}-in.wav
${MONITORDIR}/${CALLFILENAME}-out.wav  ${MONITORDIR}/${CALLFILENAME}.gsm) 
exten => s,4,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in.wav
${MONITORDIR}/${CALLFILENAME}-out.wav) 
exten => s,5,NoOp



[sip]
exten => 1001,1,macro(record-on,${EXTEN},${CALLERIDNUM})
exten => 1001,2,Dial(SIP/one|20|tr)


Jimmy Riley
Network Administrator
VeriCore
985-626-1701 X1103




More information about the asterisk-users mailing list