Saving recordings creating two files


i’m trying to save call recordings in Asterisk but it creates two file separately for in and out



in extensions.conf for recording


exten => _XXXX.,1,Macro(callrecout,${EXTEN})
exten => _XXXX.,n,Dial(SIP/freevoip/${EXTEN},40,Tt)
exten => _XXXX.,n,HangUp()

exten => s,1,Set(chan=${CHANNEL})
exten => s,n,Set(chan=${CUT(chan,,1)})
exten => s,n,Set(CDR(accountcode)=OUT)
exten => s,n,Set(date=${STRFTIME(${EPOCH},,%Y-%m-%d)})
exten => s,n,Set(time=${STRFTIME(${EPOCH},,%H-%M-%S)})
exten => s,n,NoOp(${chan})
exten => s,n,NoOp(${ACCOUNTCODE})
exten => s,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/${date}/OUTBOUND/${chan}---${time}---${ARG1})
exten => s,n,NoOp(${MONITOR_FILENAME})
exten => s,n,Monitor(wav,${MONITOR_FILENAME},m)

If you want a combined file, use MixMonitor.

1 Like

shouldn’t the ‘m’ combine the files?

exten => s,n,Monitor(wav,${MONITOR_FILENAME},m)

Do you have the application it uses installed?

1 Like

I did installed SoX, but for some reason it did not got installed. I’ll try installing it again

Unix is case sensitive. It is sox.

Actually a package was missing, thank you for your help :slight_smile: