[Asterisk-cvs] asterisk/channels chan_iax2.c,1.91.2.15,1.91.2.16

citats at lists.digium.com citats at lists.digium.com
Thu Jul 1 00:22:01 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/home/citats/cvs/asterisk-stable/channels

Modified Files:
      Tag: v1-0_stable
	chan_iax2.c 
Log Message:
BACKPORT: Fix IAX2 registration time.  We want to set reg->refresh to the new value only if its lower not if its higher. (bug 1955)

Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.91.2.15
retrieving revision 1.91.2.16
diff -u -d -r1.91.2.15 -r1.91.2.16
--- chan_iax2.c	25 May 2004 15:17:20 -0000	1.91.2.15
+++ chan_iax2.c	1 Jul 2004 04:07:52 -0000	1.91.2.16
@@ -3534,7 +3534,7 @@
 	}
 	memcpy(&reg->us, &us, sizeof(reg->us));
 	reg->messages = ies->msgcount;
-	if (refresh && (reg->refresh < refresh)) {
+	if (refresh && (reg->refresh > refresh)) {
 		/* Refresh faster if necessary */
 		reg->refresh = refresh;
 		if (reg->expire > -1)




More information about the svn-commits mailing list