<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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
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.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";
        mso-fareast-language:EN-US;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:438067910;
        mso-list-type:hybrid;
        mso-list-template-ids:-697144546 -1625678246 201916419 201916421 201916417 201916419 201916421 201916417 201916419 201916421;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Verdana","sans-serif";
        mso-fareast-font-family:Calibri;
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></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 lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Hi list,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">I’ve been googling this issue and found some good resources however I am still running into problems with the following combo … Here’s my story;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:"Verdana","sans-serif""><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-family:"Verdana","sans-serif"">Asterisk 13.4 with FreePBX 12.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:"Verdana","sans-serif""><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-family:"Verdana","sans-serif"">Migrating from Asterisk 11 / FreePBX 2.11<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="font-family:"Verdana","sans-serif""><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-family:"Verdana","sans-serif"">Mix of Cisco 79xx handsets, mostly 7940G’s.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">My problems started with (the very common) issue of the 7940 not replying to 401 UNAUTHORIZED with a second REGISTER containing the auth digest details.  A quick Google found a heap of information
 in various forums, all with replies from Joshua Colp stating that force_rport=no needs to be set for these endpoints, see
<a href="http://forums.digium.com/viewtopic.php?f=1&t=91699">http://forums.digium.com/viewtopic.php?f=1&t=91699</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">So, (being that this is FreePBX and the main conf files are controlled by that) I jumped into /etc/asterisk/pjsip.endpoint_custom.conf and added;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">[233]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">force_rport=no<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Reloaded everything, recreated the extension and tested again, watching what goes between this endpoint with ‘ngrep –W byline host 172.22.3.228’ and now I get something which I don’t fully
 understand;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">U 172.22.3.228:51440 -> 172.22.4.8:5060<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">REGISTER sip:172.22.4.8 SIP/2.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Via: SIP/2.0/UDP 172.22.3.228:5060;branch=z9hG4bK505b3494.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">From: <sip:233@172.22.4.8>;tag=001469a7180c0011603d4433-6cef1ff3.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">To: <sip:233@172.22.4.8>.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Call-ID: 001469a7-180c0002-58faebd6-05b99917@172.22.3.228.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Max-Forwards: 70.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Date: Wed, 22 Jul 2015 00:41:48 GMT.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">CSeq: 114 REGISTER.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">User-Agent: Cisco-CP7940G/8.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Contact: <sip:233@172.22.3.228:5060;user=phone;transport=udp>;+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"><span style="font-family:"Verdana","sans-serif"">Content-Length: 0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Expires: 120.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">I 172.22.4.8 -> 172.22.3.228 3:3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">....E..:)...@................&..REGISTER sip:172.22.4.8 SIP/2.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Via: SIP/2.0/UDP 172.22.3.228:5060;branch=z9hG4bK505b3494.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">From: <sip:233@172.22.4.8>;tag=001469a7180c0011603d4433-6cef1ff3.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">To: <sip:233@172.22.4.8>.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Call-ID: 001469a7-180c0002-58faebd6-05b99917@172.22.3.228.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Max-Forwards: 70.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Date: Wed, 22 Jul 2015 00:41:48 GMT.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">CSeq: 114 REGISTER.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">User-Agent: Cisco-CP7940G/8.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Contact: <sip:233@172.22.3.228:5060;user=phone;transport=udp>;+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"><span style="font-family:"Verdana","sans-serif"">Content-Lengt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">I don’t understand this reply from Asterisk (172.22.4.8) – why it’s not complete and what’s this 3:3?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">If anyone has input or experience with this problem I would be forever grateful.  I have read that people can get these handsets working with chan_sip (and, indeed they do, as these handsets
 are working perfectly using chan_sip in Asterisk 11), but I would really like to keep everything using pjsip (for the reason that, this is where development and improvements are heading, and I like to be using the best technology if possible).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif"">Thank you…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Verdana","sans-serif";color:#DA2128;mso-fareast-language:EN-AU">Brendan Ord</span><span style="font-size:13.5pt;font-family:"Times New Roman","serif";color:black;mso-fareast-language:EN-AU"><br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-AU">OntheNet - Network Engineer<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128;mso-fareast-language:EN-AU">P</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-AU"> 07 5553 9222<br>
</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#DA2128;mso-fareast-language:EN-AU">F</span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:black;mso-fareast-language:EN-AU"> 07 5593 3557<br>
Level One, 165 Varsity Parade Varsity Lakes Qld 4227 (<a href="https://goo.gl/maps/p25WF"><span style="color:blue">Map</span></a>)<br>
<a href="http://www.onthenet.com.au/"><span style="color:blue">www.OntheNet.com.au</span></a></span><span style="mso-fareast-language:EN-AU"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>