<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    I didn't want to post this because its kind of ugly, but we *did*
    actually do it a number of years ago to get around this issue with
    chan_sip.<br>
    <br>
    Our original architecture was based on LXC, and we had large servers
    running hundreds of containers, each running asterisk.  The "host"
    ran asterisk too, as the gateway for all the container instances.<br>
    <br>
    We once used two of those containers to run asterisk on specific
    host interfaces (one instance bridged to one nic, the other to the
    other).  The host asterisk would route calls out one container or
    the other, with the effect you are looking for...<br>
    <br>
    Cheers,<br>
    <br>
    Jeff LaCoursiere<br>
    StratusTalk, Inc.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/29/20 9:05 PM, David Cunningham
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHGbP-8DyT3RZH=XUTLW=jHfAoUT7OpYCpDyL4QjHSij9pgdGw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hi Dovid,</div>
        <div><br>
        </div>
        <div>We can change the SDP in Kamailio, but Asterisk will still
          send its RTP from its default address. The remote end is
          strict about accepting RTP from the specified source and won't
          accept it. Have you any suggestions to solve that problem?</div>
        <div><br>
        </div>
        <div>Thank you.</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, 30 Oct 2020 at 14:49,
          Dovid Bender <<a href="mailto:dovid@telecurve.com"
            moz-do-not-send="true">dovid@telecurve.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="auto">Why not use OpenSips/Kamailoo in between?
            Where you want 1.1.1.1 you pass it along as is. Where you
            want 2.2.2.2 change the sdp in opensips/kamailio</div>
          <div><br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Thu, Oct 29, 2020 at
                20:44 David Cunningham <<a
                  href="mailto:dcunningham@voisonics.com"
                  target="_blank" moz-do-not-send="true">dcunningham@voisonics.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div dir="ltr">
                  <div>Hello,</div>
                  <div><br>
                  </div>
                  <div>Does anyone know a way with chan_sip to tell
                    Asterisk to use a specific IP address for its end of
                    the communication for a specific device? Something
                    like:<br>
                  </div>
                  <br>
                  <div>[device]</div>
                  <div>type = friend</div>
                  <div>host = 11.22.11.22<br>
                  </div>
                  <div>ouraddress = 33.44.33.44</div>
                  <div><br>
                  </div>
                  <div>This is for use on a server with multiple IP
                    addresses. There is the "extenip" setting, but it's
                    really designed for NAT, and can only appear in the
                    [general] section.<br>
                  </div>
                  <div><br>
                  </div>
                  <div>Any suggestions would be greatly appreciated.</div>
                </div>
              </blockquote>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>