aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-27 00:32:37 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-27 00:32:37 +0000
commit3c42a3a03a16d9943c4e219d3ab95f130e9c82e4 (patch)
tree19d43c01c64fb348b1c9091a1da1e67dd8dc6d6b /channels
parente5f5babf6b201692004277eab18b74cf14555b19 (diff)
add a few const's
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6230 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6e43ca748..88999d589 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -141,17 +141,18 @@ static const char notify_config[] = "sip_notify.conf";
#define RTP 1
#define NO_RTP 0
-const struct cfsip_methods {
+
+static const struct cfsip_methods {
int id;
int need_rtp; /* when this is the 'primary' use for a pvt structure, does it need RTP? */
- char *text;
+ char * const text;
} sip_methods[] = {
- { 0, RTP, "-UNKNOWN-" },
+ { 0, RTP, "-UNKNOWN-" },
{ SIP_RESPONSE, NO_RTP, "SIP/2.0" },
{ SIP_REGISTER, NO_RTP, "REGISTER" },
{ SIP_OPTIONS, NO_RTP, "OPTIONS" },
{ SIP_NOTIFY, NO_RTP, "NOTIFY" },
- { SIP_INVITE, RTP, "INVITE" },
+ { SIP_INVITE, RTP, "INVITE" },
{ SIP_ACK, NO_RTP, "ACK" },
{ SIP_PRACK, NO_RTP, "PRACK" },
{ SIP_BYE, NO_RTP, "BYE" },
@@ -215,10 +216,10 @@ static const struct cfalias {
/* List of well-known SIP options. If we get this in a require,
we should check the list and answer accordingly. */
-const struct cfsip_options {
+static const struct cfsip_options {
int id; /* Bitmap ID */
int supported; /* Supported by Asterisk ? */
- char *text; /* Text id, as in standard */
+ char * const text; /* Text id, as in standard */
} sip_options[] = {
/* Replaces: header for transfer */
{ SIP_OPT_REPLACES, SUPPORTED, "replaces" },