<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Helvetica, Arial, sans-serif">Hello,<br>
      <br>
      I notice that Asterisk always sends Subscription-State: active,
      even when the SIP-peer is offline (IP-phone cut from power) :<br>
      <br>
      <br>
      <i>[Jul 31 11:56:58] NOTICE[32273]: chan_sip.c:26194
        sip_poke_noanswer: Peer 'testacc77000' is now UNREACHABLE!  Last
        qualify: 49</i><i><br>
      </i><i>[Jul 31 11:56:58] Really destroying SIP dialog
        '78b0d1701d3694b1494a0c4b55344d57@ip-sip-server:5060' Method:
        OPTIONS</i><i><br>
      </i><i>[Jul 31 11:56:58] set_destination: Parsing
        <a class="moz-txt-link-rfc2396E" href="mailto:sip:testacc77003@192.168.1.109:1024"><sip:testacc77003@192.168.1.109:1024></a> for address/port to
        send to</i><i><br>
      </i><i>[Jul 31 11:56:58] set_destination: set destination to
        192.168.1.109:1024</i><i><br>
      </i><i>[Jul 31 11:56:58] Reliably Transmitting (NAT) to
        my-public-ip:1024:</i><i><br>
      </i><i>NOTIFY <a class="moz-txt-link-abbreviated" href="mailto:sip:testacc77003@192.168.1.109:1024">sip:testacc77003@192.168.1.109:1024</a> SIP/2.0</i><i><br>
      </i><i>Via: SIP/2.0/UDP
        ip-sip-server:5060;branch=z9hG4bK3afa3dd6;rport</i><i><br>
      </i><i>Max-Forwards: 70</i><i><br>
      </i><i>From:
        <sip:10@ip-sip-server;user=phone>;tag=as00df4bee</i><i><br>
      </i><i>To: <sip:testacc77003@ip-sip-server>;tag=9wdraz254n</i><i><br>
      </i><i>Contact: <sip:10@ip-sip-server:5060></i><i><br>
      </i><i>Call-ID: 3c267066aeb1-bv3r703hb93x</i><i><br>
      </i><i>CSeq: 109 NOTIFY</i><i><br>
      </i><i>User-Agent: myasterisk</i><i><br>
      </i><i>Subscription-State: active</i><i><br>
      </i><i>Event: dialog</i><i><br>
      </i><i>Content-Type: application/dialog-info+xml</i><i><br>
      </i><i>Content-Length: 202</i><i><br>
      </i><i><br>
      </i><i><?xml version="1.0"?></i><i><br>
      </i><i><dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info"
        version="7" state="full" entity="sip:10@ip-sip-server"></i><i><br>
      </i><i><dialog id="10"></i><i><br>
      </i><i><state>terminated</state></i><i><br>
      </i><i></dialog></i><i><br>
      </i><i></dialog-info></i><br>
      <br>
      <br>
      It seems to me that this information is not correct. Is this some
      setting I need to tweak ?<br>
      <br>
      <br>
      <br>
      Kind regards,<br>
      <br>
      Jonas.<br>
      <br>
    </font>
  </body>
</html>