Mark Phillips
2004-Sep-15 06:06 UTC
[Asterisk-Users] call recording and CDR "feature" discovered?
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/${EXTEN}@galaxyvoice,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/
buffalo@icarus.yml.com
2004-Sep-17 08:13 UTC
[Asterisk-Users] Auto Dial With An Extension number?
Greetings, I've been looking through the docs, but haven't located any info on how to autodial a number with an extension. I've got a working autodial set up where I can get asterisk to dial a number and play a prerecorded message, and ask for confirmation of receipt. Is it possible to get asterisk to dial a given number, pause for a few second and then dial an extension number before playing the prerecorded messages? Right now I'm generating calls by dropping a file into /var/spool/asterisk/outgoing: ---------------- Channel: SIP/617xxxxxxx@broadvoice Callerid: 240xxxxxxx MaxRetries: 5 RetryTime: 300 WaitTime: 45 Context: outboundmsg1 Extension: s Priority: 1 ---------------- How would the "Channel:" line need to be modified to allow for dialing (for example) 617xxxxxxx, extension 386? Or would I need to do this a different way? TIA for any and all replies/hints/pointers, --Duncan
William Suffill
2004-Sep-17 14:29 UTC
[Asterisk-Users] Auto Dial With An Extension number?
Dial has the D flag for doing just that Not sure how you would do it for the call spool though
Andres
2004-Sep-17 22:43 UTC
[Asterisk-Users] call recording and CDR "feature" discovered?
> >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? > > >Yes, I think i t has to do with the Gotoif. Redo your cleanup without the Gotoif, and the CDR should be fine.>Thanks de Mark > > >-- Andres Network Admin http://www.telesip.net