<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<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; ">
My Sipwise is behind a NAT. It can the problem? That the edge router changes the source port for nat reasons.
<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
In the afirmative case, there are any workaround for solve this?<br>
<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">Outlook Mobile</a></div>
</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Marco Capetta <mcapetta@sipwise.com><br>
<b>Sent:</b> Tuesday, April 14, 2020 5:13:13 PM<br>
<b>To:</b> spce-user@lists.sipwise.com <spce-user@lists.sipwise.com><br>
<b>Subject:</b> Re: [Spce-user] Issue after upgrade from 4.5.13 to 5.5.11</font>
<div> </div>
</div>
<div><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="x_moz-cite-prefix">On 4/14/20 3:10 PM, Robert Cuaresma wrote:<br>
</div>
<blockquote type="cite">
<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="x_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">Outlook Mobile</a></div>
</span><br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Marco Capetta
<a class="x_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="x_moz-txt-link-abbreviated" href="mailto:spce-user@lists.sipwise.com">
spce-user@lists.sipwise.com</a> <a class="x_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 lang="EN-US" style="font-size:12.0pt"><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_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"}
p.x_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
tt
        {font-family:"Courier New"}
span.x_x_EstiloCorreo22
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 3.0cm 70.85pt 3.0cm}
-->
</style>
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">Hi Marco, thanks for the reply.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">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_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> </span></p>
<div>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">It works.</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">New request on proxy - M=INVITE R=<span style="background:yellow"><a class="x_x_moz-txt-link-freetext" href="sip:3493712XXXX@XX.XX.144.197:5060">sip:3493712XXXX@XX.XX.144.197:5060</a></span>
 F=<a class="x_x_moz-txt-link-freetext" href="sip:3465522XXXX@XX.XX.38.229">sip:3465522XXXX@XX.XX.38.229</a> T=<a class="x_x_moz-txt-link-freetext" href="sip:3491530XXXX@XX.XX.144.197">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_x_moz-txt-link-abbreviated" href="mailto:ID=520502484_50133906@XX.XX.38.229">
ID=520502484_50133906@XX.XX.38.229</a> UA='<null>'</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">Call from PSTN - R=<a class="x_x_moz-txt-link-freetext" href="sip:3493712XXXX@XX.XX.144.197:5060">sip:3493712XXXX@XX.XX.144.197:5060</a>
<a class="x_x_moz-txt-link-abbreviated" href="mailto:ID=520502484_50133906@XX.XX.38.229">
ID=520502484_50133906@XX.XX.38.229</a> UA='<null>'</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">Inbound peering group '2' matched, looking up peer host - R=<a class="x_x_moz-txt-link-freetext" href="sip:3493712XXXX@XX.XX.144.197:5060">sip:3493712XXXX@XX.XX.144.197:5060</a>
<a class="x_x_moz-txt-link-abbreviated" href="mailto:ID=520502484_50133906@XX.XX.38.229">
ID=520502484_50133906@XX.XX.38.229</a> UA='<null>'</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt"> </span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">Fail</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">New request on proxy - M=INVITE R=<span style="background:yellow"><a class="x_x_moz-txt-link-freetext" href="sip:3493764XXXX@XX.XX.144.197:5060">sip:3493764XXXX@XX.XX.144.197:5060</a></span>
 F=<a class="x_x_moz-txt-link-freetext" href="sip:3469786XXXX@XX.XX.38.229">sip:3469786XXXX@XX.XX.38.229</a> T=<a class="x_x_moz-txt-link-freetext" href="sip:349376XXXX@XX.XX.144.197">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_x_moz-txt-link-abbreviated" href="mailto:ID=520504084_38977676@XX.XX.38.229">
ID=520504084_38977676@XX.XX.38.229</a> UA='<null>'</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt">Call from PSTN - R=<a class="x_x_moz-txt-link-freetext" href="sip:3493764XXXX@XX.XX.144.197:5060">sip:3493764XXXX@XX.XX.144.197:5060</a>
<a class="x_x_moz-txt-link-abbreviated" href="mailto:ID=520504084_38977676@XX.XX.38.229">
ID=520504084_38977676@XX.XX.38.229</a> UA='<null>'</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt; color:black">No matching inbound peer rule in any peering group, rejecting call - R=<a class="x_x_moz-txt-link-freetext" href="sip:3493764XXXX@XX.XX.144.197:5060">sip:3493764XXXX@XX.XX.144.197:5060</a>
<a class="x_x_moz-txt-link-abbreviated" href="mailto:ID=520504084_38977676@XX.XX.38.229">
ID=520504084_38977676@XX.XX.38.229</a> UA='<null>'</span></p>
<p class="x_x_MsoNormal"><span lang="EN-US" style="font-size:12.0pt; color:black"> </span></p>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Saludos,</span></p>
<p class="x_x_MsoNormal"><span style="font-size:14.0pt; color:teal">Robert Cuaresma</span></p>
</div>
<br>
</div>
</blockquote>
<br>
<div class="x_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">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>
</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">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>
</div>
</body>
</html>