Asterisk monitor() problem


#1

Maybe I will go in to some details but i want to present my problem clearly as posible :smile:

I have one E1 line ( Europan standard 30B+1D ), Digium Card TE410P (zap 1-124) , and TDM Digium card with one analog line. (zap 125)

I make a call from E1 to analog line and try to monitoring conversation. For some reasons i need both channel in one file ( stereo wav file ) but i always get CLIPPED MONO .wav files.
When I use soxmix or stereorize to make stereo.wav from mono.wav i always get clipped file.

U have used all posible combinations such as:
example1:
Monitor(wav,${CALLFILENAME})
Dial(Zap/125)

example2.
Monitor(wav,${CALLFILENAME},m)
Dial(Zap/125)

example3.
SetVar(MONITOR_EXEC=stereorize)
Monitor(wav,${CALLFILENAME},m)
Dial(Zap/125)

etc etc.

I also use something like
MixMonitor(${CALLFILENAME}.wav|v(-4)V(-4))
but it hasnot proved effective.

My question is simple:
How I Can use monitor or somtehing else to record conversation in ONE STEREO wav file?


#2

I solve me own problem with some code change.

asterisk/format/format_wav.c

i change line
#define GAIN 2
to
#define GAIN 0

And no more clipping :smile: