]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
print more of the network settings (externip, externhost etc.)
authorLuigi Rizzo <rizzo@icir.org>
Thu, 19 Jul 2007 08:07:04 +0000 (08:07 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 19 Jul 2007 08:07:04 +0000 (08:07 +0000)
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.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75878 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cb415e9214a41b3c8db494aa791beae4c7cc5533..f35fa4687f2c85f4e57a2a1283ecc0c5a2f2a461 100644 (file)
@@ -11199,6 +11199,13 @@ static int sip_show_settings(int fd, int argc, char *argv[])
        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");
        ast_cli(fd, "  Codecs:                 ");