From: Luigi Rizzo Date: Thu, 19 Jul 2007 08:07:04 +0000 (+0000) Subject: print more of the network settings (externip, externhost etc.) X-Git-Tag: 1.6.0-beta1~3^2~2011 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d60c5ee29676fbaa566c277f7f9ee74713c5aa81;p=thirdparty%2Fasterisk.git 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 --- 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: ");