dect
/
asterisk
Archived
13
0
Fork 0

Constify a bunch of usage strings for CLI commands.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48306 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2006-12-06 07:35:31 +00:00
parent 6559015193
commit 4299f89c9b
9 changed files with 24 additions and 24 deletions

View File

@ -1712,15 +1712,15 @@ static int agents_show_online(int fd, int argc, char **argv)
static char show_agents_usage[] =
static const char show_agents_usage[] =
"Usage: agent show\n"
" Provides summary information on agents.\n";
static char show_agents_online_usage[] =
static const char show_agents_online_usage[] =
"Usage: agent show online\n"
" Provides a list of all online agents.\n";
static char agent_logoff_usage[] =
static const char agent_logoff_usage[] =
"Usage: agent logoff <channel> [soft]\n"
" Sets an agent as no longer logged in.\n"
" If 'soft' is specified, do not hangup existing calls.\n";

View File

@ -916,7 +916,7 @@ static int console_answer(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
static char sendtext_usage[] =
static const char sendtext_usage[] =
"Usage: console send text <message>\n"
" Sends a text message for display on the remote terminal.\n";
@ -961,7 +961,7 @@ static int console_sendtext(int fd, int argc, char *argv[])
return res;
}
static char answer_usage[] =
static const char answer_usage[] =
"Usage: console answer\n"
" Answers an incoming call on the console (ALSA) channel.\n";
@ -993,7 +993,7 @@ static int console_hangup(int fd, int argc, char *argv[])
return res;
}
static char hangup_usage[] =
static const char hangup_usage[] =
"Usage: console hangup\n"
" Hangs up any call currently placed on the console.\n";
@ -1054,7 +1054,7 @@ static int console_dial(int fd, int argc, char *argv[])
return res;
}
static char dial_usage[] =
static const char dial_usage[] =
"Usage: console dial [extension[@context]]\n"
" Dials a given extension (and context if specified)\n";

View File

@ -529,7 +529,7 @@ static int features_show(int fd, int argc, char **argv)
return RESULT_SUCCESS;
}
static char show_features_usage[] =
static const char show_features_usage[] =
"Usage: feature show channels\n"
" Provides summary information on feature channels.\n";

View File

@ -225,11 +225,11 @@ static struct ast_rtp_protocol gtalk_rtp = {
get_codec: gtalk_get_codec,
};
static char debug_usage[] =
static const char debug_usage[] =
"Usage: gtalk show channels\n"
" Shows current state of the Gtalk channels.\n";
static char reload_usage[] =
static const char reload_usage[] =
"Usage: gtalk reload\n"
" Reload gtalk channel driver.\n";

View File

@ -659,7 +659,7 @@ static int locals_show(int fd, int argc, char **argv)
return RESULT_SUCCESS;
}
static char show_locals_usage[] =
static const char show_locals_usage[] =
"Usage: local show channels\n"
" Provides summary information on active local proxy channels.\n";

View File

@ -1044,24 +1044,24 @@ static int mgcp_show_endpoints(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
static char show_endpoints_usage[] =
static const char show_endpoints_usage[] =
"Usage: mgcp show endpoints\n"
" Lists all endpoints known to the MGCP (Media Gateway Control Protocol) subsystem.\n";
static char audit_endpoint_usage[] =
static const char audit_endpoint_usage[] =
"Usage: mgcp audit endpoint <endpointid>\n"
" Lists the capabilities of an endpoint in the MGCP (Media Gateway Control Protocol) subsystem.\n"
" mgcp debug MUST be on to see the results of this command.\n";
static char debug_usage[] =
static const char debug_usage[] =
"Usage: mgcp set debug\n"
" Enables dumping of MGCP packets for debugging purposes\n";
static char no_debug_usage[] =
static const char no_debug_usage[] =
"Usage: mgcp set debug off\n"
" Disables dumping of MGCP packets for debugging purposes\n";
static char mgcp_reload_usage[] =
static const char mgcp_reload_usage[] =
"Usage: mgcp reload\n"
" Reloads MGCP configuration from mgcp.conf\n"
" Deprecated: please use 'reload chan_mgcp.so' instead.\n";

View File

@ -1336,7 +1336,7 @@ static int console_transfer(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
static char transfer_usage[] =
static const char transfer_usage[] =
"Usage: console transfer <extension>[@context]\n"
" Transfers the currently connected call to the given extension (and\n"
"context if specified)\n";
@ -1363,7 +1363,7 @@ static int console_active(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
static char active_usage[] =
static const char active_usage[] =
"Usage: console active [device]\n"
" If used without a parameter, displays which device is the current\n"
"console. If a device is specified, the console sound device is changed to\n"

View File

@ -1947,23 +1947,23 @@ static int skinny_show_lines(int fd, int argc, char *argv[])
return RESULT_SUCCESS;
}
static char show_devices_usage[] =
static const char show_devices_usage[] =
"Usage: skinny show devices\n"
" Lists all devices known to the Skinny subsystem.\n";
static char show_lines_usage[] =
static const char show_lines_usage[] =
"Usage: skinny show lines\n"
" Lists all lines known to the Skinny subsystem.\n";
static char debug_usage[] =
static const char debug_usage[] =
"Usage: skinny set debug\n"
" Enables dumping of Skinny packets for debugging purposes\n";
static char no_debug_usage[] =
static const char no_debug_usage[] =
"Usage: skinny set debug off\n"
" Disables dumping of Skinny packets for debugging purposes\n";
static char reset_usage[] =
static const char reset_usage[] =
"Usage: skinny reset <DeviceId|all> [restart]\n"
" Causes a Skinny device to reset itself, optionally with a full restart\n";

View File

@ -399,7 +399,7 @@ static int iax_process_template(struct ast_config *cfg, char *s, char *def)
return 0;
}
static char show_provisioning_usage[] =
static const char show_provisioning_usage[] =
"Usage: iax list provisioning [template]\n"
" Lists all known IAX provisioning templates or a\n"
" specific one if specified.\n";