Archived
14
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@75878 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
rizzo 2007-07-19 08:07:04 +00:00
parent a09795a098
commit 0840ee9397

View 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: ");