When a device registers to use it is entirely possible that they may be in use, so...
authorJoshua Colp <jcolp@digium.com>
Thu, 11 Dec 2008 15:05:49 +0000 (15:05 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 11 Dec 2008 15:05:49 +0000 (15:05 +0000)
(closes issue #13525)
Reported by: pj

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@162997 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 0c5752a..251e05a 100644 (file)
@@ -11792,7 +11792,7 @@ static enum check_auth_result register_verify(struct sip_pvt *p, struct sockaddr
                }
        }
        if (!res) {
-               ast_devstate_changed(AST_DEVICE_NOT_INUSE, "SIP/%s", peer->name);
+               ast_devstate_changed(AST_DEVICE_UNKNOWN, "SIP/%s", peer->name);
        }
        if (res < 0) {
                switch (res) {