<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:Calibri;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">It doesn’t sound like it has anything to do with the registration. It sounds like your router has some sort of SIP Helper application that is trying to assist by re-writing the ports in the INVITE. Many modern routers come with this functionality
 enabled by default, even though in my experience it does nothing but break SIP communications.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Take a look at your router documentation for any mention of SIP functionality and disable it.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><b><span style="font-size:10.5pt;color:black">Ben Newlin </span>
</b><u><span style="font-size:10.5pt;color:black"><o:p></o:p></span></u></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Users <users-bounces@lists.opensips.org> on behalf of Alexander Jankowsky <E75A4669@exemail.com.au><br>
<b>Reply-To: </b>OpenSIPS users mailling list <users@lists.opensips.org><br>
<b>Date: </b>Friday, April 14, 2017 at 8:08 AM<br>
<b>To: </b>"users@lists.opensips.org" <users@lists.opensips.org><br>
<b>Subject: </b>[OpenSIPS-Users] register phone in same local network as opensips</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Times New Roman""><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I have opensips 2.3 beta, along with a local phone both running inside and behind the same router.<o:p></o:p></p>
<p class="MsoNormal">I have one port forwarded for opensips to listen on and a port range forwarded for the local phone.<o:p></o:p></p>
<p class="MsoNormal">There is a remote phone in another domain behind another router, also with a port range forwarded.<o:p></o:p></p>
<p class="MsoNormal">I am using stun for both phones and this resolves the correct IP domains for each phone.<o:p></o:p></p>
<p class="MsoNormal">With stun implemented and saying it is full cone on both phones. The phones can now ring each other.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The local phone can call the remote phone and there is two way audio.<o:p></o:p></p>
<p class="MsoNormal">When the remote phone calls the local phone, there is neither way audio.<o:p></o:p></p>
<p class="MsoNormal">Invites from the remote phone always appear with the correct expected provisioned sip and rtp ports.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I would expect that the local router is changing the local phones sip contact port when it registers.<o:p></o:p></p>
<p class="MsoNormal">When I look at a sipgrep capture of an outgoing invite both the sip and the rtp ports are changed.<o:p></o:p></p>
<p class="MsoNormal">I am not all that sure where in the process or even why the rtp port for the invite has been changed.<o:p></o:p></p>
<p class="MsoNormal">Inbound calls then of course end up sending and returning rtp through non forwarded port ranges.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">What I would like to understand is how to make an inclusion, when any local phones register,<o:p></o:p></p>
<p class="MsoNormal">that will allow the outgoing contact details to show the phones actual provisioned sip ports.<o:p></o:p></p>
<p class="MsoNormal">With that correct, in the outgoing invite, the rtp streams would then normally be within the<o:p></o:p></p>
<p class="MsoNormal">expected range of ports opened and forwarded to the phones and that would solve the audio.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am looking for working examples, but I have not turned up enough specific information about just this.<o:p></o:p></p>
<p class="MsoNormal">Knowing better where and how to start and the names of what I am looking for would be most helpful.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thankyou<o:p></o:p></p>
<p class="MsoNormal">Alex<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</body>
</html>