diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-25 22:11:06 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-25 22:11:06 +0000 |
commit | 59716f51a5a20381ad71ae6432a4ce847b104fc7 (patch) | |
tree | 8a5d409f899a572a84dbd6f6c07999bc5474be78 /channels | |
parent | f76bd3c7e76daaf63f747625e9cfbd6fc0fdd44a (diff) |
Try call if call is 0 or more (bug #2935)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4347 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5f53949bf..aaaa75abf 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1290,7 +1290,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; |