diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-06 17:08:05 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-06 17:08:05 +0000 |
commit | a8a21876f62df4dc4471b0945af74943b62d203e (patch) | |
tree | 4297dfe00d4c945856ce7436a5b9fb9cb21698ae /channels | |
parent | 6dba2f72ba02725115247b0da1f6a6af426d641e (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@89032 f38db490-d61c-443f-a65b-d21fe96a405b
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 23fe8f907..e444c1fcf 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15652,7 +15652,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 */ |