]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't...
authorJason Parker <jparker@digium.com>
Mon, 22 Oct 2007 20:05:18 +0000 (20:05 +0000)
committerJason Parker <jparker@digium.com>
Mon, 22 Oct 2007 20:05:18 +0000 (20:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

64 files changed:
apps/app_meetme.c
apps/app_minivm.c
apps/app_mixmonitor.c
apps/app_osplookup.c
apps/app_playback.c
apps/app_queue.c
apps/app_rpt.c
apps/app_voicemail.c
channels/chan_agent.c
channels/chan_alsa.c
channels/chan_features.c
channels/chan_gtalk.c
channels/chan_h323.c
channels/chan_iax2.c
channels/chan_jingle.c
channels/chan_local.c
channels/chan_mgcp.c
channels/chan_misdn.c
channels/chan_oss.c
channels/chan_sip.c
channels/chan_skinny.c
channels/chan_usbradio.c
channels/chan_zap.c
channels/iax2-provision.c
codecs/codec_zap.c
funcs/func_devstate.c
include/asterisk/cli.h
main/asterisk.c
main/astmm.c
main/astobj2.c
main/cdr.c
main/channel.c
main/cli.c
main/config.c
main/db.c
main/dnsmgr.c
main/file.c
main/frame.c
main/http.c
main/image.c
main/logger.c
main/manager.c
main/pbx.c
main/rtp.c
main/threadstorage.c
main/translate.c
main/udptl.c
main/utils.c
pbx/pbx_ael.c
pbx/pbx_config.c
pbx/pbx_dundi.c
res/res_agi.c
res/res_clioriginate.c
res/res_config_pgsql.c
res/res_config_sqlite.c
res/res_convert.c
res/res_crypto.c
res/res_features.c
res/res_indications.c
res/res_jabber.c
res/res_limit.c
res/res_musiconhold.c
res/res_odbc.c
res/res_realtime.c

index 56a3f6176e1df96620873a444353a9aa5018433c..e5d5be469f18451c22d26f1e6e8b49c98d680eee 100644 (file)
@@ -1244,9 +1244,9 @@ static char *sla_show_stations(struct ast_cli_entry *e, int cmd, struct ast_cli_
 }
 
 static struct ast_cli_entry cli_meetme[] = {
-       AST_CLI(meetme_cmd, "Execute a command on a conference or conferee"),
-       AST_CLI(sla_show_trunks, "Show SLA Trunks"),
-       AST_CLI(sla_show_stations, "Show SLA Stations"),
+       AST_CLI_DEFINE(meetme_cmd, "Execute a command on a conference or conferee"),
+       AST_CLI_DEFINE(sla_show_trunks, "Show SLA Trunks"),
+       AST_CLI_DEFINE(sla_show_stations, "Show SLA Stations"),
 };
 
 static void conf_flush(int fd, struct ast_channel *chan)
index 462b7e7b7feb5f082d06c5640f42c8325d95eaae..bb352dc3fadd3f84d9d3776b3982969644848e2b 100644 (file)
@@ -2991,12 +2991,12 @@ static int minivm_counter_func_write(struct ast_channel *chan, const char *cmd,
 
 /*! \brief CLI commands for Mini-voicemail */
 static struct ast_cli_entry cli_minivm[] = {
-       AST_CLI(handle_minivm_show_users, "List defined mini-voicemail boxes"),
-       AST_CLI(handle_minivm_show_zones, "List zone message formats"),
-       AST_CLI(handle_minivm_list_templates, "List message templates"),        
-       AST_CLI(handle_minivm_reload, "Reload Mini-voicemail configuration"),
-       AST_CLI(handle_minivm_show_stats, "Show some mini-voicemail statistics"),
-       AST_CLI(handle_minivm_show_settings, "Show mini-voicemail general settings"),
+       AST_CLI_DEFINE(handle_minivm_show_users, "List defined mini-voicemail boxes"),
+       AST_CLI_DEFINE(handle_minivm_show_zones, "List zone message formats"),
+       AST_CLI_DEFINE(handle_minivm_list_templates, "List message templates"), 
+       AST_CLI_DEFINE(handle_minivm_reload, "Reload Mini-voicemail configuration"),
+       AST_CLI_DEFINE(handle_minivm_show_stats, "Show some mini-voicemail statistics"),
+       AST_CLI_DEFINE(handle_minivm_show_settings, "Show mini-voicemail general settings"),
 };
 
 static struct ast_custom_function minivm_counter_function = {
index f328aadd1b8821b39224a311aee981d834422712..6db3b02f0e1d6e7f69bf14285a4aeab8c6ce4f23 100644 (file)
@@ -399,7 +399,7 @@ static char *handle_cli_mixmonitor(struct ast_cli_entry *e, int cmd, struct ast_
 }
 
 static struct ast_cli_entry cli_mixmonitor[] = {
-       AST_CLI(handle_cli_mixmonitor, "Execute a MixMonitor command")
+       AST_CLI_DEFINE(handle_cli_mixmonitor, "Execute a MixMonitor command")
 };
 
 static int unload_module(void)
index 5455e0f08551267d49dbcc2122138a59cc313220..aa65257e6bb1658389d42601d26a7de0c301c8f4 100644 (file)
@@ -2000,7 +2000,7 @@ static const char* descrip4 =
 "              SUCCESS | FAILED | ERROR \n";
 
 static struct ast_cli_entry cli_osp[] = {
-       AST_CLI(handle_cli_osp_show, "Displays OSF information")
+       AST_CLI_DEFINE(handle_cli_osp_show, "Displays OSF information")
 };
 
 static int load_module(void)
index d23235dfaf2edc62771d5b002ea333e11768c918..182b7eac74c2bdee26a95e7290a8ebb80f8b329c 100644 (file)
@@ -395,9 +395,9 @@ static char *__say_cli_init(struct ast_cli_entry *e, int cmd, struct ast_cli_arg
 }
 
 static struct ast_cli_entry cli_playback[] = {
-       AST_CLI(__say_cli_init, "Set or show the say mode"),
-       AST_CLI(__say_cli_init, "Set the say mode"),
-       AST_CLI(__say_cli_init, "Set the say mode"),
+       AST_CLI_DEFINE(__say_cli_init, "Set or show the say mode"),
+       AST_CLI_DEFINE(__say_cli_init, "Set the say mode"),
+       AST_CLI_DEFINE(__say_cli_init, "Set the say mode"),
 };
 
 static int playback_exec(struct ast_channel *chan, void *data)
index 96fc2bd5d29e0e7f35101ce193445aa6c186f927..87345b01ce2e1d304ccb45b0a56c06e3be8e663f 100644 (file)
@@ -5004,10 +5004,10 @@ static const char qum_cmd_usage[] =
 "Usage: queue unpause member <channel> in <queue> reason <reason>\n";
 
 static struct ast_cli_entry cli_queue[] = {
-       AST_CLI(queue_show, "Show status of a specified queue"),
-       AST_CLI(handle_queue_add_member, "Add a channel to a specified queue"),
-       AST_CLI(handle_queue_remove_member, "Removes a channel from a specified queue"),
-       AST_CLI(handle_queue_pause_member, "Pause or unpause a queue member"),
+       AST_CLI_DEFINE(queue_show, "Show status of a specified queue"),
+       AST_CLI_DEFINE(handle_queue_add_member, "Add a channel to a specified queue"),
+       AST_CLI_DEFINE(handle_queue_remove_member, "Removes a channel from a specified queue"),
+       AST_CLI_DEFINE(handle_queue_pause_member, "Pause or unpause a queue member"),
 };
 
 static int unload_module(void)
index 7ea02ac0f62ef09aee0bb9c34a4c3c7fb08df882..7d63b961ecf861a4c4394929320da3802693cdfb 100644 (file)
@@ -706,12 +706,12 @@ static char *handle_cli_rpt_reload(struct ast_cli_entry *e, int cmd, struct ast_
 static char *handle_cli_rpt_restart(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
 
 static struct ast_cli_entry cli_rpt[] = {
-       AST_CLI(handle_cli_rpt_debug_level, "Enable app_rpt debuggin"),
-       AST_CLI(handle_cli_rpt_dump,        "Dump app_rpt structs for debugging"),
-       AST_CLI(handle_cli_rpt_stats,       "Dump node statistics"),
-       AST_CLI(handle_cli_rpt_lstats,      "Dump link statistics"),
-       AST_CLI(handle_cli_rpt_reload,      "Reload app_rpt config"),
-       AST_CLI(handle_cli_rpt_restart,     "Restart app_rpt")
+       AST_CLI_DEFINE(handle_cli_rpt_debug_level, "Enable app_rpt debuggin"),
+       AST_CLI_DEFINE(handle_cli_rpt_dump,        "Dump app_rpt structs for debugging"),
+       AST_CLI_DEFINE(handle_cli_rpt_stats,       "Dump node statistics"),
+       AST_CLI_DEFINE(handle_cli_rpt_lstats,      "Dump link statistics"),
+       AST_CLI_DEFINE(handle_cli_rpt_reload,      "Reload app_rpt config"),
+       AST_CLI_DEFINE(handle_cli_rpt_restart,     "Restart app_rpt")
 };
 
 /*
index 525342ea5e231553a2aa0e7984ffa5231da6ecfa..6859859e33d669fab7d6d6f2cb5bdf060c9fa044 100644 (file)
@@ -7735,8 +7735,8 @@ static char *handle_voicemail_show_zones(struct ast_cli_entry *e, int cmd, struc
 }
 
 static struct ast_cli_entry cli_voicemail[] = {
-       AST_CLI(handle_voicemail_show_users, "List defined voicemail boxes"),
-       AST_CLI(handle_voicemail_show_zones, "List zone message formats"),
+       AST_CLI_DEFINE(handle_voicemail_show_users, "List defined voicemail boxes"),
+       AST_CLI_DEFINE(handle_voicemail_show_zones, "List zone message formats"),
 };
 
 static void poll_subscribed_mailboxes(void)
index 97f0c46be5da03fc92620b4557d3375ab522e45d..8f103ae371566027242cb7fa33a889d40717786f 100644 (file)
@@ -1765,9 +1765,9 @@ static const char agent_logoff_usage[] =
 "       If 'soft' is specified, do not hangup existing calls.\n";
 
 static struct ast_cli_entry cli_agents[] = {
-       AST_CLI(agents_show, "Show status of agents"),
-       AST_CLI(agents_show_online, "Show all online agents"),
-       AST_CLI(agent_logoff_cmd, "Sets an agent offline"),
+       AST_CLI_DEFINE(agents_show, "Show status of agents"),
+       AST_CLI_DEFINE(agents_show_online, "Show all online agents"),
+       AST_CLI_DEFINE(agent_logoff_cmd, "Sets an agent offline"),
 };
 
 /*!
index a257bffccb3700df6cc5a091b38a7eec169163ee..fefde1eb1f39e1fdef807c9cdaf8813a91bce30a 100644 (file)
@@ -1096,11 +1096,11 @@ static char *console_dial(struct ast_cli_entry *e, int cmd, struct ast_cli_args
 }
 
 static struct ast_cli_entry cli_alsa[] = {
-       AST_CLI(console_answer, "Answer an incoming console call"),
-       AST_CLI(console_hangup, "Hangup a call on the console"),
-       AST_CLI(console_dial, "Dial an extension on the console"),
-       AST_CLI(console_sendtext, "Send text to the remote device"),
-       AST_CLI(console_autoanswer, "Sets/displays autoanswer"),
+       AST_CLI_DEFINE(console_answer, "Answer an incoming console call"),
+       AST_CLI_DEFINE(console_hangup, "Hangup a call on the console"),
+       AST_CLI_DEFINE(console_dial, "Dial an extension on the console"),
+       AST_CLI_DEFINE(console_sendtext, "Send text to the remote device"),
+       AST_CLI_DEFINE(console_autoanswer, "Sets/displays autoanswer"),
 };
 
 static int load_module(void)
index 8a563290bb1970e51250375d854f4b4c5e90a60d..4ef9d4125c5405018b4a6ff220227f15875249d7 100644 (file)
@@ -543,7 +543,7 @@ static char *features_show(struct ast_cli_entry *e, int cmd, struct ast_cli_args
 }
 
 static struct ast_cli_entry cli_features[] = {
-       AST_CLI(features_show, "List status of feature channels"),
+       AST_CLI_DEFINE(features_show, "List status of feature channels"),
 };
 
 static int load_module(void)
index ae5cdb74d425d9921c25ad8760fbb9a97d2d9b23..f1790230f0dc460d5e5ba441b84d21f93d88a8a4 100644 (file)
@@ -235,8 +235,8 @@ static struct ast_rtp_protocol gtalk_rtp = {
 };
 
 static struct ast_cli_entry gtalk_cli[] = {
-       AST_CLI(gtalk_do_reload, "Reload GoogleTalk configuration"),
-       AST_CLI(gtalk_show_channels, "Show GoogleTalk channels"),
+       AST_CLI_DEFINE(gtalk_do_reload, "Reload GoogleTalk configuration"),
+       AST_CLI_DEFINE(gtalk_show_channels, "Show GoogleTalk channels"),
 };
 
 static char externip[16];
index a0f7c961d71907c75b0bd5417bcc84f476357d96..da324cf6df6e12fc529f47dbdd4deb8283ceb570 100644 (file)
@@ -2744,11 +2744,11 @@ static char *handle_cli_h323_show_tokens(struct ast_cli_entry *e, int cmd, struc
 }
 
 static struct ast_cli_entry cli_h323[] = {
-       AST_CLI(handle_cli_h323_set_trace,   "Enable/Disable H.323 Stack Tracing"),
-       AST_CLI(handle_cli_h323_set_debug,   "Enable/Disable H.323 Debugging"),
-       AST_CLI(handle_cli_h323_cycle_gk,    "Manually re-register with the Gatekeper"),
-       AST_CLI(handle_cli_h323_hangup,      "Manually try to hang up a call"),
-       AST_CLI(handle_cli_h323_show_tokens, "Show all active call tokens"),
+       AST_CLI_DEFINE(handle_cli_h323_set_trace,   "Enable/Disable H.323 Stack Tracing"),
+       AST_CLI_DEFINE(handle_cli_h323_set_debug,   "Enable/Disable H.323 Debugging"),
+       AST_CLI_DEFINE(handle_cli_h323_cycle_gk,    "Manually re-register with the Gatekeper"),
+       AST_CLI_DEFINE(handle_cli_h323_hangup,      "Manually try to hang up a call"),
+       AST_CLI_DEFINE(handle_cli_h323_show_tokens, "Show all active call tokens"),
 };
 
 static int reload_config(int is_reload)
@@ -3078,7 +3078,7 @@ static int reload(void)
 }
 
 static struct ast_cli_entry cli_h323_reload =
-       AST_CLI(handle_cli_h323_reload, "Reload H.323 configuration");
+       AST_CLI_DEFINE(handle_cli_h323_reload, "Reload H.323 configuration");
 
 static enum ast_rtp_get_result oh323_get_rtp_peer(struct ast_channel *chan, struct ast_rtp **rtp)
 {
index d0b68f13b74e7db168a91c3de21ee60cb3caa7c8..6b456f626f5e9c1d4b3e02dd336baa40f6c32d41 100644 (file)
@@ -11305,32 +11305,32 @@ static struct ast_switch iax2_switch =
 */
 
 static struct ast_cli_entry cli_iax2[] = {
-       AST_CLI(handle_cli_iax2_provision,           "Provision an IAX device"),
-       AST_CLI(handle_cli_iax2_prune_realtime,      "Prune a cached realtime lookup"),
-       AST_CLI(handle_cli_iax2_reload,              "Reload IAX configuration"),
-       AST_CLI(handle_cli_iax2_set_mtu,             "Set the IAX systemwide trunking MTU"),
-       AST_CLI(handle_cli_iax2_set_debug,           "Enable IAX debugging"),
-       AST_CLI(handle_cli_iax2_set_debug_trunk,     "Enable IAX trunk debugging"),
-       AST_CLI(handle_cli_iax2_set_debug_jb,        "Enable IAX jitterbuffer debugging"),
-       AST_CLI(handle_cli_iax2_set_debug_off,       "Disable IAX debugging"),
-       AST_CLI(handle_cli_iax2_set_debug_trunk_off, "Disable IAX trunk debugging"),
-       AST_CLI(handle_cli_iax2_set_debug_jb_off,    "Disable IAX jitterbuffer debugging"),
-       AST_CLI(handle_cli_iax2_show_cache,          "Display IAX cached dialplan"),
-       AST_CLI(handle_cli_iax2_show_channels,       "List active IAX channels"),
-       AST_CLI(handle_cli_iax2_show_firmware,       "List available IAX firmware"),
-       AST_CLI(handle_cli_iax2_show_netstats,       "List active IAX channel netstats"),
-       AST_CLI(handle_cli_iax2_show_peer,           "Show details on specific IAX peer"),
-       AST_CLI(handle_cli_iax2_show_peers,          "List defined IAX peers"),
-       AST_CLI(handle_cli_iax2_show_registry,       "Display IAX registration status"),
-       AST_CLI(handle_cli_iax2_show_stats,          "Display IAX statistics"),
-       AST_CLI(handle_cli_iax2_show_threads,        "Display IAX helper thread info"),
-       AST_CLI(handle_cli_iax2_show_users,          "List defined IAX users"),
-       AST_CLI(handle_cli_iax2_test_losspct,        "Set IAX2 incoming frame loss percentage"),
-       AST_CLI(handle_cli_iax2_unregister,          "Unregister (force expiration) an IAX2 peer from the registry"),
+       AST_CLI_DEFINE(handle_cli_iax2_provision,           "Provision an IAX device"),
+       AST_CLI_DEFINE(handle_cli_iax2_prune_realtime,      "Prune a cached realtime lookup"),
+       AST_CLI_DEFINE(handle_cli_iax2_reload,              "Reload IAX configuration"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_mtu,             "Set the IAX systemwide trunking MTU"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_debug,           "Enable IAX debugging"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_debug_trunk,     "Enable IAX trunk debugging"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_debug_jb,        "Enable IAX jitterbuffer debugging"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_debug_off,       "Disable IAX debugging"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_debug_trunk_off, "Disable IAX trunk debugging"),
+       AST_CLI_DEFINE(handle_cli_iax2_set_debug_jb_off,    "Disable IAX jitterbuffer debugging"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_cache,          "Display IAX cached dialplan"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_channels,       "List active IAX channels"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_firmware,       "List available IAX firmware"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_netstats,       "List active IAX channel netstats"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_peer,           "Show details on specific IAX peer"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_peers,          "List defined IAX peers"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_registry,       "Display IAX registration status"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_stats,          "Display IAX statistics"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_threads,        "Display IAX helper thread info"),
+       AST_CLI_DEFINE(handle_cli_iax2_show_users,          "List defined IAX users"),
+       AST_CLI_DEFINE(handle_cli_iax2_test_losspct,        "Set IAX2 incoming frame loss percentage"),
+       AST_CLI_DEFINE(handle_cli_iax2_unregister,          "Unregister (force expiration) an IAX2 peer from the registry"),
 #ifdef IAXTESTS
-       AST_CLI(handle_cli_iax2_test_jitter,         "Simulates jitter for testing"),
-       AST_CLI(handle_cli_iax2_test_late,           "Test the receipt of a late frame"),
-       AST_CLI(handle_cli_iax2_test_resync,         "Test a resync in received timestamps"),
+       AST_CLI_DEFINE(handle_cli_iax2_test_jitter,         "Simulates jitter for testing"),
+       AST_CLI_DEFINE(handle_cli_iax2_test_late,           "Test the receipt of a late frame"),
+       AST_CLI_DEFINE(handle_cli_iax2_test_resync,         "Test a resync in received timestamps"),
 #endif /* IAXTESTS */
 };
 
index 2dc74eafd99a186686a723008939512d8b6dce98..fecdff937de6cb19db58ded652343f5001bf976f 100644 (file)
@@ -236,8 +236,8 @@ static struct ast_rtp_protocol jingle_rtp = {
 };
 
 static struct ast_cli_entry jingle_cli[] = {
-       AST_CLI(jingle_do_reload, "Reload Jingle configuration"),
-       AST_CLI(jingle_show_channels, "Show Jingle channels"),
+       AST_CLI_DEFINE(jingle_do_reload, "Reload Jingle configuration"),
+       AST_CLI_DEFINE(jingle_show_channels, "Show Jingle channels"),
 };
 
 
index bfe19f4cca8d4ede0f1e1192f2a35cba500ada53..3aa46cf6e5f39efe77ad1a9777130ac25e38cad2 100644 (file)
@@ -723,7 +723,7 @@ static char *locals_show(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
 }
 
 static struct ast_cli_entry cli_local[] = {
-       AST_CLI(locals_show, "List status of local channels"),
+       AST_CLI_DEFINE(locals_show, "List status of local channels"),
 };
 
 /*! \brief Load module into PBX, register channel */
index fc8b54f55bc005436e952ceff00e701f07f2c372..9eb0fa112ed8ab67762131398607c66f37d3414d 100644 (file)
@@ -1183,11 +1183,11 @@ static char *handle_mgcp_set_debug_off(struct ast_cli_entry *e, int cmd, struct
 }
 
 static struct ast_cli_entry cli_mgcp[] = {
-       AST_CLI(handle_mgcp_audit_endpoint, "Audit specified MGCP endpoint"),
-       AST_CLI(handle_mgcp_show_endpoints, "List defined MGCP endpoints"),
-       AST_CLI(handle_mgcp_set_debug, "Enable MGCP debugging"),
-       AST_CLI(handle_mgcp_set_debug_off, "Disable MGCP debugging"),
-       AST_CLI(mgcp_reload, "Reload MGCP configuration"),
+       AST_CLI_DEFINE(handle_mgcp_audit_endpoint, "Audit specified MGCP endpoint"),
+       AST_CLI_DEFINE(handle_mgcp_show_endpoints, "List defined MGCP endpoints"),
+       AST_CLI_DEFINE(handle_mgcp_set_debug, "Enable MGCP debugging"),
+       AST_CLI_DEFINE(handle_mgcp_set_debug_off, "Disable MGCP debugging"),
+       AST_CLI_DEFINE(mgcp_reload, "Reload MGCP configuration"),
 };
 
 static int mgcp_answer(struct ast_channel *ast)
index 6dd537a8296e2f4c6ad3a5e314c00b338522efbe..55f41d928b8aa8553c4be8b390f9a8df96f3beb3 100644 (file)
@@ -1762,27 +1762,27 @@ static char *complete_show_config(struct ast_cli_args *a)
 }
 
 static struct ast_cli_entry chan_misdn_clis[] = {
-       AST_CLI(handle_cli_misdn_port_block,        "Block the given port"),
-       AST_CLI(handle_cli_misdn_port_down,         "Try to deacivate the L1 on the given port"),
-       AST_CLI(handle_cli_misdn_port_unblock,      "Unblock the given port"),
-       AST_CLI(handle_cli_misdn_port_up,           "Try to establish L1 on the given port"),
-       AST_CLI(handle_cli_misdn_reload,            "Reload internal mISDN config, read from the config file"),
-       AST_CLI(handle_cli_misdn_restart_pid,       "Restart the given pid"),
-       AST_CLI(handle_cli_misdn_restart_port,      "Restart the given port"),
-       AST_CLI(handle_cli_misdn_show_channel,      "Show an internal mISDN channel"),
-       AST_CLI(handle_cli_misdn_show_channels,     "Show the internal mISDN channel list"),
-       AST_CLI(handle_cli_misdn_show_config,       "Show internal mISDN config, read from the config file"),
-       AST_CLI(handle_cli_misdn_show_port,         "Show detailed information for given port"),
-       AST_CLI(handle_cli_misdn_show_ports_stats,  "Show mISDNs channel's call statistics per port"),
-       AST_CLI(handle_cli_misdn_show_stacks,       "Show internal mISDN stack_list"),
-       AST_CLI(handle_cli_misdn_send_facility,     "Sends a Facility Message to the mISDN Channel"),
-       AST_CLI(handle_cli_misdn_send_digit,        "Send DTMF digit to mISDN Channel"),
-       AST_CLI(handle_cli_misdn_send_display,      "Send Text to mISDN Channel"),
-       AST_CLI(handle_cli_misdn_send_restart,      "Send a restart for every bchannel on the given port"),
-       AST_CLI(handle_cli_misdn_set_crypt_debug,   "Set CryptDebuglevel of chan_misdn, at the moment, level={1,2}"),
-       AST_CLI(handle_cli_misdn_set_debug,         "Set Debuglevel of chan_misdn"),
-       AST_CLI(handle_cli_misdn_set_tics,          "???"),
-       AST_CLI(handle_cli_misdn_toggle_echocancel, "Toggle EchoCancel on mISDN Channel"),
+       AST_CLI_DEFINE(handle_cli_misdn_port_block,        "Block the given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_port_down,         "Try to deacivate the L1 on the given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_port_unblock,      "Unblock the given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_port_up,           "Try to establish L1 on the given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_reload,            "Reload internal mISDN config, read from the config file"),
+       AST_CLI_DEFINE(handle_cli_misdn_restart_pid,       "Restart the given pid"),
+       AST_CLI_DEFINE(handle_cli_misdn_restart_port,      "Restart the given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_show_channel,      "Show an internal mISDN channel"),
+       AST_CLI_DEFINE(handle_cli_misdn_show_channels,     "Show the internal mISDN channel list"),
+       AST_CLI_DEFINE(handle_cli_misdn_show_config,       "Show internal mISDN config, read from the config file"),
+       AST_CLI_DEFINE(handle_cli_misdn_show_port,         "Show detailed information for given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_show_ports_stats,  "Show mISDNs channel's call statistics per port"),
+       AST_CLI_DEFINE(handle_cli_misdn_show_stacks,       "Show internal mISDN stack_list"),
+       AST_CLI_DEFINE(handle_cli_misdn_send_facility,     "Sends a Facility Message to the mISDN Channel"),
+       AST_CLI_DEFINE(handle_cli_misdn_send_digit,        "Send DTMF digit to mISDN Channel"),
+       AST_CLI_DEFINE(handle_cli_misdn_send_display,      "Send Text to mISDN Channel"),
+       AST_CLI_DEFINE(handle_cli_misdn_send_restart,      "Send a restart for every bchannel on the given port"),
+       AST_CLI_DEFINE(handle_cli_misdn_set_crypt_debug,   "Set CryptDebuglevel of chan_misdn, at the moment, level={1,2}"),
+       AST_CLI_DEFINE(handle_cli_misdn_set_debug,         "Set Debuglevel of chan_misdn"),
+       AST_CLI_DEFINE(handle_cli_misdn_set_tics,          "???"),
+       AST_CLI_DEFINE(handle_cli_misdn_toggle_echocancel, "Toggle EchoCancel on mISDN Channel"),
 };
 
 static int update_config(struct chan_list *ch, int orig) 
index bd89b03aa4dfd30672e490da06e485defe34e67b..1caf1a378128f2befab8bede5652cc7c63331f0e 100644 (file)
@@ -1455,16 +1455,16 @@ static char *console_boost(struct ast_cli_entry *e, int cmd, struct ast_cli_args
 }
 
 static struct ast_cli_entry cli_oss[] = {
-       AST_CLI(console_answer, "Answer an incoming console call"),
-       AST_CLI(console_hangup, "Hangup a call on the console"),
-       AST_CLI(console_flash, "Flash a call on the console"),
-       AST_CLI(console_dial, "Dial an extension on the console"),
-       AST_CLI(console_mute, "Disable/Enable mic input"),
-       AST_CLI(console_transfer, "Transfer a call to a different extension"),  
-       AST_CLI(console_sendtext, "Send text to the remote device"),
-       AST_CLI(console_autoanswer, "Sets/displays autoanswer"),
-       AST_CLI(console_boost, "Sets/displays mic boost in dB"),
-       AST_CLI(console_active, "Sets/displays active console"),
+       AST_CLI_DEFINE(console_answer, "Answer an incoming console call"),
+       AST_CLI_DEFINE(console_hangup, "Hangup a call on the console"),
+       AST_CLI_DEFINE(console_flash, "Flash a call on the console"),
+       AST_CLI_DEFINE(console_dial, "Dial an extension on the console"),
+       AST_CLI_DEFINE(console_mute, "Disable/Enable mic input"),
+       AST_CLI_DEFINE(console_transfer, "Transfer a call to a different extension"),   
+       AST_CLI_DEFINE(console_sendtext, "Send text to the remote device"),
+       AST_CLI_DEFINE(console_autoanswer, "Sets/displays autoanswer"),
+       AST_CLI_DEFINE(console_boost, "Sets/displays mic boost in dB"),
+       AST_CLI_DEFINE(console_active, "Sets/displays active console"),
 };
 
 /*!
index 1b41379dd4082b1059a8f81e178125510a831a12..f0187f8d74eaf4c7ac0dcfcb92252bed6ecc78cb 100644 (file)
@@ -18947,25 +18947,25 @@ static int reload(void)
 
 /*! \brief SIP Cli commands definition */
 static struct ast_cli_entry cli_sip[] = {
-       AST_CLI(sip_show_channels, "List active SIP channels/subscriptions"),
-       AST_CLI(sip_show_domains, "List our local SIP domains."),
-       AST_CLI(sip_show_inuse, "List all inuse/limits"),
-       AST_CLI(sip_show_objects, "List all SIP object allocations"),
-       AST_CLI(sip_show_peers, "List defined SIP peers"),
-       AST_CLI(sip_show_registry, "List SIP registration status"),
-       AST_CLI(sip_unregister, "Unregister (force expiration) a SIP peer from the registery\n"),
-       AST_CLI(sip_show_settings, "Show SIP global settings"),
-       AST_CLI(sip_notify, "Send a notify packet to a SIP peer"),
-       AST_CLI(sip_show_channel, "Show detailed SIP channel info"),
-       AST_CLI(sip_show_history, "Show SIP dialog history"),
-       AST_CLI(sip_show_peer, "Show details on specific SIP peer"),
-       AST_CLI(sip_show_users, "List defined SIP users"),
-       AST_CLI(sip_show_user, "Show details on specific SIP user"),
-       AST_CLI(sip_prune_realtime, "Prune cached Realtime users/peers"),
-       AST_CLI(sip_do_debug, "Enable/Disable SIP debugging"),
-       AST_CLI(sip_do_history, "Enable SIP history"),
-       AST_CLI(sip_no_history, "Disable SIP history"),
-       AST_CLI(sip_reload, "Reload SIP configuration"),
+       AST_CLI_DEFINE(sip_show_channels, "List active SIP channels/subscriptions"),
+       AST_CLI_DEFINE(sip_show_domains, "List our local SIP domains."),
+       AST_CLI_DEFINE(sip_show_inuse, "List all inuse/limits"),
+       AST_CLI_DEFINE(sip_show_objects, "List all SIP object allocations"),
+       AST_CLI_DEFINE(sip_show_peers, "List defined SIP peers"),
+       AST_CLI_DEFINE(sip_show_registry, "List SIP registration status"),
+       AST_CLI_DEFINE(sip_unregister, "Unregister (force expiration) a SIP peer from the registery\n"),
+       AST_CLI_DEFINE(sip_show_settings, "Show SIP global settings"),
+       AST_CLI_DEFINE(sip_notify, "Send a notify packet to a SIP peer"),
+       AST_CLI_DEFINE(sip_show_channel, "Show detailed SIP channel info"),
+       AST_CLI_DEFINE(sip_show_history, "Show SIP dialog history"),
+       AST_CLI_DEFINE(sip_show_peer, "Show details on specific SIP peer"),
+       AST_CLI_DEFINE(sip_show_users, "List defined SIP users"),
+       AST_CLI_DEFINE(sip_show_user, "Show details on specific SIP user"),
+       AST_CLI_DEFINE(sip_prune_realtime, "Prune cached Realtime users/peers"),
+       AST_CLI_DEFINE(sip_do_debug, "Enable/Disable SIP debugging"),
+       AST_CLI_DEFINE(sip_do_history, "Enable SIP history"),
+       AST_CLI_DEFINE(sip_no_history, "Disable SIP history"),
+       AST_CLI_DEFINE(sip_reload, "Reload SIP configuration"),
 };
 
 /*! \brief PBX load module - initialization */
index bbea1291586d7149564d51dbdf42d00be80245aa..86d2a5b95b1106a017a0f583718ed23c3a780949 100644 (file)
@@ -2731,14 +2731,14 @@ static char *handle_skinny_show_settings(struct ast_cli_entry *e, int cmd, struc
 }
 
 static struct ast_cli_entry cli_skinny[] = {
-       AST_CLI(handle_skinny_show_devices, "List defined Skinny devices"),
-       AST_CLI(handle_skinny_show_device, "List Skinny device information"),
-       AST_CLI(handle_skinny_show_lines, "List defined Skinny lines per device"),      
-       AST_CLI(handle_skinny_show_line, "List Skinny line information"),
-       AST_CLI(handle_skinny_show_settings, "List global Skinny settings"),
-       AST_CLI(handle_skinny_set_debug, "Enable Skinny debugging"),
-       AST_CLI(handle_skinny_set_debug_off, "Disable Skinny debugging"),
-       AST_CLI(handle_skinny_reset, "Reset Skinny device(s)"),
+       AST_CLI_DEFINE(handle_skinny_show_devices, "List defined Skinny devices"),
+       AST_CLI_DEFINE(handle_skinny_show_device, "List Skinny device information"),
+       AST_CLI_DEFINE(handle_skinny_show_lines, "List defined Skinny lines per device"),       
+       AST_CLI_DEFINE(handle_skinny_show_line, "List Skinny line information"),
+       AST_CLI_DEFINE(handle_skinny_show_settings, "List global Skinny settings"),
+       AST_CLI_DEFINE(handle_skinny_set_debug, "Enable Skinny debugging"),
+       AST_CLI_DEFINE(handle_skinny_set_debug_off, "Disable Skinny debugging"),
+       AST_CLI_DEFINE(handle_skinny_reset, "Reset Skinny device(s)"),
 };
 
 #if 0
index cbd2fd28f5b5eab1ac4bc56d20ffe86303ac5294..fc77b73e3c2d2cbdc57ef89bc5611c7890e67ed2 100644 (file)
@@ -1923,10 +1923,10 @@ static char *handle_cli_radio_set_debug(struct ast_cli_entry *e, int cmd, struct
 }
 
 static struct ast_cli_entry cli_usbradio[] = {
-       AST_CLI(handle_cli_radio_key,       "Simulate Rx Signal Present"),
-       AST_CLI(handle_cli_radio_unkey,     "Simulate Rx Signal Lusb"),
-       AST_CLI(handle_cli_radio_tune,      "Radio Tune"),
-       AST_CLI(handle_cli_radio_set_debug, "Enable/Disable Radio Debugging"),
+       AST_CLI_DEFINE(handle_cli_radio_key,       "Simulate Rx Signal Present"),
+       AST_CLI_DEFINE(handle_cli_radio_unkey,     "Simulate Rx Signal Lusb"),
+       AST_CLI_DEFINE(handle_cli_radio_tune,      "Radio Tune"),
+       AST_CLI_DEFINE(handle_cli_radio_set_debug, "Enable/Disable Radio Debugging"),
 };
 
 /*
index f4991fae8ed75fb28562795eb240350fb4cb516c..21ea7edc2ff5ab8029f74a6ab9f797392ca853e6 100644 (file)
@@ -10845,14 +10845,14 @@ static char *handle_pri_show_debug(struct ast_cli_entry *e, int cmd, struct ast_
 }
 
 static struct ast_cli_entry zap_pri_cli[] = {
-       AST_CLI(handle_pri_debug, "Enables PRI debugging on a span"),
-       AST_CLI(handle_pri_no_debug, "Disables PRI debugging on a span"),
-       AST_CLI(handle_pri_really_debug, "Enables REALLY INTENSE PRI debugging"),
-       AST_CLI(handle_pri_show_spans, "Displays PRI Information"),
-       AST_CLI(handle_pri_show_span, "Displays PRI Information"),
-       AST_CLI(handle_pri_show_debug, "Displays current PRI debug settings"),
-       AST_CLI(handle_pri_set_debug_file, "Sends PRI debug output to the specified file"),
-       AST_CLI(handle_pri_unset_debug_file, "Ends PRI debug output to file"),
+       AST_CLI_DEFINE(handle_pri_debug, "Enables PRI debugging on a span"),
+       AST_CLI_DEFINE(handle_pri_no_debug, "Disables PRI debugging on a span"),
+       AST_CLI_DEFINE(handle_pri_really_debug, "Enables REALLY INTENSE PRI debugging"),
+       AST_CLI_DEFINE(handle_pri_show_spans, "Displays PRI Information"),
+       AST_CLI_DEFINE(handle_pri_show_span, "Displays PRI Information"),
+       AST_CLI_DEFINE(handle_pri_show_debug, "Displays current PRI debug settings"),
+       AST_CLI_DEFINE(handle_pri_set_debug_file, "Sends PRI debug output to the specified file"),
+       AST_CLI_DEFINE(handle_pri_unset_debug_file, "Ends PRI debug output to file"),
 };
 
 #endif /* HAVE_PRI */
@@ -11369,13 +11369,13 @@ static char *zap_show_version(struct ast_cli_entry *e, int cmd, struct ast_cli_a
 }
 
 static struct ast_cli_entry zap_cli[] = {
-       AST_CLI(handle_zap_show_cadences, "List cadences"),
-       AST_CLI(zap_show_channels, "Show active zapata channels"),
-       AST_CLI(zap_show_channel, "Show information on a channel"),
-       AST_CLI(zap_destroy_channel, "Destroy a channel"),
-       AST_CLI(zap_restart_cmd, "Fully restart zaptel channels"),
-       AST_CLI(zap_show_status, "Show all Zaptel cards status"),
-       AST_CLI(zap_show_version, "Show the Zaptel version in use"),
+       AST_CLI_DEFINE(handle_zap_show_cadences, "List cadences"),
+       AST_CLI_DEFINE(zap_show_channels, "Show active zapata channels"),
+       AST_CLI_DEFINE(zap_show_channel, "Show information on a channel"),
+       AST_CLI_DEFINE(zap_destroy_channel, "Destroy a channel"),
+       AST_CLI_DEFINE(zap_restart_cmd, "Fully restart zaptel channels"),
+       AST_CLI_DEFINE(zap_show_status, "Show all Zaptel cards status"),
+       AST_CLI_DEFINE(zap_show_version, "Show the Zaptel version in use"),
 };
 
 #define TRANSFER       0
@@ -11969,11 +11969,11 @@ static char *handle_ss7_show_linkset(struct ast_cli_entry *e, int cmd, struct as
 }
 
 static struct ast_cli_entry zap_ss7_cli[] = {
-       AST_CLI(handle_ss7_debug, "Enables SS7 debugging on a linkset"), 
-       AST_CLI(handle_ss7_no_debug, "Disables SS7 debugging on a linkset"), 
-       AST_CLI(handle_ss7_block_cic, "Disables SS7 debugging on a linkset"),
-       AST_CLI(handle_ss7_unblock_cic, "Disables SS7 debugging on a linkset"),
-       AST_CLI(handle_ss7_show_linkset, "Shows the status of a linkset"),
+       AST_CLI_DEFINE(handle_ss7_debug, "Enables SS7 debugging on a linkset"), 
+       AST_CLI_DEFINE(handle_ss7_no_debug, "Disables SS7 debugging on a linkset"), 
+       AST_CLI_DEFINE(handle_ss7_block_cic, "Disables SS7 debugging on a linkset"),
+       AST_CLI_DEFINE(handle_ss7_unblock_cic, "Disables SS7 debugging on a linkset"),
+       AST_CLI_DEFINE(handle_ss7_show_linkset, "Shows the status of a linkset"),
 };
 #endif /* HAVE_SS7 */
 
index 702d8bc141cc43c512c79a8fc5de2771356e289f..8e22e88d53a6c501cb68b50df1cf4a493fa580f6 100644 (file)
@@ -471,7 +471,7 @@ static char *iax_show_provisioning(struct ast_cli_entry *e, int cmd, struct ast_
 }
 
 static struct ast_cli_entry cli_iax2_provision[] = {
-       AST_CLI(iax_show_provisioning, "Display iax provisioning"),
+       AST_CLI_DEFINE(iax_show_provisioning, "Display iax provisioning"),
 };
 
 static int iax_provision_init(void)
index afc2d324e70b6f04bb33fb063e57fc5c312b3749..df400a9f9a0a6a4f19d801d97d6294069df8051e 100644 (file)
@@ -70,7 +70,7 @@ static struct channel_usage {
 static char *handle_cli_transcoder_show(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
 
 static struct ast_cli_entry cli[] = {
-       AST_CLI(handle_cli_transcoder_show, "Display Zaptel transcoder utilization.")
+       AST_CLI_DEFINE(handle_cli_transcoder_show, "Display Zaptel transcoder utilization.")
 };
 
 struct format_map {
index af1c10c43b6fa27a9358ad87a83328f7a5b2d012..261dd41dd81d466e5a3ac3ce3b0282753ef7f34a 100644 (file)
@@ -174,7 +174,7 @@ static char *cli_funcdevstate_list(struct ast_cli_entry *e, int cmd, struct ast_
 }
 
 static struct ast_cli_entry cli_funcdevstate[] = {
-       AST_CLI(cli_funcdevstate_list, "List currently known custom device states"),
+       AST_CLI_DEFINE(cli_funcdevstate_list, "List currently known custom device states"),
 };
 
 static struct ast_custom_function devstate_function = {
index ba0596d84d522f1114a39cc9f52415af05b68d3e..f478c4eb0ad7ec034895cd71f6d4857d8f03a6ca 100644 (file)
@@ -84,7 +84,7 @@ void ast_cli(int fd, const char *fmt, ...)
 
        ...
        // this is how we create the entry to register 
-       AST_CLI(new_setdebug, "short description")
+       AST_CLI_DEFINE(new_setdebug, "short description")
        ...
 
    To help the transition, we make the pointer to the struct ast_cli_entry
@@ -197,7 +197,7 @@ struct ast_cli_entry {
 
 /* XXX the parser in gcc 2.95 gets confused if you don't put a space
  * between the last arg before VA_ARGS and the comma */
-#define AST_CLI(fn, txt , ... )        { .new_handler = fn, .summary = txt, ## __VA_ARGS__ }
+#define AST_CLI_DEFINE(fn, txt , ... ) { .new_handler = fn, .summary = txt, ## __VA_ARGS__ }
 
 /*!
  * Helper function to generate cli entries from a NULL-terminated array.
index 1f7d91f55631d5edfbd74de164f66c1f2ad8a49b..61c4ea5266172d96698b831b0f131476ba198e8e 100644 (file)
@@ -1734,26 +1734,26 @@ static char *show_license(struct ast_cli_entry *e, int cmd, struct ast_cli_args
 #define ASTERISK_PROMPT2 "%s*CLI> "
 
 static struct ast_cli_entry cli_asterisk[] = {
-       AST_CLI(handle_abort_shutdown, "Cancel a running shutdown"),
-       AST_CLI(handle_stop_now, "Shut down Asterisk immediately"),
-       AST_CLI(handle_stop_gracefully, "Gracefully shut down Asterisk"),
-       AST_CLI(handle_stop_when_convenient, "Shut down Asterisk at empty call volume"),
-       AST_CLI(handle_restart_now, "Restart Asterisk immediately"), 
-       AST_CLI(handle_restart_gracefully, "Restart Asterisk gracefully"),
-       AST_CLI(handle_restart_when_convenient, "Restart Asterisk at empty call volume"),
-       AST_CLI(show_warranty, "Show the warranty (if any) for this copy of Asterisk"),
-       AST_CLI(show_license, "Show the license(s) for this copy of Asterisk"),
-       AST_CLI(handle_version, "Display version info"),
-       AST_CLI(handle_bang, "Execute a shell command"),
+       AST_CLI_DEFINE(handle_abort_shutdown, "Cancel a running shutdown"),
+       AST_CLI_DEFINE(handle_stop_now, "Shut down Asterisk immediately"),
+       AST_CLI_DEFINE(handle_stop_gracefully, "Gracefully shut down Asterisk"),
+       AST_CLI_DEFINE(handle_stop_when_convenient, "Shut down Asterisk at empty call volume"),
+       AST_CLI_DEFINE(handle_restart_now, "Restart Asterisk immediately"), 
+       AST_CLI_DEFINE(handle_restart_gracefully, "Restart Asterisk gracefully"),
+       AST_CLI_DEFINE(handle_restart_when_convenient, "Restart Asterisk at empty call volume"),
+       AST_CLI_DEFINE(show_warranty, "Show the warranty (if any) for this copy of Asterisk"),
+       AST_CLI_DEFINE(show_license, "Show the license(s) for this copy of Asterisk"),
+       AST_CLI_DEFINE(handle_version, "Display version info"),
+       AST_CLI_DEFINE(handle_bang, "Execute a shell command"),
 #if !defined(LOW_MEMORY)
-       AST_CLI(handle_show_version_files, "List versions of files used to build Asterisk"),
-       AST_CLI(handle_show_threads, "Show running threads"),
+       AST_CLI_DEFINE(handle_show_version_files, "List versions of files used to build Asterisk"),
+       AST_CLI_DEFINE(handle_show_threads, "Show running threads"),
 #if defined(HAVE_SYSINFO)
-       AST_CLI(handle_show_sysinfo, "Show System Information"),
+       AST_CLI_DEFINE(handle_show_sysinfo, "Show System Information"),
 #endif
-       AST_CLI(handle_show_profile, "Display profiling info"),
-       AST_CLI(handle_show_settings, "Show some core settings"),
-       AST_CLI(handle_clear_profile, "Clear profiling info"),
+       AST_CLI_DEFINE(handle_show_profile, "Display profiling info"),
+       AST_CLI_DEFINE(handle_show_settings, "Show some core settings"),
+       AST_CLI_DEFINE(handle_clear_profile, "Clear profiling info"),
 #endif /* ! LOW_MEMORY */
 };
 
index 0529a8f5f87d3315481932d5ec45be7c0aaca774..4bd4a6b75fcd284728e8d0e132e2e7388ba706c2 100644 (file)
@@ -459,8 +459,8 @@ static char *handle_memory_show_summary(struct ast_cli_entry *e, int cmd, struct
 }
 
 static struct ast_cli_entry cli_memory[] = {
-       AST_CLI(handle_memory_show, "Display outstanding memory allocations"),
-       AST_CLI(handle_memory_show_summary, "Summarize outstanding memory allocations"),
+       AST_CLI_DEFINE(handle_memory_show, "Display outstanding memory allocations"),
+       AST_CLI_DEFINE(handle_memory_show_summary, "Summarize outstanding memory allocations"),
 };
 
 void __ast_mm_init(void)
index 8fbdf016c4d2dde872e89bf16d9611c4469af358..c9c468017fe66b8d5e62f2080cebc4631b7e70ed 100644 (file)
@@ -715,8 +715,8 @@ static char *handle_astobj2_test(struct ast_cli_entry *e, int cmd, struct ast_cl
 }
 
 static struct ast_cli_entry cli_astobj2[] = {
-       AST_CLI(handle_astobj2_stats, "Print astobj2 statistics"),
-       AST_CLI(handle_astobj2_test, "Test astobj2"),
+       AST_CLI_DEFINE(handle_astobj2_stats, "Print astobj2 statistics"),
+       AST_CLI_DEFINE(handle_astobj2_test, "Test astobj2"),
 };
 #endif /* AO2_DEBUG */
 
index a6cdaeaad4741987ee76a9c7f4fb2aaa9ae522d3..b4a185c03e0fb4761212632a7c0e36253e5dcd0d 100644 (file)
@@ -1291,8 +1291,8 @@ static char *handle_cli_submit(struct ast_cli_entry *e, int cmd, struct ast_cli_
        return CLI_SUCCESS;
 }
 
-static struct ast_cli_entry cli_submit = AST_CLI(handle_cli_submit, "Posts all pending batched CDR data");
-static struct ast_cli_entry cli_status = AST_CLI(handle_cli_status, "Display the CDR status");
+static struct ast_cli_entry cli_submit = AST_CLI_DEFINE(handle_cli_submit, "Posts all pending batched CDR data");
+static struct ast_cli_entry cli_status = AST_CLI_DEFINE(handle_cli_status, "Display the CDR status");
 
 static int do_reload(int reload)
 {
index acc851aacb2b1c493b82d7aa2068b34cd58dec2a..ace4d4eb065e9a3b03cb94641da18b7b74eb1dfc 100644 (file)
@@ -316,8 +316,8 @@ static char *handle_cli_core_show_channeltype(struct ast_cli_entry *e, int cmd,
 }
 
 static struct ast_cli_entry cli_channel[] = {
-       AST_CLI(handle_cli_core_show_channeltypes, "List available channel types"),
-       AST_CLI(handle_cli_core_show_channeltype,  "Give more details on that channel type")
+       AST_CLI_DEFINE(handle_cli_core_show_channeltypes, "List available channel types"),
+       AST_CLI_DEFINE(handle_cli_core_show_channeltype,  "Give more details on that channel type")
 };
 
 /*! \brief Checks to see if a channel is needing hang up */
index 06c1b9ca271e1338bb946ad9bae0c33a65c1beda..d454694dc0a4ad09b52a22aff9dc9544b14e11da 100644 (file)
@@ -1108,47 +1108,47 @@ static char *group_show_channels(struct ast_cli_entry *e, int cmd, struct ast_cl
 #undef FORMAT_STRING
 }
 
-static struct ast_cli_entry cli_debug_channel_deprecated = AST_CLI(handle_debugchan_deprecated, "Enable debugging on channel");
-static struct ast_cli_entry cli_module_load_deprecated = AST_CLI(handle_load_deprecated, "Load a module");
-static struct ast_cli_entry cli_module_reload_deprecated = AST_CLI(handle_reload_deprecated, "reload modules by name");
-static struct ast_cli_entry cli_module_unload_deprecated = AST_CLI(handle_unload_deprecated, "unload modules by name");
+static struct ast_cli_entry cli_debug_channel_deprecated = AST_CLI_DEFINE(handle_debugchan_deprecated, "Enable debugging on channel");
+static struct ast_cli_entry cli_module_load_deprecated = AST_CLI_DEFINE(handle_load_deprecated, "Load a module");
+static struct ast_cli_entry cli_module_reload_deprecated = AST_CLI_DEFINE(handle_reload_deprecated, "reload modules by name");
+static struct ast_cli_entry cli_module_unload_deprecated = AST_CLI_DEFINE(handle_unload_deprecated, "unload modules by name");
 
 static char *handle_help(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
 
 static struct ast_cli_entry cli_cli[] = {
        /* Deprecated, but preferred command is now consolidated (and already has a deprecated command for it). */
-       AST_CLI(handle_commandcomplete, "Command complete"),
-       AST_CLI(handle_commandnummatches, "Returns number of command matches"),
-       AST_CLI(handle_commandmatchesarray, "Returns command matches array"),
+       AST_CLI_DEFINE(handle_commandcomplete, "Command complete"),
+       AST_CLI_DEFINE(handle_commandnummatches, "Returns number of command matches"),
+       AST_CLI_DEFINE(handle_commandmatchesarray, "Returns command matches array"),
 
-       AST_CLI(handle_nodebugchan_deprecated, "Disable debugging on channel(s)"),
+       AST_CLI_DEFINE(handle_nodebugchan_deprecated, "Disable debugging on channel(s)"),
 
-       AST_CLI(handle_chanlist, "Display information on channels"),
+       AST_CLI_DEFINE(handle_chanlist, "Display information on channels"),
 
-       AST_CLI(handle_showchan, "Display information on a specific channel"),
+       AST_CLI_DEFINE(handle_showchan, "Display information on a specific channel"),
 
-       AST_CLI(handle_core_set_debug_channel, "Enable/disable debugging on a channel",
+       AST_CLI_DEFINE(handle_core_set_debug_channel, "Enable/disable debugging on a channel",
                .deprecate_cmd = &cli_debug_channel_deprecated),
 
-       AST_CLI(handle_verbose, "Set level of debug/verbose chattiness"),
+       AST_CLI_DEFINE(handle_verbose, "Set level of debug/verbose chattiness"),
 
-       AST_CLI(group_show_channels, "Display active channels with group(s)"),
+       AST_CLI_DEFINE(group_show_channels, "Display active channels with group(s)"),
 
-       AST_CLI(handle_help, "Display help list, or specific help on a command"),
+       AST_CLI_DEFINE(handle_help, "Display help list, or specific help on a command"),
 
-       AST_CLI(handle_logger_mute, "Toggle logging output to a console"),
+       AST_CLI_DEFINE(handle_logger_mute, "Toggle logging output to a console"),
 
-       AST_CLI(handle_modlist, "List modules and info"),
+       AST_CLI_DEFINE(handle_modlist, "List modules and info"),
 
-       AST_CLI(handle_load, "Load a module by name", .deprecate_cmd = &cli_module_load_deprecated),
+       AST_CLI_DEFINE(handle_load, "Load a module by name", .deprecate_cmd = &cli_module_load_deprecated),
 
-       AST_CLI(handle_reload, "Reload configuration", .deprecate_cmd = &cli_module_reload_deprecated),
+       AST_CLI_DEFINE(handle_reload, "Reload configuration", .deprecate_cmd = &cli_module_reload_deprecated),
 
-       AST_CLI(handle_unload, "Unload a module by name", .deprecate_cmd = &cli_module_unload_deprecated ),
+       AST_CLI_DEFINE(handle_unload, "Unload a module by name", .deprecate_cmd = &cli_module_unload_deprecated ),
 
-       AST_CLI(handle_showuptime, "Show uptime information"),
+       AST_CLI_DEFINE(handle_showuptime, "Show uptime information"),
 
-       AST_CLI(handle_softhangup, "Request a hangup on a given channel"),
+       AST_CLI_DEFINE(handle_softhangup, "Request a hangup on a given channel"),
 };
 
 /*!
index 29f0f9d0811326b2e8094b14219af1912d4273b7..88bfd8a5f095254386afde25f10d6f07e50ad32c 100644 (file)
@@ -2178,7 +2178,7 @@ static char *handle_cli_core_show_config_mappings(struct ast_cli_entry *e, int c
 }
 
 static struct ast_cli_entry cli_config[] = {
-       AST_CLI(handle_cli_core_show_config_mappings, "Display config mappings (file names to config engines)"),
+       AST_CLI_DEFINE(handle_cli_core_show_config_mappings, "Display config mappings (file names to config engines)"),
 };
 
 int register_config_cli() 
index ba322d2a49471d4f8d71235e4921e6597baa6595..a132aa68301c09449e30855ec70ed78e56c54335 100644 (file)
--- a/main/db.c
+++ b/main/db.c
@@ -549,12 +549,12 @@ void ast_db_freetree(struct ast_db_entry *dbe)
 }
 
 struct ast_cli_entry cli_database[] = {
-       AST_CLI(handle_cli_database_show,    "Shows database contents"),
-       AST_CLI(handle_cli_database_showkey, "Shows database contents"),
-       AST_CLI(handle_cli_database_get,     "Gets database value"),
-       AST_CLI(handle_cli_database_put,     "Adds/updates database value"),
-       AST_CLI(handle_cli_database_del,     "Removes database key/value"),
-       AST_CLI(handle_cli_database_deltree, "Removes database keytree/values")
+       AST_CLI_DEFINE(handle_cli_database_show,    "Shows database contents"),
+       AST_CLI_DEFINE(handle_cli_database_showkey, "Shows database contents"),
+       AST_CLI_DEFINE(handle_cli_database_get,     "Gets database value"),
+       AST_CLI_DEFINE(handle_cli_database_put,     "Adds/updates database value"),
+       AST_CLI_DEFINE(handle_cli_database_del,     "Removes database key/value"),
+       AST_CLI_DEFINE(handle_cli_database_deltree, "Removes database keytree/values")
 };
 
 static int manager_dbput(struct mansession *s, const struct message *m)
index f6372e62be39363b1ff024a07cd41544a110daac..b4c8e6307722356e7b38766ba4535a88ebfcfe28 100644 (file)
@@ -338,9 +338,9 @@ static char *handle_cli_status(struct ast_cli_entry *e, int cmd, struct ast_cli_
        return CLI_SUCCESS;
 }
 
-static struct ast_cli_entry cli_reload = AST_CLI(handle_cli_reload, "Reloads the DNS manager configuration");
-static struct ast_cli_entry cli_refresh = AST_CLI(handle_cli_refresh, "Performs an immediate refresh");
-static struct ast_cli_entry cli_status = AST_CLI(handle_cli_status, "Display the DNS manager status");
+static struct ast_cli_entry cli_reload = AST_CLI_DEFINE(handle_cli_reload, "Reloads the DNS manager configuration");
+static struct ast_cli_entry cli_refresh = AST_CLI_DEFINE(handle_cli_refresh, "Performs an immediate refresh");
+static struct ast_cli_entry cli_status = AST_CLI_DEFINE(handle_cli_status, "Display the DNS manager status");
 
 int dnsmgr_init(void)
 {
index ed7541bf6f19c1166c69b7198e306f43e50f0532..453d82f8e32cb5addb7c222c3675a50d95c65ca0 100644 (file)
@@ -1239,7 +1239,7 @@ static char *handle_cli_core_show_file_formats(struct ast_cli_entry *e, int cmd,
 }
 
 struct ast_cli_entry cli_file[] = {
-       AST_CLI(handle_cli_core_show_file_formats, "Displays file formats")
+       AST_CLI_DEFINE(handle_cli_core_show_file_formats, "Displays file formats")
 };
 
 int ast_file_init(void)
index 24170997c023af625158bcd5e01d262744e504de..98b0800c92d72727c84640093c7fca12dbbf4615 100644 (file)
@@ -913,10 +913,10 @@ static char *show_frame_stats(struct ast_cli_entry *e, int cmd, struct ast_cli_a
 
 /* Builtin Asterisk CLI-commands for debugging */
 static struct ast_cli_entry my_clis[] = {
-       AST_CLI(show_codecs, "Displays a list of codecs"),
-       AST_CLI(show_codec_n, "Shows a specific codec"),
+       AST_CLI_DEFINE(show_codecs, "Displays a list of codecs"),
+       AST_CLI_DEFINE(show_codec_n, "Shows a specific codec"),
 #ifdef TRACE_FRAMES
-       AST_CLI(show_frame_stats, "Shows frame statistics"),
+       AST_CLI_DEFINE(show_frame_stats, "Shows frame statistics"),
 #endif
 };
 
index b2310f481dfe6e006b772182e8aacdeb036c99a9..d4e692ea654b1ec197bc737ee9befd9f1cd70262 100644 (file)
@@ -1299,7 +1299,7 @@ int ast_http_reload(void)
 }
 
 static struct ast_cli_entry cli_http[] = {
-       AST_CLI(handle_show_http, "Display HTTP server status"),
+       AST_CLI_DEFINE(handle_show_http, "Display HTTP server status"),
 };
 
 int ast_http_init(void)
index df6b194cb7bb92afae4c86e1dc1d369af0a969e8..5e6ce552cf63c073b1d645e12b8f029e2f8e9367 100644 (file)
@@ -211,7 +211,7 @@ static char *handle_core_show_image_formats(struct ast_cli_entry *e, int cmd, st
 }
 
 struct ast_cli_entry cli_image[] = {
-       AST_CLI(handle_core_show_image_formats, "Displays image formats")
+       AST_CLI_DEFINE(handle_core_show_image_formats, "Displays image formats")
 };
 
 int ast_image_init(void)
index 618a855c974a7b074443027e7d0062f338956d53..82badbb9262dfe4ae0098fe8db56379b73a1de4e 100644 (file)
@@ -708,9 +708,9 @@ struct verb {
 static AST_RWLIST_HEAD_STATIC(verbosers, verb);
 
 static struct ast_cli_entry cli_logger[] = {
-       AST_CLI(handle_logger_show_channels, "List configured log channels"),
-       AST_CLI(handle_logger_reload, "Reopens the log files"),
-       AST_CLI(handle_logger_rotate, "Rotates and reopens the log files")
+       AST_CLI_DEFINE(handle_logger_show_channels, "List configured log channels"),
+       AST_CLI_DEFINE(handle_logger_reload, "Reopens the log files"),
+       AST_CLI_DEFINE(handle_logger_rotate, "Rotates and reopens the log files")
 };
 
 static int handle_SIGXFSZ(int sig) 
index 4077d0606cc670c9c8369d08e9bcf44ac2ff5ea0..bc5ca1ba9562d2ecc0a9dafce991c2eedd7e8a5c 100644 (file)
@@ -717,13 +717,13 @@ static char *handle_showmaneventq(struct ast_cli_entry *e, int cmd, struct ast_c
 }
 
 static struct ast_cli_entry cli_manager[] = {
-       AST_CLI(handle_showmancmd, "Show a manager interface command"),
-       AST_CLI(handle_showmancmds, "List manager interface commands"),
-       AST_CLI(handle_showmanconn, "List connected manager interface users"),
-       AST_CLI(handle_showmaneventq, "List manager interface queued events"),
-       AST_CLI(handle_showmanagers, "List configured manager users"),
-       AST_CLI(handle_showmanager, "Display information on a specific manager user"),
-       AST_CLI(handle_mandebug, "Show, enable, disable debugging of the manager code"),
+       AST_CLI_DEFINE(handle_showmancmd, "Show a manager interface command"),
+       AST_CLI_DEFINE(handle_showmancmds, "List manager interface commands"),
+       AST_CLI_DEFINE(handle_showmanconn, "List connected manager interface users"),
+       AST_CLI_DEFINE(handle_showmaneventq, "List manager interface queued events"),
+       AST_CLI_DEFINE(handle_showmanagers, "List configured manager users"),
+       AST_CLI_DEFINE(handle_showmanager, "Display information on a specific manager user"),
+       AST_CLI_DEFINE(handle_mandebug, "Show, enable, disable debugging of the manager code"),
 };
 
 /*
index 1de2f09b091669754fef871bbc56a81eeb037e3f..5fb02016b29f79764191cb1765b7078eb91d0751 100644 (file)
@@ -3967,15 +3967,15 @@ static char *handle_set_global(struct ast_cli_entry *e, int cmd, struct ast_cli_
  * CLI entries for upper commands ...
  */
 static struct ast_cli_entry pbx_cli[] = {
-       AST_CLI(handle_show_applications, "Shows registered dialplan applications"),
-       AST_CLI(handle_show_functions, "Shows registered dialplan functions"),
-       AST_CLI(handle_show_switches, "Show alternative switches"),
-       AST_CLI(handle_show_hints, "Show dialplan hints"),
-       AST_CLI(handle_show_globals, "Show global dialplan variables"),
-       AST_CLI(handle_show_function, "Describe a specific dialplan function"),
-       AST_CLI(handle_show_application, "Describe a specific dialplan application"),
-       AST_CLI(handle_set_global, "Set global dialplan variable"),
-       AST_CLI(handle_show_dialplan, "Show dialplan"),
+       AST_CLI_DEFINE(handle_show_applications, "Shows registered dialplan applications"),
+       AST_CLI_DEFINE(handle_show_functions, "Shows registered dialplan functions"),
+       AST_CLI_DEFINE(handle_show_switches, "Show alternative switches"),
+       AST_CLI_DEFINE(handle_show_hints, "Show dialplan hints"),
+       AST_CLI_DEFINE(handle_show_globals, "Show global dialplan variables"),
+       AST_CLI_DEFINE(handle_show_function, "Describe a specific dialplan function"),
+       AST_CLI_DEFINE(handle_show_application, "Describe a specific dialplan application"),
+       AST_CLI_DEFINE(handle_set_global, "Set global dialplan variable"),
+       AST_CLI_DEFINE(handle_show_dialplan, "Show dialplan"),
 };
 
 static void unreference_cached_app(struct ast_app *app)
index ccb846d3d641030f00251b0ae9a7163450c0e9fd..5b5223cf273c6cce54ff74beedfd03c8572b9d1a 100644 (file)
@@ -3979,10 +3979,10 @@ static char *handle_cli_stun_debug(struct ast_cli_entry *e, int cmd, struct ast_
 }
 
 static struct ast_cli_entry cli_rtp[] = {
-       AST_CLI(handle_cli_rtp_debug,  "Enable/Disable RTP debugging"),
-       AST_CLI(handle_cli_rtcp_debug, "Enable/Disable RTCP debugging"),
-       AST_CLI(handle_cli_rtcp_stats, "Enable/Disable RTCP stats"),
-       AST_CLI(handle_cli_stun_debug, "Enable/Disable STUN debugging"),
+       AST_CLI_DEFINE(handle_cli_rtp_debug,  "Enable/Disable RTP debugging"),
+       AST_CLI_DEFINE(handle_cli_rtcp_debug, "Enable/Disable RTCP debugging"),
+       AST_CLI_DEFINE(handle_cli_rtcp_stats, "Enable/Disable RTCP stats"),
+       AST_CLI_DEFINE(handle_cli_stun_debug, "Enable/Disable STUN debugging"),
 };
 
 static int __ast_rtp_reload(int reload)
index e5bfc484af87bf4031b434783ae02f11af7d0391..01bab356ba37d52535238bb4d627e7258800ab57 100644 (file)
@@ -222,8 +222,8 @@ static char *handle_cli_threadstorage_show_summary(struct ast_cli_entry *e, int
 }
 
 static struct ast_cli_entry cli[] = {
-       AST_CLI(handle_cli_threadstorage_show_allocations, "Display outstanding thread local storage allocations"),
-       AST_CLI(handle_cli_threadstorage_show_summary,     "Summarize outstanding memory allocations")
+       AST_CLI_DEFINE(handle_cli_threadstorage_show_allocations, "Display outstanding thread local storage allocations"),
+       AST_CLI_DEFINE(handle_cli_threadstorage_show_summary,     "Summarize outstanding memory allocations")
 };
 
 void threadstorage_init(void)
index 0da2c4be9f91f80bee7ef9283f5239bde5928fec..535257afa6ac4c984def9d3ee7c1a6cd3307025f 100644 (file)
@@ -575,7 +575,7 @@ static char *handle_cli_core_show_translation(struct ast_cli_entry *e, int cmd,
 }
 
 static struct ast_cli_entry cli_translate[] = {
-       AST_CLI(handle_cli_core_show_translation, "Display translation matrix")
+       AST_CLI_DEFINE(handle_cli_core_show_translation, "Display translation matrix")
 };
 
 /*! \brief register codec translator */
index d906d0549d26ef27537dd3d208779836da3cef40..beb76a9884038e1dd8bdacdb2ed961a09ffb3109 100644 (file)
@@ -1197,9 +1197,9 @@ static char *handle_cli_udptl_debug_off(struct ast_cli_entry *e, int cmd, struct
 }
 
 static struct ast_cli_entry cli_udptl[] = {
-       AST_CLI(handle_cli_udptl_debug,     "Enable UDPTL debugging"),
-       AST_CLI(handle_cli_udptl_debug_ip,  "Enable UDPTL debugging on IP"),
-       AST_CLI(handle_cli_udptl_debug_off, "Disable UDPTL debugging")
+       AST_CLI_DEFINE(handle_cli_udptl_debug,     "Enable UDPTL debugging"),
+       AST_CLI_DEFINE(handle_cli_udptl_debug_ip,  "Enable UDPTL debugging on IP"),
+       AST_CLI_DEFINE(handle_cli_udptl_debug_off, "Disable UDPTL debugging")
 };
 
 static void __ast_udptl_reload(int reload)
index ed3c47b2d9318d267a0696f118627e534df0dabc..34e4650e623fb8764966692a9098f3fb42bbeb30 100644 (file)
@@ -786,7 +786,7 @@ static char *handle_show_locks(struct ast_cli_entry *e, int cmd, struct ast_cli_
 }
 
 static struct ast_cli_entry utils_cli[] = {
-       AST_CLI(handle_show_locks, "Show which locks are held by which thread"),
+       AST_CLI_DEFINE(handle_show_locks, "Show which locks are held by which thread"),
 };
 
 #endif /* DEBUG_THREADS */
index 20a0138b4e564dbb44682435c75e89865e6a38ea..506c7518484c6cac5706d21fc2a946a8b3e47b79 100644 (file)
@@ -1002,8 +1002,8 @@ static char *handle_cli_ael_reload(struct ast_cli_entry *e, int cmd, struct ast_
 }
 
 static struct ast_cli_entry cli_ael[] = {
-       AST_CLI(handle_cli_ael_reload,         "Reload AEL configuration"),
-       AST_CLI(handle_cli_ael_debug_multiple, "Enable AEL debugging flags")
+       AST_CLI_DEFINE(handle_cli_ael_reload,         "Reload AEL configuration"),
+       AST_CLI_DEFINE(handle_cli_ael_debug_multiple, "Enable AEL debugging flags")
 };
 
 static int unload_module(void)
index 80f64964f1198b1ff21605518bf2b5670f31a8c6..9b112dc183cc065652a12809813539bf7327c703 100644 (file)
@@ -1336,17 +1336,17 @@ static char *handle_cli_dialplan_reload(struct ast_cli_entry *e, int cmd, struct
  * CLI entries for commands provided by this module
  */
 static struct ast_cli_entry cli_pbx_config[] = {
-       AST_CLI(handle_cli_dialplan_add_extension,    "Add new extension into context"),
-       AST_CLI(handle_cli_dialplan_remove_extension, "Remove a specified extension"),
-       AST_CLI(handle_cli_dialplan_add_ignorepat,    "Add new ignore pattern"),
-       AST_CLI(handle_cli_dialplan_remove_ignorepat, "Remove ignore pattern from context"),
-       AST_CLI(handle_cli_dialplan_add_include,      "Include context in other context"),
-       AST_CLI(handle_cli_dialplan_remove_include,   "Remove a specified include from context"),
-       AST_CLI(handle_cli_dialplan_reload,           "Reload extensions and *only* extensions")
+       AST_CLI_DEFINE(handle_cli_dialplan_add_extension,    "Add new extension into context"),
+       AST_CLI_DEFINE(handle_cli_dialplan_remove_extension, "Remove a specified extension"),
+       AST_CLI_DEFINE(handle_cli_dialplan_add_ignorepat,    "Add new ignore pattern"),
+       AST_CLI_DEFINE(handle_cli_dialplan_remove_ignorepat, "Remove ignore pattern from context"),
+       AST_CLI_DEFINE(handle_cli_dialplan_add_include,      "Include context in other context"),
+       AST_CLI_DEFINE(handle_cli_dialplan_remove_include,   "Remove a specified include from context"),
+       AST_CLI_DEFINE(handle_cli_dialplan_reload,           "Reload extensions and *only* extensions")
 };
 
 static struct ast_cli_entry cli_dialplan_save =
-       AST_CLI(handle_cli_dialplan_save, "Save dialplan");
+       AST_CLI_DEFINE(handle_cli_dialplan_save, "Save dialplan");
 
 /*!
  * Standard module functions ...
index 989c07a9224adc845f0b1e4a9ab7e758585f6d58..afce622212419a98fc1bee65244b677a2fe39a37 100644 (file)
@@ -2866,21 +2866,21 @@ static char *dundi_show_precache(struct ast_cli_entry *e, int cmd, struct ast_cl
 }
 
 static struct ast_cli_entry cli_dundi[] = {
-       AST_CLI(dundi_do_debug, "Enable DUNDi debugging"),
-       AST_CLI(dundi_no_debug, "Disable DUNDi debugging"),
-       AST_CLI(dundi_do_store_history, "Enable DUNDi historic records"),
-       AST_CLI(dundi_no_store_history, "Disable DUNDi historic records"),
-       AST_CLI(dundi_flush, "Flush DUNDi cache"),
-       AST_CLI(dundi_show_peers, "Show defined DUNDi peers"),
-       AST_CLI(dundi_show_trans, "Show active DUNDi transactions"),
-       AST_CLI(dundi_show_entityid, "Display Global Entity ID"),
-       AST_CLI(dundi_show_mappings, "Show DUNDi mappings"),
-       AST_CLI(dundi_show_precache, "Show DUNDi precache"),
-       AST_CLI(dundi_show_requests, "Show DUNDi requests"),
-       AST_CLI(dundi_show_peer, "Show info on a specific DUNDi peer"),
-       AST_CLI(dundi_do_precache, "Precache a number in DUNDi"),
-       AST_CLI(dundi_do_lookup, "Lookup a number in DUNDi"),
-       AST_CLI(dundi_do_query, "Query a DUNDi EID"),
+       AST_CLI_DEFINE(dundi_do_debug, "Enable DUNDi debugging"),
+       AST_CLI_DEFINE(dundi_no_debug, "Disable DUNDi debugging"),
+       AST_CLI_DEFINE(dundi_do_store_history, "Enable DUNDi historic records"),
+       AST_CLI_DEFINE(dundi_no_store_history, "Disable DUNDi historic records"),
+       AST_CLI_DEFINE(dundi_flush, "Flush DUNDi cache"),
+       AST_CLI_DEFINE(dundi_show_peers, "Show defined DUNDi peers"),
+       AST_CLI_DEFINE(dundi_show_trans, "Show active DUNDi transactions"),
+       AST_CLI_DEFINE(dundi_show_entityid, "Display Global Entity ID"),
+       AST_CLI_DEFINE(dundi_show_mappings, "Show DUNDi mappings"),
+       AST_CLI_DEFINE(dundi_show_precache, "Show DUNDi precache"),
+       AST_CLI_DEFINE(dundi_show_requests, "Show DUNDi requests"),
+       AST_CLI_DEFINE(dundi_show_peer, "Show info on a specific DUNDi peer"),
+       AST_CLI_DEFINE(dundi_do_precache, "Precache a number in DUNDi"),
+       AST_CLI_DEFINE(dundi_do_lookup, "Lookup a number in DUNDi"),
+       AST_CLI_DEFINE(dundi_do_query, "Query a DUNDi EID"),
 };
 
 static struct dundi_transaction *create_transaction(struct dundi_peer *p)
index 994c83e088e0c762be0819f62589bd9359aaf178..8f722f082c8b9fb1f018630bfba95c94aed0fbdb 100644 (file)
@@ -2217,9 +2217,9 @@ static int deadagi_exec(struct ast_channel *chan, void *data)
 }
 
 static struct ast_cli_entry cli_agi[] = {
-       AST_CLI(handle_cli_agi_debug,    "Enable/Disable AGI debugging"),
-       AST_CLI(handle_cli_agi_show,     "List AGI commands or specific help"),
-       AST_CLI(handle_cli_agi_dumphtml, "Dumps a list of AGI commands in HTML format")
+       AST_CLI_DEFINE(handle_cli_agi_debug,    "Enable/Disable AGI debugging"),
+       AST_CLI_DEFINE(handle_cli_agi_show,     "List AGI commands or specific help"),
+       AST_CLI_DEFINE(handle_cli_agi_dumphtml, "Dumps a list of AGI commands in HTML format")
 };
 
 static int unload_module(void)
index 2a4780ca942cf80c9f245c4f6654e20ef6e76a51..3cc3f2db22d26a8166e5623b384bffe0d646bcba 100644 (file)
@@ -176,7 +176,7 @@ static char *handle_orig(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
 }
 
 static struct ast_cli_entry cli_cliorig[] = {
-       AST_CLI(handle_orig, "Originate a call"),
+       AST_CLI_DEFINE(handle_orig, "Originate a call"),
 };
 
 /*! \brief Unload orginate module */
index a2396d310b8ddc9b73a0bbd7fcb6f6bccfb63c34..6dbeae1469dc70650a0ef87140b52aec5c882f97 100644 (file)
@@ -67,7 +67,7 @@ static int pgsql_reconnect(const char *database);
 static char *handle_cli_realtime_pgsql_status(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
 
 static struct ast_cli_entry cli_realtime[] = {
-       AST_CLI(handle_cli_realtime_pgsql_status, "Shows connection information for the PostgreSQL RealTime driver"),
+       AST_CLI_DEFINE(handle_cli_realtime_pgsql_status, "Shows connection information for the PostgreSQL RealTime driver"),
 };
 
 static struct ast_variable *realtime_pgsql(const char *database, const char *table, va_list ap)
index 095b827f800d06aedf3366516e6f1efeaa54a5b0..4cbed368532be98c49bfded7921cbebf1839f64f 100644 (file)
@@ -500,7 +500,7 @@ AST_MUTEX_DEFINE_STATIC(mutex);
  * command.
  */
 static struct ast_cli_entry cli_status[] = {
-       AST_CLI(handle_cli_show_sqlite_status, "Show status information about the SQLite 2 driver"),
+       AST_CLI_DEFINE(handle_cli_show_sqlite_status, "Show status information about the SQLite 2 driver"),
 };
 
 /*
index 2c753741bffd0a5ac6070aa901bf60987668f9ef..98f51774e00e4675f79f763a02198dbdf99b57db 100644 (file)
@@ -147,7 +147,7 @@ fail_out:
 }
 
 static struct ast_cli_entry cli_convert[] = {
-       AST_CLI(handle_cli_file_convert, "Convert audio file")
+       AST_CLI_DEFINE(handle_cli_file_convert, "Convert audio file")
 };
 
 static int unload_module(void)
index 5f33369afba4f5a4e9ed9e9ff8107e9b15f14775..9ef65d65280ced7f9ff5cc749c3ba44adc51587f 100644 (file)
@@ -582,8 +582,8 @@ static char *handle_cli_keys_init(struct ast_cli_entry *e, int cmd, struct ast_c
 }
 
 static struct ast_cli_entry cli_crypto[] = {
-       AST_CLI(handle_cli_keys_show, "Displays RSA key information"),
-       AST_CLI(handle_cli_keys_init, "Initialize RSA key passcodes")
+       AST_CLI_DEFINE(handle_cli_keys_show, "Displays RSA key information"),
+       AST_CLI_DEFINE(handle_cli_keys_init, "Initialize RSA key passcodes")
 };
 
 /*! \brief initialise the res_crypto module */
index 993d1b90f432c9d68784ef893a52b0f419e6450f..298a63e64e517a6b61ac83e1abd1f4d1592a1c88 100644 (file)
@@ -2629,11 +2629,11 @@ static char *handle_parkedcalls_deprecated(struct ast_cli_entry *e, int cmd, str
        return res;
 }
 
-static struct ast_cli_entry cli_show_parkedcalls_deprecated = AST_CLI(handle_parkedcalls_deprecated, "List currently parked calls.");
+static struct ast_cli_entry cli_show_parkedcalls_deprecated = AST_CLI_DEFINE(handle_parkedcalls_deprecated, "List currently parked calls.");
 
 static struct ast_cli_entry cli_features[] = {
-       AST_CLI(handle_feature_show, "Lists configured features"),
-       AST_CLI(handle_parkedcalls, "List currently parked calls", .deprecate_cmd = &cli_show_parkedcalls_deprecated),
+       AST_CLI_DEFINE(handle_feature_show, "Lists configured features"),
+       AST_CLI_DEFINE(handle_parkedcalls, "List currently parked calls", .deprecate_cmd = &cli_show_parkedcalls_deprecated),
 };
 
 /*! 
index 475a79d310703d9d52d71551c6959e4df2777291..74d6288e1d858a75dd841a3f4bdaec272a878e32 100644 (file)
@@ -382,9 +382,9 @@ out:                        v = v->next;
 
 /*! \brief CLI entries for commands provided by this module */
 static struct ast_cli_entry cli_indications[] = {
-       AST_CLI(handle_cli_indication_add,    "Add the given indication to the country"),
-       AST_CLI(handle_cli_indication_remove, "Remove the given indication from the country"),
-       AST_CLI(handle_cli_indication_show,   "Display a list of all countries/indications")
+       AST_CLI_DEFINE(handle_cli_indication_add,    "Add the given indication to the country"),
+       AST_CLI_DEFINE(handle_cli_indication_remove, "Remove the given indication from the country"),
+       AST_CLI_DEFINE(handle_cli_indication_show,   "Display a list of all countries/indications")
 };
 
 /*! \brief Unload indicators module */
index 94649874ababcd092ef22dd996461bace753ce65..fb118c1abe56dad47bf8ec360cbaa41e72773b21 100644 (file)
@@ -115,12 +115,12 @@ static int aji_register_transport2(void *data, ikspak *pak);
 */
 
 static struct ast_cli_entry aji_cli[] = {
-       AST_CLI(aji_do_debug, "Enable jabber debugging"),
-       AST_CLI(aji_no_debug, "Disable Jabber debug"),
-       AST_CLI(aji_do_reload, "Reload Jabber configuration"),
-       AST_CLI(aji_show_clients, "Show state of clients and components"),
-       AST_CLI(aji_show_buddies, "Show buddy lists of our clients"),
-       AST_CLI(aji_test, "Shows roster, but is generally used for mog's debugging."),
+       AST_CLI_DEFINE(aji_do_debug, "Enable jabber debugging"),
+       AST_CLI_DEFINE(aji_no_debug, "Disable Jabber debug"),
+       AST_CLI_DEFINE(aji_do_reload, "Reload Jabber configuration"),
+       AST_CLI_DEFINE(aji_show_clients, "Show state of clients and components"),
+       AST_CLI_DEFINE(aji_show_buddies, "Show buddy lists of our clients"),
+       AST_CLI_DEFINE(aji_test, "Shows roster, but is generally used for mog's debugging."),
 };
 
 static char *app_ajisend = "JabberSend";
index 9d6d2699c71f0134fa796b7316d8fcfced7c3288..de2c7da9a60531f059ae3671eca40b5c7d5ac7a0 100644 (file)
@@ -204,7 +204,7 @@ static char *handle_cli_ulimit(struct ast_cli_entry *e, int cmd, struct ast_cli_
 }
 
 static struct ast_cli_entry cli_ulimit =
-       AST_CLI(handle_cli_ulimit, "Set or show process resource limits");
+       AST_CLI_DEFINE(handle_cli_ulimit, "Set or show process resource limits");
 
 static int unload_module(void)
 {
index eec8306278f7d6de145043faafb8c22ab2eb9bc0..b074394b3b4c40669499e05216d5e6f682b00d7f 100644 (file)
@@ -1273,9 +1273,9 @@ static char *handle_cli_moh_show_classes(struct ast_cli_entry *e, int cmd, struc
 }
 
 static struct ast_cli_entry cli_moh[] = {
-       AST_CLI(handle_cli_moh_reload,       "Reload MusicOnHold"),
-       AST_CLI(handle_cli_moh_show_classes, "List MusicOnHold classes"),
-       AST_CLI(handle_cli_moh_show_files,   "List MusicOnHold file-based classes")
+       AST_CLI_DEFINE(handle_cli_moh_reload,       "Reload MusicOnHold"),
+       AST_CLI_DEFINE(handle_cli_moh_show_classes, "List MusicOnHold classes"),
+       AST_CLI_DEFINE(handle_cli_moh_show_files,   "List MusicOnHold file-based classes")
 };
 
 static int init_classes(int reload) 
index 7d27bfd4fae5dfff89dc2ac3b1fbad65f3a70af1..30b084382ee4abf21d3d3974185643ff57f02fd7 100644 (file)
@@ -396,7 +396,7 @@ static char *handle_cli_odbc_show(struct ast_cli_entry *e, int cmd, struct ast_c
 }
 
 static struct ast_cli_entry cli_odbc[] = {
-       AST_CLI(handle_cli_odbc_show, "List ODBC DSN(s)")
+       AST_CLI_DEFINE(handle_cli_odbc_show, "List ODBC DSN(s)")
 };
 
 static int odbc_register_class(struct odbc_class *class, int connect)
index 7806c82f2697d7b79cf4b43ccac9d9cbd0ba3823..8f96c8f54b69c817ee2d6116fa68684837b095c9 100644 (file)
@@ -117,8 +117,8 @@ static char *cli_realtime_update(struct ast_cli_entry *e, int cmd, struct ast_cl
 }
 
 static struct ast_cli_entry cli_realtime[] = {
-       AST_CLI(cli_realtime_load, "Used to print out RealTime variables."),
-       AST_CLI(cli_realtime_update, "Used to update RealTime variables."),
+       AST_CLI_DEFINE(cli_realtime_load, "Used to print out RealTime variables."),
+       AST_CLI_DEFINE(cli_realtime_update, "Used to update RealTime variables."),
 };
 
 static int unload_module(void)