[svn-commits] russell: trunk r81784 - /trunk/funcs/func_devstate.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 6 15:27:26 CDT 2007
Author: russell
Date: Thu Sep 6 15:27:26 2007
New Revision: 81784
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81784
Log:
Rename the DEVSTATE() function to DEVICE_STATE() to better conform to how other
functions are named.
(inspired by issue #10635)
Modified:
trunk/funcs/func_devstate.c
Modified: trunk/funcs/func_devstate.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_devstate.c?view=diff&rev=81784&r1=81783&r2=81784
==============================================================================
--- trunk/funcs/func_devstate.c (original)
+++ trunk/funcs/func_devstate.c Thu Sep 6 15:27:26 2007
@@ -58,12 +58,12 @@
size_t len = strlen("Custom:");
if (strncasecmp(data, "Custom:", len)) {
- ast_log(LOG_WARNING, "The DEVSTATE function can only be used to set 'Custom:' device state!\n");
+ ast_log(LOG_WARNING, "The DEVICE_STATE function can only be used to set 'Custom:' device state!\n");
return -1;
}
data += len;
if (ast_strlen_zero(data)) {
- ast_log(LOG_WARNING, "DEVSTATE function called with no custom device name!\n");
+ ast_log(LOG_WARNING, "DEVICE_STATE function called with no custom device name!\n");
return -1;
}
@@ -139,7 +139,7 @@
e->usage =
"Usage: funcdevstate list\n"
" List all custom device states that have been set by using\n"
- " the DEVSTATE dialplan function.\n";
+ " the DEVICE_STATE dialplan function.\n";
return NULL;
case CLI_GENERATE:
return NULL;
@@ -178,19 +178,19 @@
};
static struct ast_custom_function devstate_function = {
- .name = "DEVSTATE",
+ .name = "DEVICE_STATE",
.synopsis = "Get or Set a device state",
- .syntax = "DEVSTATE(device)",
+ .syntax = "DEVICE_STATE(device)",
.desc =
- " The DEVSTATE function can be used to retrieve the device state from any\n"
+ " The DEVICE_STATE function can be used to retrieve the device state from any\n"
"device state provider. For example:\n"
- " NoOp(SIP/mypeer has state ${DEVSTATE(SIP/mypeer)})\n"
- " NoOp(Conference number 1234 has state ${DEVSTATE(MeetMe:1234)})\n"
+ " NoOp(SIP/mypeer has state ${DEVICE_STATE(SIP/mypeer)})\n"
+ " NoOp(Conference number 1234 has state ${DEVICE_STATE(MeetMe:1234)})\n"
"\n"
- " The DEVSTATE function can also be used to set custom device state from\n"
+ " The DEVICE_STATE function can also be used to set custom device state from\n"
"the dialplan. The \"Custom:\" prefix must be used. For example:\n"
- " Set(DEVSTATE(Custom:lamp1)=BUSY)\n"
- " Set(DEVSTATE(Custom:lamp2)=NOT_INUSE)\n"
+ " Set(DEVICE_STATE(Custom:lamp1)=BUSY)\n"
+ " Set(DEVICE_STATE(Custom:lamp2)=NOT_INUSE)\n"
"You can subscribe to the status of a custom device state using a hint in\n"
"the dialplan:\n"
" exten => 1234,hint,Custom:lamp1\n"
More information about the svn-commits
mailing list