[Freeswitch-users] Loud whilte noise during sleep
Anthony Minessale
anthony.minessale at gmail.com
Thu May 17 20:21:35 MSD 2012
Which revision of the code are you looking at?
The sleep sends dummy frames unless you set that
send_silence_when_idle var, if its not set its probably not sending
anything.
You can see in the code that unless that var is set it wont be
generating anything.
On Thu, May 17, 2012 at 11:13 AM, Phil Quesinberry
<philq at qsystemsengineering.com> wrote:
> ** 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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> 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
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list