<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Chris,<br>
      have you added the "extra_socket:" in the config.yml, and then
      selected the "outbound_socket" in the peer's preferences?<br>
      Please have a look at:
      <a class="moz-txt-link-freetext" href="https://www.sipwise.com/doc/mr5.5.4/spce/ar01s12.html#extra-sip-rtp">https://www.sipwise.com/doc/mr5.5.4/spce/ar01s12.html#extra-sip-rtp</a><br>
      <br>
      Cheers,<br>
    </tt>
    <pre class="moz-signature" cols="72">-- 
Daniel Grotti
Head of Customer Support
Sipwise GmbH, Campus 21/Europaring F15
AT-2345 Brunn am Gebirge

Office: +43(0)130120332
Email: <a class="moz-txt-link-abbreviated" href="mailto:dgrotti@sipwise.com">dgrotti@sipwise.com</a>
Website: <a class="moz-txt-link-freetext" href="https://www.sipwise.com">https://www.sipwise.com</a>
</pre>
    <div class="moz-cite-prefix">On 05/15/2018 01:07 PM, Henk wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:7dedcc51-f038-8749-9eb2-d209c22451d4@voipdigit.nl">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Hi Chris,</p>
      I didn't know you had multiple interfaces, so it seems you need an
      SPCE expert on this (I'm just a normal user<span
        class="moz-smiley-s1"><span>:-)</span></span>).<br>
      You can check the generated configuration in
      /etc/kamailio/lb/kamailio.cfg under <u>external interfaces</u>
      and <u>advertised addresses</u> and see if it matches what you
      expected. Also not sure if multiple interfaces are supported in
      SPCE.<br>
      <br>
      Best regards,<br>
      <br>
      Henk Plessius<br>
      <br>
      <div class="moz-cite-prefix">On 15-5-2018 12:48, Chris Hoffmann
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAN8EJkwzpFAtSwuVywk=EP4CbOa+Ty1g0hsXdJKUTocitwvi9Q@mail.gmail.com">
        <div dir="ltr">So after running:
          <div><br>
          </div>
          <div> ngcp-network --set-interface=eth3
            --advertised-ip=x.x.x.94</div>
          <div><br>
          </div>
          <div>I then ran ngcpcfg apply 'made a change'</div>
          <div><br>
          </div>
          <div>Checking the captures this does not appear to have
            changed anything. The registration is still showing the
            address of eth1 :(</div>
          <div><br>
          </div>
          <div>Have i missed anything? </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>Here is my network.yml</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div>hosts:</div>
            <div>  self:</div>
            <div>    dbnode: '1'</div>
            <div>    eth0:</div>
            <div>      hwaddr: 00:50:56:92:xx:xx</div>
            <div>      ip: 192.168.152.30</div>
            <div>      netmask: 255.255.255.0</div>
            <div>      type:</div>
            <div>      - web_ext</div>
            <div>      - ssh_ext</div>
            <div>      - web_int</div>
            <div>      - rtp_int_eth0</div>
            <div>      - sip_ext_incoming</div>
            <div>    eth1:</div>
            <div>      ip: y.y.y.211</div>
            <div>      netmask: 255.255.255.240</div>
            <div>      type:</div>
            <div>      - sip_ext</div>
            <div>      - rtp_ext</div>
            <div>      - web_ext</div>
            <div>    eth2:</div>
            <div>      ip: z.z.z.42</div>
            <div>      netmask: 255.255.255.252</div>
            <div>      type:</div>
            <div>      - rtp_int_eth2</div>
            <div>      - sip_ext_incoming</div>
            <div>    eth3:</div>
            <div>      advertised_ip:</div>
            <div>      - x.x.x.94</div>
            <div>      ip: x.x.x.94</div>
            <div>      netmask: 255.255.255.252</div>
            <div>      type:</div>
            <div>      - rtp_int_eth3</div>
            <div>      - sip_ext_incoming</div>
            <div>    interfaces:</div>
            <div>    - lo</div>
            <div>    - eth0</div>
            <div>    - eth1</div>
            <div>    - eth2</div>
            <div>    - eth3</div>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, May 15, 2018 at 6:49 PM, Henk
            <span dir="ltr"><<a href="mailto:henk@voipdigit.nl"
                target="_blank" moz-do-not-send="true">henk@voipdigit.nl</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <p>Hi Chris,</p>
                <p>You can set-up an alias address for Kamailio like
                  this:</p>
                <p>ngcp-network --set-interface=eth0
                  --advertised-ip=x.y.z.t</p>
                <p>After that just generate the configs again and it
                  should work. <br>
                </p>
                <p>Best regards,</p>
                <p>Henk Plessius</p>
                <p>VoipDigit<br>
                </p>
                <div>
                  <div class="h5"> <br>
                    <div class="m_6760899672747682929moz-cite-prefix">On
                      14-5-2018 23:32, Chris Hoffmann wrote:<br>
                    </div>
                  </div>
                </div>
                <blockquote type="cite">
                  <div>
                    <div class="h5">
                      <div dir="ltr">Hi All,
                        <div><br>
                        </div>
                        <div>I have a new VoIP provider on a new pysical
                          interface that requres me to do SIP
                          registration. I have configured the details on
                          the peer and set the details
                          in reg_agent.conf.tt2.</div>
                        <div><br>
                        </div>
                        <div>When i do a packet capture, i see the
                          registration being sent out the correct
                          interface, but from the wrong IP address (my
                          primary interface IP is used). Is there any
                          way i can set the socket for the
                          registration? </div>
                        <div><br>
                        </div>
                        <div>Thanks,</div>
                        <div><br>
                        </div>
                        <div>Chris. </div>
                      </div>
                      <br>
                      <fieldset
                        class="m_6760899672747682929mimeAttachmentHeader"></fieldset>
                      <br>
                    </div>
                  </div>
                  <span class="">
                    <pre>______________________________<wbr>_________________
Spce-user mailing list
<a class="m_6760899672747682929moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com" target="_blank" moz-do-not-send="true">Spce-user@lists.sipwise.com</a>
<a class="m_6760899672747682929moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user" target="_blank" moz-do-not-send="true">https://lists.sipwise.com/<wbr>listinfo/spce-user</a>
</pre>
                  </span></blockquote>
                <br>
              </div>
              <br>
              ______________________________<wbr>_________________<br>
              Spce-user mailing list<br>
              <a href="mailto:Spce-user@lists.sipwise.com"
                moz-do-not-send="true">Spce-user@lists.sipwise.com</a><br>
              <a href="https://lists.sipwise.com/listinfo/spce-user"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.sipwise.com/<wbr>listinfo/spce-user</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Spce-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a>
<a class="moz-txt-link-freetext" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>