From: Russell Bryant Date: Fri, 26 Nov 2004 01:54:11 +0000 (+0000) Subject: Try call if call is 0 or more (bug #2935) X-Git-Tag: 1.0.11.1~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e75116e74b9255063cda287963946f677fb648b;p=thirdparty%2Fasterisk.git Try call if call is 0 or more (bug #2935) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4348 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c3ae0e2694..454975a8ff 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1339,7 +1339,7 @@ static int create_addr(struct sip_pvt *r, char *opeer) r->promiscredir = p->promiscredir; strncpy(r->context, p->context,sizeof(r->context)-1); if ((p->addr.sin_addr.s_addr || p->defaddr.sin_addr.s_addr) && - (!p->maxms || ((p->lastms > 0) && (p->lastms <= p->maxms)))) { + (!p->maxms || ((p->lastms >= 0) && (p->lastms <= p->maxms)))) { if (p->addr.sin_addr.s_addr) { r->sa.sin_addr = p->addr.sin_addr; r->sa.sin_port = p->addr.sin_port;