mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 17:53:15 +00:00
Fix IAX2 registration time. We want to set reg->refresh to the new value only if its lower not if its higher. (bug 1955)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3369 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4035,7 +4035,7 @@ static int iax2_ack_registry(struct iax_ies *ies, struct sockaddr_in *sin, int c
|
||||
}
|
||||
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)
|
||||
|
Reference in New Issue
Block a user