[Freeswitch-users] Loud whilte noise during sleep

Phil Quesinberry philq at qsystemsengineering.com
Thu May 17 20:13:05 MSD 2012


** Disclaimer: this is probably a really bad idea **

Just in case this is frustrating anyone else:
Silence is generated by the switch_generate_sln_silence function(s) in
switch_resample.c, 'divisor' is the variable which determines the noise
volume - the higher the value, the lower the noise volume.

So, a quick fix for this problem would be to hard-code a value like 1400 for
'divisor' within those functions, by adding divisor = 1400 before the for
loop and recompiling.  This will affect ALL silence generated by FreeSwitch
so it would be better to find where this is set within the sleep function so
it only affects noise generated there.

Better yet, if there's a way to accomplish this without hacking the code,
(i.e. a variable that can be set), then by all means do that instead (and
let me know what it is).

Setting send_silence_when_idle to the desired value curbs the noise during
sleep but it sends silence during ringback too, at least in my configuration
here.

Regards,

Phil Quesinberry
Q Systems Engineering, Inc.
Electronic Controls and Embedded Systems Development
(410) 969-8002
http://www.qsystemsengineering.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120517/5f564068/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list