projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62cf9a2
)
Try call if call is 0 or more (bug #2935)
author
Mark Spencer
<markster@digium.com>
Thu, 25 Nov 2004 22:11:06 +0000
(22:11 +0000)
committer
Mark Spencer
<markster@digium.com>
Thu, 25 Nov 2004 22:11:06 +0000
(22:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4347
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
5f53949
..
aaaa75a
100755
(executable)
--- 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;