[Asterisk-cvs] asterisk/channels chan_iax2.c,1.166,1.167
citats at lists.digium.com
citats at lists.digium.com
Thu Jul 1 00:18:38 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/home/citats/cvs/asterisk/channels
Modified Files:
chan_iax2.c
Log Message:
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.166
retrieving revision 1.167
diff -u -d -r1.166 -r1.167
--- chan_iax2.c 30 Jun 2004 16:56:51 -0000 1.166
+++ chan_iax2.c 1 Jul 2004 04:04:30 -0000 1.167
@@ -4035,7 +4035,7 @@
}
memcpy(®->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