[asterisk-commits] russell: branch russell/func_devstate r54244 -
/team/russell/func_devstate/fu...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Feb 13 14:35:00 MST 2007
Author: russell
Date: Tue Feb 13 15:34:59 2007
New Revision: 54244
URL: http://svn.digium.com/view/asterisk?view=rev&rev=54244
Log:
Fix a couple of buglets
Modified:
team/russell/func_devstate/funcs/func_devstate.c
Modified: team/russell/func_devstate/funcs/func_devstate.c
URL: http://svn.digium.com/view/asterisk/team/russell/func_devstate/funcs/func_devstate.c?view=diff&rev=54244&r1=54243&r2=54244
==============================================================================
--- team/russell/func_devstate/funcs/func_devstate.c (original)
+++ team/russell/func_devstate/funcs/func_devstate.c Tue Feb 13 15:34:59 2007
@@ -62,7 +62,7 @@
struct custom_device *dev;
int len = strlen("Custom:");
- if (!strncasecmp(data, "Custom:", len)) {
+ if (strncasecmp(data, "Custom:", len)) {
ast_log(LOG_WARNING, "The DEVSTATE function can only be used to set 'Custom:' device state!\n");
return -1;
}
@@ -85,7 +85,7 @@
strcpy(dev->name, data);
AST_RWLIST_INSERT_HEAD(&custom_devices, dev, entry);
}
- dev->state = ast_devstate_val(data);
+ dev->state = ast_devstate_val(value);
ast_device_state_changed("Custom:%s", dev->name);
AST_RWLIST_UNLOCK(&custom_devices);
More information about the asterisk-commits
mailing list