diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-01 22:28:33 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-01 22:28:33 +0000 |
commit | d3a76999d05ec02331dae5e65ede8a184ae6e759 (patch) | |
tree | 615dd86d4ac07062eedee46c34978b96272feba4 /channels/chan_iax2.c | |
parent | 3a31b6ff2dd4bcc42754d748c789bb2aa93a7f8b (diff) |
various devicestate fixes (issue #5081, take two)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rwxr-xr-x | channels/chan_iax2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 4b9e5379a..562108acc 100755 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -9114,9 +9114,8 @@ static int iax2_devicestate(void *data) /* Peer is registered, or have default IP address and a valid registration */ if (p->historicms == 0 || p->historicms <= p->maxms) - res = AST_DEVICE_NOT_INUSE; - else - res = AST_DEVICE_UNKNOWN; /* Not reachable */ + /* let the core figure out whether it is in use or not */ + res = AST_DEVICE_UNKNOWN; } } else { if (option_debug > 2) |