[asterisk-commits] oej: trunk r128344 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jul 6 03:16:59 CDT 2008


Author: oej
Date: Sun Jul  6 03:16:59 2008
New Revision: 128344

URL: http://svn.digium.com/view/asterisk?view=rev&rev=128344
Log:
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. 


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=128344&r1=128343&r2=128344
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jul  6 03:16:59 2008
@@ -12065,6 +12065,17 @@
 	{ -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 @@
 	{ -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




More information about the asterisk-commits mailing list