On Thu, 2010-09-02 at 08:20 -0400, Dan Journo wrote: > How do you sort out the issue of having 2 wav files per call? > > Also, when I press *1, asterisk thinks that both the caller and the callee > have pressed *1 and therefore it starts recording twice (therefore making 4 > wav files). Any idea what's going on there? > > Heres the CLI output:- > > -- Called 01615556...@supplier > -- SIP/supplier-00000055 is making progress passing it to > SIP/clientone_201-00000054 > -- SIP/supplier-00000055 answered SIP/clientone_201-00000054 > -- <SIP/kesher_201-00000054> Playing 'beep' (language 'en') > -- User hit '*1' to record call. filename: > wav|auto-1283429941-SIP-clientone_201-00000054-01615556607|m > -- <SIP/supplier-00000055> Playing 'beep' (language 'en') > -- User hit '*1' to record call. filename: > wav|auto-1283429941-01615556607-SIP-clientone_201-00000054|m > > Thanks > Dan > Sounds like it's using Monitor rather than MixMonitor.
I had a quick look at this: http://www.voip-info.org/wiki/view/Asterisk+config+features.conf And it looks like you might be better off creating your own macro for one touch recording and adding it to the features.conf as shown in this part of that web page Examples One Touch Recording (applicationmap) with WAV to MP3 Conversion Macro. extensions.conf : [macro-apprecord] exten => s,1,GotoIf($["${XAD}" = "0" | "${XAD}" = ""]?startrec:stoprec) exten => s,n(startrec),Playback(startmonitor) exten => s,n,Set(XAD=1) exten => s,n,Set(FILENAME=${TIMESTAMP}-OUT ${CALLERID(number)}-^-${UNIQUEID}) exten => s,n,Set(MONITOR_EXEC_ARGS=&& nice -n 19 /usr/local/bin/lame -b 96 -t -F -m m --bitwidth 16 --quiet "/var/spool/asterisk/monitor/${FILENAME}.wav" "/var/spool/asterisk/monitor/${FILENAME}.mp3" && rm -f "/var/spool/asterisk/monitor/${FILENAME}.wav") exten => s,n,Monitor(wav,${FILENAME},m) exten => s,n,MacroExit exten => s,n(stoprec),StopMonitor exten => s,n,Set(XAD=0) exten => s,n,Playback(stopmonitor) exten => s,n,MacroExit features.conf : apps => *9,caller,Macro,apprecord but using MixMonitor rather than monitor. Let me know how you got on with it as I think I'm going to be asked to do this in the next month or 2. -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
