[asterisk-commits] junky: branch junky/cli-tls r213087 - /team/junky/cli-tls/main/logger.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Aug 19 13:40:52 CDT 2009
Author: junky
Date: Wed Aug 19 13:40:49 2009
New Revision: 213087
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=213087
Log:
change all AMI Filter* commands to CliFilter* .
suggestion proposed by oej.
Modified:
team/junky/cli-tls/main/logger.c
Modified: team/junky/cli-tls/main/logger.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/junky/cli-tls/main/logger.c?view=diff&rev=213087&r1=213086&r2=213087
==============================================================================
--- team/junky/cli-tls/main/logger.c (original)
+++ team/junky/cli-tls/main/logger.c Wed Aug 19 13:40:49 2009
@@ -63,7 +63,7 @@
#endif
/*** DOCUMENTATION
- <manager name="FilterAdd" language="en_US">
+ <manager name="CliFilterAdd" language="en_US">
<synopsis>
Add a CLI Filter to the current list of active filters.
</synopsis>
@@ -82,7 +82,7 @@
For false returns, that filter is not added to the list</para>
</description>
</manager>
- <manager name="FilterRemove" language="en_US">
+ <manager name="CliFilterRemove" language="en_US">
<synopsis>
Remove a CLI filter from the current list of active filters
</synopsis>
@@ -97,7 +97,7 @@
For false returns, that filter is not removed from the list</para>
</description>
</manager>
- <manager name="FilterShow" language="en_US">
+ <manager name="CliFilterShow" language="en_US">
<synopsis>
List all active filters
</synopsis>
@@ -106,7 +106,7 @@
<para>List all CLI filters.</para>
</description>
</manager>
- <manager name="FilterReset" language="en_US">
+ <manager name="CliFilterReset" language="en_US">
<synopsis>
Delete all active filters and return to normal mode.
</synopsis>
@@ -1171,12 +1171,12 @@
}
if (ast_strlen_zero(name)) {
- astman_send_error(s, m, "FilterAdd must provide a name.");
+ astman_send_error(s, m, "CliFilterAdd must provide a name.");
return -1;
}
if (ast_strlen_zero(type)) {
- astman_send_error(s, m, "FilterAdd must provide a type.");
+ astman_send_error(s, m, "CliFilterAdd must provide a type.");
return -1;
}
@@ -1199,7 +1199,7 @@
}
if (ast_strlen_zero(name)) {
- astman_send_error(s, m, "FilterRemove must provide a name.");
+ astman_send_error(s, m, "CliFilterRemove must provide a name.");
return -1;
}
count = ast_filter_remove(name);
@@ -1355,10 +1355,10 @@
ast_queue_log("NONE", "NONE", "NONE", "QUEUESTART", "%s", "");
}
- res |= ast_manager_register_xml("FilterAdd",EVENT_FLAG_COMMAND, action_filter_add);
- res |= ast_manager_register_xml("FilterRemove", EVENT_FLAG_COMMAND, action_filter_remove);
- res |= ast_manager_register_xml("FilterShow", EVENT_FLAG_COMMAND, action_filter_show);
- res |= ast_manager_register_xml("FilterReset", EVENT_FLAG_COMMAND, action_filter_reset);
+ res |= ast_manager_register_xml("CliFilterAdd",EVENT_FLAG_COMMAND, action_filter_add);
+ res |= ast_manager_register_xml("CliFilterRemove", EVENT_FLAG_COMMAND, action_filter_remove);
+ res |= ast_manager_register_xml("CliFilterShow", EVENT_FLAG_COMMAND, action_filter_show);
+ res |= ast_manager_register_xml("CliFilterReset", EVENT_FLAG_COMMAND, action_filter_reset);
return res;
}
More information about the asterisk-commits
mailing list