From d60c5ee29676fbaa566c277f7f9ee74713c5aa81 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo <rizzo@icir.org> Date: Thu, 19 Jul 2007 08:07:04 +0000 Subject: [PATCH] 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 --- channels/chan_sip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cb415e9214..f35fa4687f 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: "); -- GitLab