Hi Folks,

I've been playing with call recording for our support department which was
kinda going ok until I spotted something odd in the CDR. None of the
support calls are being entered into the CDR properly.

I'm using mysql as the back end and Areski's web based front end and all
was going fine.

The problem seems to be that the CDR doesn't get populated with the
destination phone number and the LastApp field get populated with the
recording information.

Here's my recording stanza. All the support phones are in a context called
record-calls so that it happens all the time.

; Record calls
[record-calls]
exten =>
_1NXXNXXXXXX.,1,SetVar(CALLFILENAME=${TIMESTAMP}-${CALLERIDNUM}-${EXTEN:2})
exten => _1NXXNXXXXXX.,2,Monitor(wav,${CALLFILENAME})
exten => _1NXXNXXXXXX.,3,Answer
exten => _1NXXNXXXXXX.,4,Background(this-call-may-be)
exten => _1NXXNXXXXXX.,5,Background(recorded)
exten => _1NXXNXXXXXX.,6,Background(for-quality-purposes)
exten => _1NXXNXXXXXX.,7,Dial(SIP/[EMAIL PROTECTED],30,t)

exten => h,1,Macro(record-cleanup)

[macro-record-enable]
exten => s,1,SetVar(CALLFILENAME=${TIMESTAMP}-${CALLERIDNUM}-${EXTEN})
exten => s,2,Monitor(wav,${CALLFILENAME})
exten => h,1,Macro(record-cleanup)

[macro-record-cleanup]
exten => s,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor)
exten => s,2,GotoIf($${CALLFILENAME} = ${FOO}?6:3)
exten => s,3,System(/usr/bin/wmix ${MONITORDIR}/${CALLFILENAME}-in.wav
${MONITORDIR}/${CALLFILENAME}-out.wav >
/home/spool/asterisk/monitor/${CALLFILENAME}.wav)
exten => s,4,System(/bin/rm ${MONITORDIR}/${CALLFILENAME}-in.wav
${MONITORDIR}/${CALLFILENAME}-out.wav)
# exten => s,4,System(/usr/bin/toast -F ${MONITORDIR}/${CALLFILENAME})
exten => s,5,NoOp

And this is what happens in the CDR

8.      2004-09-14 22:39:00     SIP/2208-a5dd   2208    "2208" <2208>   NoOp    
        s               ANSWERED        10


Any ideas?

Thanks de Mark


-- 
Mark Phillips, G7LTT/KC2ENI
Randolph, NJ
http://www.g7ltt.com/
_______________________________________________
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

Reply via email to