I am playing around with changing the volume in Asterisk. There are a few applications where I would benefit from this. Most of them are to increase the volume but there are also some scenarios in which I was looking to decrease the volume below the default.
I know someone uses SET(VOLUME(TX)=10) to achieve a very realistic sounding 1004 Hz test tone when someone calls his milliwatt line.
He also told me, he wasn't sure, but he thought that '3' was the normal volume for both TX and RX. I couldn't find any documentation to confirm or deny this. But I thought I would run a simple test:
[mf] ; This is "supposed" to increase the transmit volume (what the caller would hear), execute a subroutine, and then "reset" the channel volume back to normal
exten => start,1,SayAlpha(A)
same => n,SayAlpha(A)
same => n,SayAlpha(A)
same => n,SET(VOLUME(TX)=1)
same => n,GoSub(mfer,start,1(${ARG1}))
same => n,SayAlpha(A)
same => n,SayAlpha(A)
same => n,SET(VOLUME(TX)=0.4)
same => n,SayAlpha(A)
same => n,SayAlpha(A)
same => n,SET(VOLUME(TX)=3) ; return volume to original loudness ** is the original volume 3?
same => n,SayAlpha(A)
same => n,SayAlpha(A)
same => n,Return()
I simply listened to the "A" digits to see if they got louder or softer.
To my surprise, the only differences were the last 2 sounded louder! The first 6 all sounded the same!
This tells me the "normal" channel volume is not 3 - it must be 2 or 1, and is probably 1.
Also the 0.4 did not make the channel softer, so this leads me to believe 1 is the smallest possible value.
So, is it possible to make transmit or receive volume softer than the default in Asterisk? It seems decimals are not supported so I'm not sure where to head now.