dect
/
asterisk
Archived
13
0
Fork 0

make Local channel return sensible device state values

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34162 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2006-06-14 22:39:19 +00:00
parent 00a6d4e9ce
commit 82c3d943f0
1 changed files with 2 additions and 2 deletions

View File

@ -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)