[asterisk-dev] chan_sip - performance, and OPTIONS poking
for 1000s of peers
John Todd
jtodd at loligo.com
Mon Nov 27 07:09:58 MST 2006
At 1:53 AM -0800 2006/11/27, Steve Langstaff wrote:
> > -----Original Message-----
> > From: asterisk-dev-bounces at lists.digium.com
>> [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of
>> Ryan Mitchell
>
>> int to2 = DEFAULT_FREQ_OK + thread_safe_rand() % 8000 - 40000;
>> peer->pokeexpire = ast_sched_add(sched, to2, sip_poke_peer_s, peer);
>
>Shouldn't that be 4000 (so you vary +/- 4000 from the DEFAULT_FREQ_OK),
>rather than 40000?
Perhaps if this became an option that these numbers would be settable
from within sip.conf? I always get a vague feeling of unease when I
see numbers like timers hardcoded into chan_sip...
JT
More information about the asterisk-dev
mailing list