aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/cli.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-13 22:02:20 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-13 22:02:20 +0000
commitbb6564f8e744f7c8b28ba9a03b3f8f852952b5eb (patch)
tree6c0ae108c47a878e9cc329ef2c330982e02b80a3 /include/asterisk/cli.h
parent76f1766c9ff8e9d1c5c9e094b21ef880379b858e (diff)
This introduces a new dialplan function, DEVSTATE, which allows you to do some
pretty cool things. First, you can get the device state of anything in the dialplan: NoOp(SIP/mypeer has state ${DEVSTATE(SIP/mypeer)}) NoOp(The conference room 1234 has state ${DEVSTATE(MeetMe:1234)}) Most importantly, this allows you to create custom device states so you can control phone lamps directly from the dialplan. Set(DEVSTATE(Custom:mycustomlamp)=BUSY) ... exten => mycustomlamp,hint,Custom:mycustomlamp git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54261 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/cli.h')
-rw-r--r--include/asterisk/cli.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h
index 43a900811..9214a7d63 100644
--- a/include/asterisk/cli.h
+++ b/include/asterisk/cli.h
@@ -235,7 +235,7 @@ int ast_cli_register(struct ast_cli_entry *e);
* \param e pointer to first cli entry to register
* \param len number of entries to register
*/
-void ast_cli_register_multiple(struct ast_cli_entry *e, int len);
+int ast_cli_register_multiple(struct ast_cli_entry *e, int len);
/*! \brief Unregisters a command or an array of commands
*
@@ -250,7 +250,7 @@ int ast_cli_unregister(struct ast_cli_entry *e);
* \param e pointer to first cli entry to unregister
* \param len number of entries to unregister
*/
-void ast_cli_unregister_multiple(struct ast_cli_entry *e, int len);
+int ast_cli_unregister_multiple(struct ast_cli_entry *e, int len);
/*! \brief Readline madness
* Useful for readline, that's about it