[Asterisk-cvs] asterisk/channels chan_iax2.c,1.372,1.373

kpfleming kpfleming
Wed Nov 9 14:14:59 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv31757/channels

Modified Files:
	chan_iax2.c 
Log Message:
eliminate useless warnings generated by IAXy registrations


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.372
retrieving revision 1.373
diff -u -d -r1.372 -r1.373
--- chan_iax2.c	9 Nov 2005 00:48:38 -0000	1.372
+++ chan_iax2.c	9 Nov 2005 19:05:52 -0000	1.373
@@ -5660,6 +5660,9 @@
 	/* 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);




More information about the svn-commits mailing list