diff options
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) |