]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add note to 'sip show settings' regarding dual-stack support, and a :: bindaddress.
authorJason Parker <jparker@digium.com>
Tue, 7 Sep 2010 20:58:34 +0000 (20:58 +0000)
committerJason Parker <jparker@digium.com>
Tue, 7 Sep 2010 20:58:34 +0000 (20:58 +0000)
(closes issue #17831)
Reported by: oej
Patches:
      17831-v6wildcardbind.diff uploaded by qwell (license 4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285369 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index b0a6e12e5bbae6c9256aa85d8a1d949eeb6746f1..de8be21bd1d7a1c5512bb1fc129cc5bf7964fb3c 100644 (file)
@@ -16810,6 +16810,10 @@ static char *sip_show_settings(struct ast_cli_entry *e, int cmd, struct ast_cli_
        ast_cli(a->fd, "\n\nGlobal Settings:\n");
        ast_cli(a->fd, "----------------\n");
        ast_cli(a->fd, "  UDP Bindaddress:        %s\n", ast_sockaddr_stringify(&bindaddr));
+       if (ast_sockaddr_is_ipv6(&bindaddr) && ast_sockaddr_is_any(&bindaddr)) {
+               ast_cli(a->fd, "  ** Additional Info:\n");
+               ast_cli(a->fd, "     [::] may include IPv4 in addition to IPv6, if such a feature is enabled in the OS.\n");
+       }
        ast_cli(a->fd, "  TCP SIP Bindaddress:    %s\n",
                sip_cfg.tcp_enabled != FALSE ?
                                ast_sockaddr_stringify(&sip_tcp_desc.local_address) :