aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-11 15:05:49 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-11 15:05:49 +0000
commit0dce77a779c2cf1487f08aeca59c3089f18fe9ae (patch)
treee951b715a41b9440231d8f9779004b78c85c9c82 /channels
parentba3e39dcd4cec13b21dd9707e498eda1a01f2c61 (diff)
When a device registers to use it is entirely possible that they may be in use, so tell the core that we don't know the devstate and have it ask us for it.
(closes issue #13525) Reported by: pj git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162997 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 0c5752add..251e05aea 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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) {