<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you Olle.<br>
    <br>
    Well, in my test scenario I will leave the <i>bindaddr=::</i>
    value. <br>
    Any idea if/when asterisk will support two specific bindaddr (one
    for IPv4 and another for IPv6) ?<br>
    <br>
    - Miguel Baptista<br>
    <br>
    <br>
    On 3/13/2013 10:06 AM, Olle E. Johansson wrote:
    <blockquote
      cite="mid:2386B71C-4D83-43FF-9E2F-587A55911A50@edvina.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>; With the current situation, you can do one of four things:</div>
      <div>; &nbsp;a) Listen on a specific IPv4 address. &nbsp; &nbsp; &nbsp;Example:
        bindaddr=192.0.2.1</div>
      <div>; &nbsp;b) Listen on a specific IPv6 address. &nbsp; &nbsp; &nbsp;Example:
        bindaddr=2001:db8::1</div>
      <div>; &nbsp;c) Listen on the IPv4 wildcard. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Example:
        bindaddr=0.0.0.0</div>
      <div>; &nbsp;d) Listen on the IPv4 and IPv6 wildcards. &nbsp;Example:
        bindaddr=::</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>From the configuration file - you can do "ONE" of four
        things, but only one. You can not have multiple bindaddr=
        settings.</div>
      <div><br>
      </div>
      <div>/O</div>
      <div>
        <div>11 mar 2013 kl. 11:03 skrev Miguel Baptista &lt;<a
            moz-do-not-send="true"
            href="mailto:miguel.baptista@uninett.no">miguel.baptista@uninett.no</a>&gt;:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <div bgcolor="#FFFFFF" text="#000000"> Hi Asghar,<br>
            <br>
            Thanks for you reply. Which Asterisk version are you using?
            <br>
            <br>
            I am using Asterisk 11.1.0 <br>
            when I use the <i><small>bindaddr&nbsp; </small></i>parameters
            with specific IP addresses, Asterisk will listen only on the
            last entry. <br>
            <br>
            For example, when I have <br>
            <i><small>bindaddr=ipv4A:port <br>
              </small></i><i><small>bindaddr=[ipv6A]:port </small></i><br>
            <br>
            it will listen only on the IPv6A address<br>
            <br>
            and when I have the other way around:<br>
            <i><small><br>
                bindaddr=[ipv6A]:port </small></i><br>
            <i><small>bindaddr=ipv4A:port <br>
              </small></i><i><small><br>
              </small></i>Asterisk will only listen on the IPv4A
            address.<br>
            <br>
            The only way I found to force asterisk to listen on both
            IPv4A and IPv6 A was to use<small><big> </big></small><i><small><big>bindaddr=[::]

                </big></small></i>but it makes asterisk to listen also
            on the other IP addresses.<br>
            <br>
            Maybe this is fix on a newer Asterisk version.<br>
            <br>
            - Miguel Baptista<br>
            <br>
            On 3/10/2013 8:04 PM, Asghar Mohammad wrote:
            <blockquote
cite="mid:CAL29e+pPOUZHiNiRBV2-5ZBLzdYF27FoM6n5KGzPv35ETb01Eg@mail.gmail.com"
              type="cite">hi,
              <div>i am using similer setup just put&nbsp;<i><small>&nbsp;bindaddr=ipv4A:port

                    and&nbsp;</small></i><i><small>bindaddr=[ipv6A]:port ans
                    it should work.</small></i><br>
                <br>
                <div class="gmail_quote">On Sun, Mar 10, 2013 at 3:04
                  PM, Miguel Baptista <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:miguel.baptista@uninett.no"
                      target="_blank">miguel.baptista@uninett.no</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
                      <br>
                      I am doing some tests with asterisk on a
                      dual-stack environment.&nbsp; I have some doubts
                      regarding asterisk binding addresses on a server
                      with 2 network cards.<br>
                      <br>
                      According to asterisk documentation:<br>
                      <blockquote><i><small>; With the current
                            situation, you can do one of four things:</small></i><br>
                        <i><small>;&nbsp; a) Listen on a specific IPv4
                            address.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example: bindaddr=192.0.2.1</small></i><br>
                        <i><small>;&nbsp; b) Listen on a specific IPv6
                            address.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example: bindaddr=2001:db8::1</small></i><br>
                        <i><small>;&nbsp; c) Listen on the IPv4
                            wildcard.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Example:
                            bindaddr=0.0.0.0</small></i><br>
                        <i><small>;&nbsp; d) Listen on the IPv4 and IPv6
                            wildcards.&nbsp; Example: bindaddr=::</small></i><br>
                        <i><small>; (You can choose independently for
                            UDP, TCP, and TLS, by specifying different
                            values for</small></i><br>
                        <i><small>; "udpbindaddr", "tcpbindaddr", and
                            "tlsbindaddr".)</small></i><br>
                        <i><small>; (Note that using bindaddr=:: will
                            show only a single IPv6 socket in netstat.</small></i><br>
                        <i><small>;&nbsp; IPv4 is supported at the same time
                            using IPv4-mapped IPv6 addresses.)</small></i><br>
                        <i><small>;</small></i><br>
                        <i><small>; You may optionally add a port
                            number. (The default is port 5060 for UDP
                            and TCP, 5061</small></i><br>
                        <i><small>; for TLS).</small></i><br>
                        <i><small>;&nbsp;&nbsp; IPv4 example: bindaddr=<a
                              moz-do-not-send="true"
                              href="http://0.0.0.0:5062/"
                              target="_blank">0.0.0.0:5062</a></small></i><br>
                        <i><small>;&nbsp;&nbsp; IPv6 example: bindaddr=[::]:5062</small></i><br>
                        <i><small>;</small></i><br>
                        <i><small>; The address family of the bound UDP
                            address is used to determine how Asterisk
                            performs</small></i><br>
                        <i><small>; DNS lookups. In cases a) and c)
                            above, only A records are considered. In
                            case b), only</small></i><br>
                        <i><small>; AAAA records are considered. In case
                            d), both A and AAAA records are considered.
                            Note,</small></i><br>
                        <i><small>; however, that Asterisk ignores all
                            records except the first one. In case d),
                            when both A</small></i><br>
                        <i><small>; and AAAA records are available,
                            either an A or AAAA record will be first,
                            and which one</small></i><br>
                        <i><small>; depends on the operating system. On
                            systems using glibc, AAAA records are given</small></i><br>
                        <i><small>; priority.</small></i><br>
                      </blockquote>
                      <br>
                      Lets say that I have two network cards: A and B. <br>
                      Both interfaces have IPv4 and IPv6 addresses: IPv4
                      A, IPv6 A, IPv4 B and IPv6 B.<br>
                      <br>
                      How can I make asterisk to run only on B network
                      addresses (IPv6 and IPv4)? <small><big>The </big></small><i><small><big>bindaddr=[::]


                          </big></small></i><small><big>config parameter
                          tells asterisk to run on all available
                          addresses, including the addresses on the A
                          network. But that's not exactly what I want.<span
                            class="HOEnZb"><font color="#888888"><br>
                              <br>
                              - Miguel Baptista<br>
                              <br>
                            </font></span></big></small> </div>
                    <br>
                    --<br>
_____________________________________________________________________<br>
                    -- Bandwidth and Colocation Provided by <a
                      moz-do-not-send="true"
                      href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a>
                    --<br>
                    New to Asterisk? Join us for a live introductory
                    webinar every Thurs:<br>
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a moz-do-not-send="true"
                      href="http://www.asterisk.org/hello"
                      target="_blank">http://www.asterisk.org/hello</a><br>
                    <br>
                    asterisk-users mailing list<br>
                    To UNSUBSCRIBE or update options visit:<br>
                    &nbsp; &nbsp;<a moz-do-not-send="true"
                      href="http://lists.digium.com/mailman/listinfo/asterisk-users"
                      target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
                  </blockquote>
                </div>
                <br>
              </div>
              <br>
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <br>
              <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.api-digital.com/">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
            </blockquote>
            <br>
          </div>
          --<br>
_____________________________________________________________________<br>
          -- Bandwidth and Colocation Provided by <a
            moz-do-not-send="true" href="http://www.api-digital.com">http://www.api-digital.com</a>
          --<br>
          New to Asterisk? Join us for a live introductory webinar every
          Thurs:<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a moz-do-not-send="true"
            href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
          <br>
          asterisk-users mailing list<br>
          To UNSUBSCRIBE or update options visit:<br>
          &nbsp;&nbsp;<a moz-do-not-send="true"
            href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>