[Freeswitch-users] Loud whilte noise during sleep

Peter Olsson peter.olsson at visionutveckling.se
Thu May 17 20:47:56 MSD 2012


If i remember correctly, the default divisor used when setting send_silence_when_idle=true is 1400. It sounds to me that you are using a a very old version or something? I've never had any problems with loud white noice, and I use send_silence quite alot.

/Peter

17 maj 2012 kl. 18:18 skrev "Phil Quesinberry" <philq at qsystemsengineering.com<mailto:philq at qsystemsengineering.com>>:


** 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

!DSPAM:4fb521ba32762069614621!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

Join Us At ClueCon - Aug 7-9, 2012

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


!DSPAM:4fb521ba32762069614621!



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