<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-AU;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Verdana","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Verdana","sans-serif";
color:#1F497D;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Verdana","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Putting this into pjsip.endpoint_custom.conf;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">[233](+)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">force_rport=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Didn’t work – as can be seen below, Asterisk is still replying on the source port instead of 5060;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">#<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">U 172.22.4.50:51037 -> 172.22.4.8:5060<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">REGISTER
<a href="sip:172.22.4.8">sip:172.22.4.8</a> SIP/2.0.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Via: SIP/2.0/UDP 172.22.4.50:5060;branch=z9hG4bK6c6b20ee.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">From: <<a href="sip:233@172.22.4.8">sip:233@172.22.4.8</a>>;tag=001469a7180c00a6368fbc8e-7fedf772.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">To: <<a href="sip:233@172.22.4.8">sip:233@172.22.4.8</a>>.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Call-ID:
<a href="mailto:001469a7-180c0002-58f81e51-5a17e8fb@172.22.4.50">001469a7-180c0002-58f81e51-5a17e8fb@172.22.4.50</a>.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Max-Forwards: 70.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Date: Thu, 23 Jul 2015 02:53:26 GMT.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">CSeq: 265 REGISTER.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">User-Agent: Cisco-CP7940G/8.0.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Contact: <<a href="sip:233@172.22.4.50:5060;user=phone;transport=udp">sip:233@172.22.4.50:5060;user=phone;transport=udp</a>>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-001469a7180c>";+u.sip!model.ccm.cisco.com="8".<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Content-Length: 0.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Expires: 120.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">#<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">U 172.22.4.8:5060 -> 172.22.4.50:51037<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">SIP/2.0 401 Unauthorized.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Via: SIP/2.0/UDP 172.22.4.50:5060;rport=51037;received=172.22.4.50;branch=z9hG4bK6c6b20ee.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Call-ID:
<a href="mailto:001469a7-180c0002-58f81e51-5a17e8fb@172.22.4.50">001469a7-180c0002-58f81e51-5a17e8fb@172.22.4.50</a>.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">From: <<a href="sip:233@172.22.4.8">sip:233@172.22.4.8</a>>;tag=001469a7180c00a6368fbc8e-7fedf772.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">To: <<a href="sip:233@172.22.4.8">sip:233@172.22.4.8</a>>;tag=z9hG4bK6c6b20ee.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">CSeq: 265 REGISTER.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">WWW-Authenticate: Digest realm="asterisk",nonce="1437620030/5d32272e81266a723b2c090074799fe2",opaque="65e177e35509170b",algorithm=md5,qop="auth".<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Server: FPBX-AsteriskNOW-12.0.73(13.4.0).<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Content-Length: 0.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Verdana","sans-serif";color:#DA2128">Brendan Ord</span><span style="font-size:13.5pt"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">OntheNet - Network Engineer<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128">P</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""> 07 5553 9222<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128">F</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF">Map</a>)<br>
<a href="http://www.onthenet.com.au/">www.OntheNet.com.au</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Brendan Ord<br>
<b>Sent:</b> Thursday, 23 July 2015 10:51 AM<br>
<b>To:</b> 'andres@telesip.net'; asterisk-users@lists.digium.com<br>
<b>Subject:</b> Re: [asterisk-users] Cisco 7940 and PJSIP registration<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Thank you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">I read that last yesterday afternoon, and I could’ve sworn I tried that but I will look into it again (I’ve tried so many different things it was getting cloudy
what I’ve tried and what worked etc, combined that the extension config gets messed up after playing with it so much so I’m often recreating it as well).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">I also found a bug report in the FreePBX bug tracker
<a href="http://issues.freepbx.org/browse/FREEPBX-8517">http://issues.freepbx.org/browse/FREEPBX-8517</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">It’s not exactly the same, but it’s very similar and the closing comment was “limitation of pjsip”. I might be getting ahead of myself, but would anyone be
able to comment on that? Anyway, this looks like a FreePBX issue so this isn’t the ideal forum to discuss their bugs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Verdana","sans-serif";color:#DA2128">Brendan Ord</span><span style="font-size:13.5pt"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">OntheNet - Network Engineer<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128">P</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""> 07 5553 9222<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128">F</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF">Map</a>)<br>
<a href="http://www.onthenet.com.au/">www.OntheNet.com.au</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">
<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [<a href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>]
<b>On Behalf Of </b>Andres<br>
<b>Sent:</b> Wednesday, 22 July 2015 9:29 PM<br>
<b>To:</b> <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
<b>Subject:</b> Re: [asterisk-users] Cisco 7940 and PJSIP registration<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 7/22/15 1:38 AM, Brendan Ord wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">I’ve gotten to the bottom of this;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Seems that the pjsip.endpoint_custom.conf isn’t getting included properly, or my syntax is wrong.</span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal">Last time I checked you have to put a plus sign to combine parameters from main and custom file. Like this:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-family:"Verdana","sans-serif"">[233](+)</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Verdana","sans-serif"">force_rport=no</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D">If I put force_rport=no into pjsip.endpoint.conf and reload only Asterisk, everything works perfectly. Unfortunately, I’m using FreePBX, so it owns this file
and my changes won’t persist a FreePBX reload.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Verdana","sans-serif";color:#DA2128">Brendan Ord</span><span style="font-size:13.5pt"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif"">OntheNet - Network Engineer<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128">P</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""> 07 5553 9222<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128">F</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif""> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF">Map</a>)<br>
<a href="http://www.onthenet.com.au/">www.OntheNet.com.au</a></span><span style="color:#1F497D"><o:p></o:p></span></p>
</div>
</body>
</html>