[Asterisk-Users] qualify=yes (new subject)
Olle E. Johansson
oej at edvina.net
Thu Oct 16 06:17:21 MST 2003
WipeOut wrote:
> duncan wrote:
>
>>
>>> I've added info on qualify=yes and how this can help the NAT dilemma
>>> to the
>>> wiki:
>>> http://www.voip-info.org/tiki-index.php?page=Asterisk+sip+qualify
>>>
>>> As Wipeout stated, this is extremely useful and an important part of
>>> the "undocumented Asterisk features" we're trying to document on the
>>> Wiki ;-)
>>>
>>> I can't find a setting for how often Asterisk sends the
>>> Qualify/Options request,
>>> but vaguely remember there being one. Any help?
>> qualify=yes i think means the request gets sent every 60 seconds. you
>> can of course make qualify=600 to make it send every 10 minutes.
> If you set qualify=600 Asterisk will wait 600ms for a response to the
> OPTIONS request.. If a reply is not received by Asterisk within 600ms
> then the UA is thought to be unreachable.. The OPTIONS request interval
> seems to be hard coded to 60 seconds..
Thank you!
And if you set qualify=yes, the hardcoded timeout is 2000 ms. I did not
find the 60 seconds, thought it was configurable. I'll think I'll add
it as a feature request, since different NATs have different timeouts.
Btw, here's a snippet from chan_sip.c
---
#define DEFAULT_FREQ_OK 60 * 1000 /* How often to check for the host to be up */
#define DEFAULT_FREQ_NOTOK 10 * 1000 /* How often to check, if the host is down... */
---
It seems to me that it checks every 60 seconds by default and if the host doesn't answer,
it checks every 10 seconds if it's coming back.
I did not see clearly that this timer was connected to qualify,
even though there are source code comments here. Must be the cold fall weather
here in Stockholm that slows my brain. It starts hibernating ;-)
/O
More information about the asterisk-users
mailing list