[asterisk-commits] rizzo: branch rizzo/astobj2 r48405 - /team/rizzo/astobj2/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 12 02:06:13 MST 2006


Author: rizzo
Date: Tue Dec 12 03:06:10 2006
New Revision: 48405

URL: http://svn.digium.com/view/asterisk?view=rev&rev=48405
Log:
merge from trunk rev.48302:
Constify a bunch of the usage strings for CLI commands.


Modified:
    team/rizzo/astobj2/channels/chan_sip.c

Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=48405&r1=48404&r2=48405
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Tue Dec 12 03:06:10 2006
@@ -11745,73 +11745,73 @@
 	return 0;
 }
 	
-static char show_domains_usage[] = 
+static const char show_domains_usage[] = 
 "Usage: sip show domains\n"
 "       Lists all configured SIP local domains.\n"
 "       Asterisk only responds to SIP messages to local domains.\n";
 
-static char notify_usage[] =
+static const char notify_usage[] =
 "Usage: sip notify <type> <peer> [<peer>...]\n"
 "       Send a NOTIFY message to a SIP peer or peers\n"
 "       Message types are defined in sip_notify.conf\n";
 
-static char show_users_usage[] = 
+static const char show_users_usage[] = 
 "Usage: sip show users [like <pattern>]\n"
 "       Lists all known SIP users.\n"
 "       Optional regular expression pattern is used to filter the user list.\n";
 
-static char show_user_usage[] =
+static const char show_user_usage[] =
 "Usage: sip show user <name> [load]\n"
 "       Shows all details on one SIP user and the current status.\n"
 "       Option \"load\" forces lookup of peer in realtime storage.\n";
 
-static char show_inuse_usage[] = 
+static const char show_inuse_usage[] = 
 "Usage: sip show inuse [all]\n"
 "       List all SIP users and peers usage counters and limits.\n"
 "       Add option \"all\" to show all devices, not only those with a limit.\n";
 
 
-static char show_channel_usage[] = 
+static const char show_channel_usage[] = 
 "Usage: sip show channel <channel>\n"
 "       Provides detailed status on a given SIP channel.\n";
 
-static char show_history_usage[] = 
+static const char show_history_usage[] = 
 "Usage: sip show history <channel>\n"
 "       Provides detailed dialog history on a given SIP channel.\n";
 
-static char show_peers_usage[] = 
+static const char show_peers_usage[] = 
 "Usage: sip show peers [like <pattern>]\n"
 "       Lists all known SIP peers.\n"
 "       Optional regular expression pattern is used to filter the peer list.\n";
 
-static char show_peer_usage[] =
+static const char show_peer_usage[] =
 "Usage: sip show peer <name> [load]\n"
 "       Shows all details on one SIP peer and the current status.\n"
 "       Option \"load\" forces lookup of peer in realtime storage.\n";
 
 
-static char show_reg_usage[] =
+static const char show_reg_usage[] =
 "Usage: sip show registry\n"
 "       Lists all registration requests and status.\n";
 
-static char no_history_usage[] = 
+static const char no_history_usage[] = 
 "Usage: sip history off\n"
 "       Disables recording of SIP dialog history for debugging purposes\n";
 
-static char history_usage[] = 
+static const char history_usage[] = 
 "Usage: sip history\n"
 "       Enables recording of SIP dialog history for debugging purposes.\n"
 "Use 'sip show history' to view the history of a call number.\n";
 
-static char sip_reload_usage[] =
+static const char sip_reload_usage[] =
 "Usage: sip reload\n"
 "       Reloads SIP configuration from sip.conf\n";
 
-static char show_objects_usage[] =
+static const char show_objects_usage[] =
 "Usage: sip show objects\n" 
 "       Lists status of known SIP objects\n";
 
-static char show_settings_usage[] = 
+static const char show_settings_usage[] = 
 "Usage: sip show settings\n"
 "       Provides detailed list of the configuration of the SIP channel.\n";
 



More information about the asterisk-commits mailing list