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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 20 05:52:32 CDT 2007


Author: rizzo
Date: Fri Jul 20 05:52:31 2007
New Revision: 76032

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76032
Log:
update to flags reverted to 32 bit, and add some output
in 'sip show settings'


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=76032&r1=76031&r2=76032
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Fri Jul 20 05:52:31 2007
@@ -656,7 +656,7 @@
 	int headers;            /*!< # of SIP Headers */
 	int method;             /*!< Method of this request */
 	int lines;              /*!< Body Content */
-	uint64_t flags;		/*!< SIP_PKT Flags for this packet */ /* XXX should be ast_flags */
+	uint32_t flags;		/*!< SIP_PKT Flags for this packet */ /* XXX should be ast_flags */
 	unsigned int sdp_start; /*!< the line number where the SDP begins */
 	unsigned int sdp_end;   /*!< the line number where the SDP ends */
 	char *header[SIP_MAX_HEADERS];
@@ -11569,6 +11569,14 @@
 	else
 		ast_cli(fd, "  SIP realtime:           Enabled\n" );
 
+	ast_cli(fd, "\nNetwork Settings:\n");
+	ast_cli(fd, "---------------------------\n");
+	ast_cli(fd, "  Externhost:             %s\n", externhost);
+	ast_cli(fd, "  Externip:               %s:%d\n", ast_inet_ntoa(externip.sin_addr), ntohs(externip.sin_port));
+	ast_cli(fd, "  Externrefresh:          %d\n", externrefresh);
+	ast_cli(fd, "  Internal IP:            %s:%d\n", ast_inet_ntoa(internip.sin_addr), ntohs(internip.sin_port));
+	ast_cli(fd, "  Stun server:            %s:%d\n", ast_inet_ntoa(stunaddr.sin_addr), ntohs(stunaddr.sin_port));
+
 	ast_cli(fd, "\nGlobal Signalling Settings:\n");
 	ast_cli(fd, "---------------------------\n");
 	ast_cli(fd, "  Codecs:                 ");




More information about the asterisk-commits mailing list