[svn-commits] branch oej/metermaids-trunk r35288 - /team/oej/metermaids-trunk/channels/

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Jun 21 10:09:12 MST 2006


Author: oej
Date: Wed Jun 21 12:09:11 2006
New Revision: 35288

URL: http://svn.digium.com/view/asterisk?rev=35288&view=rev
Log:
Change parking states so it works with SNOM phones as well (more blinking lamps, 
more blinking lamps)

Modified:
    team/oej/metermaids-trunk/channels/chan_local.c

Modified: team/oej/metermaids-trunk/channels/chan_local.c
URL: http://svn.digium.com/view/asterisk/team/oej/metermaids-trunk/channels/chan_local.c?rev=35288&r1=35287&r2=35288&view=diff
==============================================================================
--- team/oej/metermaids-trunk/channels/chan_local.c (original)
+++ team/oej/metermaids-trunk/channels/chan_local.c Wed Jun 21 12:09:11 2006
@@ -151,9 +151,9 @@
 	res = ast_exists_extension(NULL, context, exten, 1, NULL);
 
 	if (!res)
-		return parkmode ? AST_DEVICE_UNAVAILABLE : AST_DEVICE_INVALID;
+		return parkmode ? AST_DEVICE_NOT_INUSE : AST_DEVICE_INVALID;
 	else
-		return parkmode ? AST_DEVICE_NOT_INUSE : AST_DEVICE_UNKNOWN;
+		return parkmode ? AST_DEVICE_INUSE : 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 svn-commits mailing list