<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.0.1-28479">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>unavailable state not reported to Cisco SPA50X phone</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hello,</p><p>&nbsp;</p><p>(using trixbox with Asterisk 1.6.0.26)</p><p>&nbsp;</p><p>I am looking for information about how Asterisk should notify the unavailable (SIP) state of a SIP device.</p><p>&nbsp;</p><p>I found out that the phone (SPA504G with attendant console) sends a SUBSCRIBE request with an Accept: application/dialog-info+xml.</p><p>&nbsp;</p><p>The situation is that the BLF leds are green even for phones that are currently not &quot;online&quot;. This leads to wrong call transfers from the attendant console into not connected phones by an operator.</p><p>&nbsp;</p><p>Tracing the activity using both sip debug and tcpdump revealed that Asterisk does not send something like an unavailable state for the device in a NOTIFY. </p><p>&nbsp;</p><p>I tried to understand the rfc4235 which states the following: </p><pre>
 &quot;However, using this package to model state for non-
   session dialog usages is out of the scope of this specification.&quot;</pre><p>Does this actually mean that the device state of being &quot;offline&quot; is not part of this standard and as such can not be used to reflect the unavailable state in BLF? </p><p>&nbsp;</p><p>If it indeed is, I can stop searching for a solution in this direction.</p><p>&nbsp;</p><p>BTW I tested with Twinkle softphone and this does reflect correctly the unavailable state, but it uses Accept: application/pidf+xml and is a different method.</p><p>&nbsp;</p><p>Help is much appreciated.</p><p>&nbsp;</p><p>&nbsp;</p><p>Thanks,</p><p>&nbsp;</p><p>&nbsp;</p><p>Hans Feringa</p>
</body>
</html>