aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-14 22:39:19 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-14 22:39:19 +0000
commit82c3d943f063a3cb0a398961455212f5b644cc0a (patch)
tree8a0ccf92c5931bbd0f4911870b9425d730327ae9 /channels/chan_local.c
parent00a6d4e9cef4a8d232bfa30b5184f141bd7a6f09 (diff)
make Local channel return sensible device state values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34162 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 68dbd7d89..a865aa6b4 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -134,9 +134,9 @@ static int local_devicestate(void *data)
ast_log(LOG_DEBUG, "Checking if extension %s@%s exists (devicestate)\n", exten, context);
res = ast_exists_extension(NULL, context, exten, 1, NULL);
if (!res)
- return AST_DEVICE_NOT_INUSE;
+ return AST_DEVICE_INVALID;
else
- return AST_DEVICE_INUSE;
+ return AST_DEVICE_UNKNOWN;
}
static int local_queue_frame(struct local_pvt *p, int isoutbound, struct ast_frame *f, struct ast_channel *us)