<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <tt>Hi,<br>
      <br>
      in mr4.5.X there was no easy way to distinguish inbound calls
      received from two different providers that were using the same IP
      as source.<br>
      This is way in mr5.5.X we introduced the inbound rules for
      peerings. In additional to the rules you can manually configure
      there is an implicit one: IP, port and protocoll has to match the
      ones configured in the peer.<br>
      At the moment there no "official" way to bypass this implicit
      rule. You have to check in kamailio config and remove or comment
      out the part where the port is checked.<br>
      <br>
      Cheers<br>
      Marco<br>
      <br>
    </tt><br>
    <div class="moz-cite-prefix">On 4/14/20 3:10 PM, Robert Cuaresma
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DB6P190MB0453A90BD6963CDC3D4641A9DFDA0@DB6P190MB0453.EURP190.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="auto" style="direction: ltr; margin: 0; padding: 0;
        font-family: sans-serif; font-size: 11pt; color: black; ">
        Thanks Marco,<br>
        <br>
      </div>
      <div dir="auto" style="direction: ltr; margin: 0; padding: 0;
        font-family: sans-serif; font-size: 11pt; color: black; ">
        Is there any way to permit all source porta from the same IP
        address? <br>
        <br>
      </div>
      <div dir="auto" style="direction: ltr; margin: 0; padding: 0;
        font-family: sans-serif; font-size: 11pt; color: black; ">
        On Sipwise 4.5.12 and I don't have this issue.<br>
        <br>
      </div>
      <div dir="auto" style="direction: ltr; margin: 0; padding: 0;
        font-family: sans-serif; font-size: 11pt; color: black; ">
        <span id="OutlookSignature">
          <div dir="auto" style="direction: ltr; margin: 0; padding: 0;
            font-family: sans-serif; font-size: 11pt; color: black; ">
            Enviado desde <a href="https://aka.ms/blhgte"
              moz-do-not-send="true">Outlook Mobile</a></div>
        </span><br>
      </div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b> Marco
          Capetta <a class="moz-txt-link-rfc2396E" href="mailto:mcapetta@sipwise.com"><mcapetta@sipwise.com></a><br>
          <b>Sent:</b> Tuesday, April 14, 2020 2:51:34 PM<br>
          <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a>
          <a class="moz-txt-link-rfc2396E" href="mailto:spce-user@lists.sipwise.com"><spce-user@lists.sipwise.com></a><br>
          <b>Subject:</b> Re: [Spce-user] Issue after upgrade from
          4.5.13 to 5.5.11</font>
        <div> </div>
      </div>
      <div><font size="-1"><tt>Hi,<br>
            <br>
            What you find written in the logs with "</tt><tt><span
              style="font-size:12.0pt" lang="EN-US"><span
                style="background:yellow">IP=XX.XX.38.229:42314"</span></span></tt><tt>
            is the source IP (so the port from which your provider is
            sending the message) not the destination IP.</tt><tt><br>
          </tt><tt>You have to ask them to use always the same source
            ip:port to send messages to you.</tt><tt><br>
          </tt><tt><br>
          </tt><tt>Cheers</tt><tt><br>
          </tt><tt>Marco</tt></font><br>
        <br>
        <div class="x_moz-cite-prefix">On 4/14/20 2:08 PM, Robert
          Cuaresma wrote:<br>
        </div>
        <blockquote type="cite">
          <meta name="Generator" content="Microsoft Word 15 (filtered
            medium)">
          <style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Lucida Sans"}
@font-face
        {}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
tt
        {font-family:"Courier New"}
span.x_EstiloCorreo22
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 3.0cm 70.85pt 3.0cm}
div.x_WordSection1
        {}
-->
</style>
          <div class="x_WordSection1">
            <p class="x_MsoNormal"><span style="font-size:12.0pt"
                lang="EN-US">Hi Marco, thanks for the reply.</span></p>
            <p class="x_MsoNormal"><span style="font-size:12.0pt"
                lang="EN-US"> </span></p>
            <p class="x_MsoNormal"><span style="font-size:12.0pt"
                lang="EN-US">Yes I have seen that you say but I don’t
                understand. This is strange. My SIP Provider always send
                me the SIP traffic with destination port 5060 UDP, that
                Sipwise is listening for. The RURI show that the call
                was sended to the port 5060, but the IP tag show that
                the destination port is 42314. This looks as instead of
                setting the destination port, sipwise are setting the
                source port of the sip packet. I don't know if I'm
                explaining myself correctly.</span></p>
            <p class="x_MsoNormal"><span style="font-size:12.0pt"
                lang="EN-US"> </span></p>
            <div>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US"> </span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">It works.</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">New request on proxy - M=INVITE R=<span
                    style="background:yellow"><a
                      class="x_moz-txt-link-freetext"
                      href="sip:3493712XXXX@XX.XX.144.197:5060"
                      moz-do-not-send="true">sip:3493712XXXX@XX.XX.144.197:5060</a></span>
                  F=<a class="x_moz-txt-link-freetext"
                    href="sip:3465522XXXX@XX.XX.38.229"
                    moz-do-not-send="true">sip:3465522XXXX@XX.XX.38.229</a>
                  T=<a class="x_moz-txt-link-freetext"
                    href="sip:3491530XXXX@XX.XX.144.197"
                    moz-do-not-send="true">sip:3491530XXXX@XX.XX.144.197</a>
                  <span style="background:yellow">IP=XX.XX.38.229:5060</span>
                  (127.0.0.1:5060) <a
                    class="x_moz-txt-link-abbreviated"
                    href="mailto:ID=520502484_50133906@XX.XX.38.229"
                    moz-do-not-send="true">
                    ID=520502484_50133906@XX.XX.38.229</a>
                  UA='<null>'</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Call from PSTN - R=<a
                    class="x_moz-txt-link-freetext"
                    href="sip:3493712XXXX@XX.XX.144.197:5060"
                    moz-do-not-send="true">sip:3493712XXXX@XX.XX.144.197:5060</a>
                  <a class="x_moz-txt-link-abbreviated"
                    href="mailto:ID=520502484_50133906@XX.XX.38.229"
                    moz-do-not-send="true">
                    ID=520502484_50133906@XX.XX.38.229</a>
                  UA='<null>'</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Inbound peering group '2' matched,
                  looking up peer host - R=<a
                    class="x_moz-txt-link-freetext"
                    href="sip:3493712XXXX@XX.XX.144.197:5060"
                    moz-do-not-send="true">sip:3493712XXXX@XX.XX.144.197:5060</a>
                  <a class="x_moz-txt-link-abbreviated"
                    href="mailto:ID=520502484_50133906@XX.XX.38.229"
                    moz-do-not-send="true">
                    ID=520502484_50133906@XX.XX.38.229</a>
                  UA='<null>'</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US"> </span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Fail</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">New request on proxy - M=INVITE R=<span
                    style="background:yellow"><a
                      class="x_moz-txt-link-freetext"
                      href="sip:3493764XXXX@XX.XX.144.197:5060"
                      moz-do-not-send="true">sip:3493764XXXX@XX.XX.144.197:5060</a></span>
                  F=<a class="x_moz-txt-link-freetext"
                    href="sip:3469786XXXX@XX.XX.38.229"
                    moz-do-not-send="true">sip:3469786XXXX@XX.XX.38.229</a>
                  T=<a class="x_moz-txt-link-freetext"
                    href="sip:349376XXXX@XX.XX.144.197"
                    moz-do-not-send="true">sip:349376XXXX@XX.XX.144.197</a>
                  <span style="background:yellow">IP=XX.XX.38.229:42314</span>
                  (127.0.0.1:5060) <a
                    class="x_moz-txt-link-abbreviated"
                    href="mailto:ID=520504084_38977676@XX.XX.38.229"
                    moz-do-not-send="true">
                    ID=520504084_38977676@XX.XX.38.229</a>
                  UA='<null>'</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt"
                  lang="EN-US">Call from PSTN - R=<a
                    class="x_moz-txt-link-freetext"
                    href="sip:3493764XXXX@XX.XX.144.197:5060"
                    moz-do-not-send="true">sip:3493764XXXX@XX.XX.144.197:5060</a>
                  <a class="x_moz-txt-link-abbreviated"
                    href="mailto:ID=520504084_38977676@XX.XX.38.229"
                    moz-do-not-send="true">
                    ID=520504084_38977676@XX.XX.38.229</a>
                  UA='<null>'</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt;
                  color:black" lang="EN-US">No matching inbound peer
                  rule in any peering group, rejecting call - R=<a
                    class="x_moz-txt-link-freetext"
                    href="sip:3493764XXXX@XX.XX.144.197:5060"
                    moz-do-not-send="true">sip:3493764XXXX@XX.XX.144.197:5060</a>
                  <a class="x_moz-txt-link-abbreviated"
                    href="mailto:ID=520504084_38977676@XX.XX.38.229"
                    moz-do-not-send="true">
                    ID=520504084_38977676@XX.XX.38.229</a>
                  UA='<null>'</span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt;
                  color:black" lang="EN-US"> </span></p>
              <p class="x_MsoNormal"><span style="font-size:12.0pt;
                  color:black">Saludos,</span></p>
              <p class="x_MsoNormal"><span style="font-size:14.0pt;
                  color:teal">Robert Cuaresma</span></p>
            </div>
            <br>
          </div>
        </blockquote>
        <br>
        <div class="x_moz-signature">-- <br>
          <div style="line-height:16px; margin:6px 0; padding:8px 8px
            8px 8px; border-top:1px #aeb1a6 dotted; border-bottom:1px
            #aeb1a6 dotted; font-family:'Lucida Sans',Lucida
            Grande,Verdana,Arial,Sans-Serif; font-size:11px;
            color:#555555">
            <strong style="color:#333333; text-transform:uppercase;
              font-size:10px">Marco Capetta
            </strong><br>
            VoIP Developer
            <p><a href="http://www.sipwise.com"
                style="color:rgb(0,136,204)!important;
                text-decoration:none!important; border-bottom:1px dotted
                #AAA" moz-do-not-send="true">Sipwise GmbH
              </a>, Campus 21/Europaring F15<br>
              AT-2345 Brunn am Gebirge </p>
            <p>Phone:  <a href="tel:+4313012044"
                style="color:rgb(0,136,204)!important;
                text-decoration:none!important; border-bottom:1px dotted
                #AAA" moz-do-not-send="true">
                +43(0)1 301 2044 </a><br>
              Email:  <a href="mailto:mcapetta@sipwise.com"
                style="color:rgb(0,136,204)!important;
                text-decoration:none!important; border-bottom:1px dotted
                #AAA" moz-do-not-send="true">
                mcapetta@sipwise.com </a><br>
              Website:  <a href="http://www.sipwise.com"
                style="color:rgb(0,136,204)!important;
                text-decoration:none!important; border-bottom:1px dotted
                #AAA" moz-do-not-send="true">
                www.sipwise.com </a></p>
            <p>Particulars according Austrian Companies Code paragraph
              14<br>
              "Sipwise GmbH" - Europaring F15 - 2345 Brunn am Gebirge<br>
              FN:305595f, Commercial Court Vienna, ATU64002206 </p>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <div style="line-height:16px; margin:6px 0; padding:8px 8px 8px
        8px; border-top:1px #aeb1a6 dotted; border-bottom:1px #aeb1a6
        dotted; font-family: 'Lucida Sans', Lucida Grande, Verdana,
        Arial, Sans-Serif; font-size:11px; color:#555555;"> <strong
          style="color:#333333; text-transform:uppercase;
          font-size:10px;"> Marco Capetta </strong> <br>
        VoIP Developer
        <p> <a href="http://www.sipwise.com" style="color:rgb(0, 136,
            204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;"> Sipwise GmbH </a> , Campus
          21/Europaring F15<br>
          AT-2345 Brunn am Gebirge </p>
        <p> Phone:  <a href="tel:+4313012044" style="color:rgb(0, 136,
            204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;"> +43(0)1 301 2044 </a> <br>
          Email:  <a href="mailto:mcapetta@sipwise.com"
            style="color:rgb(0, 136, 204) !important;
            text-decoration:none !important; border-bottom:1px dotted
            #AAA;"> mcapetta@sipwise.com </a> <br>
          Website:  <a href="http://www.sipwise.com"
            style="color:rgb(0, 136, 204) !important;
            text-decoration:none !important; border-bottom:1px dotted
            #AAA;"> www.sipwise.com </a> </p>
        <p>
          Particulars according Austrian Companies Code paragraph 14<br>
          "Sipwise GmbH" - Europaring F15 - 2345 Brunn am Gebirge<br>
          FN:305595f, Commercial Court Vienna, ATU64002206
        </p>
      </div>
    </div>
  </body>
</html>