[asterisk-commits] rizzo: trunk r75878 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 19 03:07:05 CDT 2007


Author: rizzo
Date: Thu Jul 19 03:07:04 2007
New Revision: 75878

URL: http://svn.digium.com/view/asterisk?view=rev&rev=75878
Log:
print more of the network settings (externip, externhost etc.)
in the "sip show settings" cli output. I have put these in a
separate section, probably even bindaddr and SIP port should go
there.

There are more things to add here e.g. localnet and so on.


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=75878&r1=75877&r2=75878
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jul 19 03:07:04 2007
@@ -11198,6 +11198,13 @@
 		ast_cli(fd, "  SIP realtime:           Disabled\n" );
 	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(__ourip), ntohs(bindaddr.sin_port));
 
 	ast_cli(fd, "\nGlobal Signalling Settings:\n");
 	ast_cli(fd, "---------------------------\n");




More information about the asterisk-commits mailing list