mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-15 08:04:47 -07:00
eliminate useless warnings generated by IAXy registrations
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7044 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2005-11-09 Kevin P. Fleming <kpfleming@digium.com>
|
||||
|
||||
* channels/chan_iax2.c (update_registry): don't complain about unspecifed registration expiration intervals, just use the minimum
|
||||
|
||||
2005-11-08 Kevin P. Fleming <kpfleming@digium.com>
|
||||
|
||||
* Asterisk 1.2.0-rc1 released.
|
||||
|
||||
@@ -5660,6 +5660,9 @@ static int update_registry(char *name, struct sockaddr_in *sin, int callno, char
|
||||
/* Setup the expiry */
|
||||
if (p->expire > -1)
|
||||
ast_sched_del(sched, p->expire);
|
||||
/* treat an unspecified refresh interval as the minimum */
|
||||
if (!refresh)
|
||||
refresh = min_reg_expire;
|
||||
if (refresh > max_reg_expire) {
|
||||
ast_log(LOG_NOTICE, "Restricting registration for peer '%s' to %d seconds (requested %d)\n",
|
||||
p->name, max_reg_expire, refresh);
|
||||
|
||||
Reference in New Issue
Block a user