Why is recording written as .raw and not .wav?

I have this line in extensions_custom.conf

same => n,ExecIf($[${i}=1]?MixMo nitor(LENNY-${CALLERID(number)}- ${CALLERID(name)}.wav))

The file is written with a raw extension instead of .wav.

Why is that?

What does the variable MIXMONITOR_FILENAME print after a successful write?


should be


Interesting. If one greps MixMonitor inside /etc/asterisk there is also nothing that points to a .raw file. I am using something similar, but I don’t have any problems.

Here is the entire file now. I took out ${CALLERID(name)} and added ${UNIQUEID} and now it works.

[Lenny] exten => talk,1,Set(i=${IF($["0${i}" ="016"]?7:$[0${i}+1])}) same => n,ExecIf($[${i}=1]?MixMonito r(LENNY-${UNIQUEID}-${CALLERID(numbe r)}.wav)) same => n,Playback(Lenny/Lenny${i}) same => n,BackgroundDetect(Lenny/bac kgroundnoise,1500)


Still a mystery

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.