diff options
author | Joshua Colp <jcolp@digium.com> | 2007-11-06 17:10:03 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-11-06 17:10:03 +0000 |
commit | b4031d629444f42a11e0c8125fce3849b54ccbb2 (patch) | |
tree | 71bab2e3598472e6b731c1798aaa818d7d82a260 /channels | |
parent | 81456f849344c164a1f8d04b79003b38323c52d3 (diff) |
Merged revisions 89032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89032 | file | 2007-11-06 13:08:05 -0400 (Tue, 06 Nov 2007) | 4 lines
Make it so that if a peer is determined to be unreachable using qualify their devicestate will report back unavailable.
(closes issue #11006)
Reported by: pj
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | 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 1aff65fc8..3046ea3d0 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16886,7 +16886,7 @@ static int sip_devicestate(void *data) else if (p->call_limit && p->inUse) /* Not busy, but we do have a call */ res = AST_DEVICE_INUSE; - else if (p->maxms && (p->lastms > p->maxms)) + else if (p->maxms && ((p->lastms > p->maxms) || (p->lastms < 0))) /* We don't have a call. Are we reachable at all? Requires qualify= */ res = AST_DEVICE_UNAVAILABLE; else /* Default reply if we're registered and have no other data */ |