mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
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
This commit is contained in:
@@ -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: ");
|
||||
|
||||
Reference in New Issue
Block a user