summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-07-19 08:07:04 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-07-19 08:07:04 +0000
commitd60c5ee29676fbaa566c277f7f9ee74713c5aa81 (patch)
treea2e0513cd9d8086d020d26a3ef673de42b7224fc /channels
parent192ac53c3f3db946107b765fae2979292ae41e4e (diff)
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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cb415e921..f35fa4687 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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: ");