<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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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: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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.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;}
/* List Definitions */
@list l0
        {mso-list-id:34933371;
        mso-list-type:hybrid;
        mso-list-template-ids:766523748 -667774166 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@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:-.25in;
        font-family:"Calibri","sans-serif";
        mso-fareast-font-family:Calibri;}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        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:-.25in;
        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:-.25in;
        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:-.25in;
        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:-.25in;
        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:-.25in;
        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:-.25in;
        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:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">> I'd do a packet capture -- ideally from the phone, or using your switch to mirror the phone's port -- and look for a SIP NOTIFY. Then
<o:p></o:p></p>
<p class="MsoPlainText">> we can know if a NOTIFY is not being sent, or if it's just not being processed as desired by your Cisco SPA 509G. If it's not there, do
<o:p></o:p></p>
<p class="MsoPlainText">> the same on your asterisk server, and if we see it on the asterisk server but not at the endpoint, we can suspect network
<o:p></o:p></p>
<p class="MsoPlainText">> configuration.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> You can also get some more detail about what endpoints are subscribed with "sip show subscriptions" in the asterisk console, but
<o:p></o:p></p>
<p class="MsoPlainText">> since it says "Watchers 2", that suggests the subscription has been made. I'd just verify that specifically the device you are using for
<o:p></o:p></p>
<p class="MsoPlainText">> testing is subscribed.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">> Also, I know if you turn the verbosity up high enough (core set verbosity 3) you will get messages in the console about notifications
<o:p></o:p></p>
<p class="MsoPlainText">> sent. You can also "set sip debug on" or something along those lines and have Asterisk print all the SIP traffic it's attempting to send.
<o:p></o:p></p>
<p class="MsoPlainText">> Should help you narrow the possible causes.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Here's the sequence I'm seeing with a packet capture from the Asterisk server:<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>301 calls 302. The INVITE from 301 hits Asterisk. Asterisk sends back 100 Trying, and then a NOTIFY to 302 and 303 (which are both subscribed to 301, and they see 301 change to “in use”). 302 and 303 send back 200 OK for the NOTIFYs.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Asterisk sends the INVITE to 302. 302 sends back 100 Trying and then 180 Ringing. After the 180 Ringing, Asterisk sends a NOTIFY to 301 (which I have subscribed to hint 305, which is mapped to SIP/<device> corresponding to the one
I have logged in as 302). No other NOTIFY updates are sent at this time.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>I pick up on 302. 302 sends a 200 OK with session description to Asterisk. Asterisk ACKs this 200 and then sends 2 NOTIFYs to 301 (which is subscribed to both the 302 “Custom device” hint and the 305 “SIP Physical device” hint), and
also sends 1 NOTIFY to 303 (which is only subscribed to the 302 “Custom device” hint).<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>While 301 and 302 are still “on the call”, 303 calls 302. The INVITE from 303 hits Asterisk. Asterisk sends back 100 Trying, and then a NOTIFY to 302 (subscribed to the “Custom device” hint for 303) and 2 NOTIFYs to 301 (subscribed
to both the “Custom device” and “SIP Physical device” hints).<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Asterisk sends the INVITE to 302. 302 sends back 100 Trying and then 180 Ringing. After the 180 Ringing, Asterisk sends a NOTIFY to 301 (which updates the “SIP Physical device” hint). No other NOTIFY updates are sent at this time.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>303 cancels the call and sends a CANCEL to Asterisk. Asterisk responds with 200 OK, sends a NOTIFY to 301, sends a CANCEL to 302, and then sends another NOTIFY to 301. 303 then ACKs Asterisk’s SIP 487, and Asterisk sends 1 additional
NOTIFY to 302 and 301.<o:p></o:p></p>
<p class="MsoPlainText" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1">
<![if !supportLists]><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>301 and 302 finish their call. Asterisk sends a total of 1 NOTIFY to 302 (the status for “Custom device” 301), 2 NOTIFYs to 303 (the status for “Custom device” 301 and 302), and 2 NOTIFYs to 301 (the status for “Custom device” 302 and
“Physical Device” 302).<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">So, it looks to me like I’m missing NOTIFYs for RINGING or RING_INUSE events on Custom devices.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">(Slightly sanitized) Verbose 3 output is pastebin’d: <a href="http://pastebin.com/q51XUeHe">
http://pastebin.com/q51XUeHe</a><o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">The short of the output is – there is no console output showing == Extension Changed 302[hints] new state on the Ringing or InUse&Ringing events – only on InUse or Idle events (which matches what I’m seeing on the phones).<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thank you,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Noah Engelberth<o:p></o:p></p>
<p class="MsoPlainText">MetaLINK Technologies<o:p></o:p></p>
</div>
</body>
</html>