[asterisk-commits] trunk r34162 - /trunk/channels/chan_local.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jun 14 15:39:20 MST 2006
Author: kpfleming
Date: Wed Jun 14 17:39:19 2006
New Revision: 34162
URL: http://svn.digium.com/view/asterisk?rev=34162&view=rev
Log:
make Local channel return sensible device state values
Modified:
trunk/channels/chan_local.c
Modified: trunk/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_local.c?rev=34162&r1=34161&r2=34162&view=diff
==============================================================================
--- trunk/channels/chan_local.c (original)
+++ trunk/channels/chan_local.c Wed Jun 14 17:39:19 2006
@@ -134,9 +134,9 @@
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)
More information about the asterisk-commits
mailing list