aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-06 08:16:59 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-06 08:16:59 +0000
commitb52d1e64076650ec087771902a6bc69703529678 (patch)
treeb4864ac7ffdf0298a9aa73853242981af4bcb610 /channels
parentfbee6c76c16881a6c499ac02d6aa016159c8c34f (diff)
Disabling code used by dumpdb with #ifdef, since I believe we might use it sometime in the
future, but also want to avoid compiler warnings now. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128344 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 54a65a4e4..d6b7cdfac 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12065,6 +12065,17 @@ static struct _map_x_s natmodes[] = {
{ -1, NULL}, /* terminator */
};
+/*! \brief Convert NAT setting to text string */
+static const char *nat2str(int nat)
+{
+ return map_x_s(natmodes, nat, "Unknown");
+}
+
+#ifdef NOTUSED
+/* OEJ: This is not used, but may be useful in the future, so I don't want to
+ delete it. Keeping it enabled generates compiler warnings.
+ */
+
static struct _map_x_s natcfgmodes[] = {
{ SIP_NAT_NEVER, "never"},
{ SIP_NAT_ROUTE, "route"},
@@ -12073,17 +12084,12 @@ static struct _map_x_s natcfgmodes[] = {
{ -1, NULL}, /* terminator */
};
-/*! \brief Convert NAT setting to text string */
-static const char *nat2str(int nat)
-{
- return map_x_s(natmodes, nat, "Unknown");
-}
-
/*! \brief Convert NAT setting to text string appropriate for config files */
static const char *nat2strconfig(int nat)
{
return map_x_s(natcfgmodes, nat, "Unknown");
}
+#endif
/*! \brief Report Peer status in character string
* \return 0 if peer is unreachable, 1 if peer is online, -1 if unmonitored