<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 31-07-14 15:06, Joshua Colp wrote:<br>
    <blockquote cite="mid:53DA3F65.2090008@digium.com" type="cite">Jonas
      Kellens wrote:
      <br>
      <blockquote type="cite">On 31-07-14 14:28, Joshua Colp wrote:
        <br>
        <blockquote type="cite">Jonas Kellens wrote:
          <br>
          <blockquote type="cite">
            <br>
            Hello,
            <br>
            <br>
            I read on Yealink support that Yealink IP-phones expect
            <br>
            "Subscription-State:terminated" for there
            Presence/BLF-functionality.
            <br>
            <br>
            So how can I get "Subscription-State:terminated" on Asterisk
            ?
            <br>
          </blockquote>
          <br>
          That would be a bit strange as the subscription would then be
          <br>
          terminated, no more NOTIFY messages would go to it which would
          defeat
          <br>
          the purpose of subscribing to something. The only way to
          achieve that
          <br>
          would be to have the phone unsubscribe or to change the code
          to force
          <br>
          it to terminate the subscription under certain circumstances.
          This
          <br>
          would require knowing the exact specifications and details of
          what
          <br>
          they expect and when. Is there currently a problem you are
          facing with
          <br>
          subscription support?
          <br>
          <br>
        </blockquote>
        <br>
        Hello,
        <br>
        <br>
        this "Subscription-State:terminated" is expected when the
        IP-phone goes
        <br>
        offline (Unregister or cut off from power).
        <br>
      </blockquote>
      <br>
      I would expect that if the phone that went offline was subscribed
      to stuff and the subscription expired.
      <br>
      <br>
      <blockquote type="cite">At that moment indeed the IP-phone no
        longer sends NOTIFY messages.
        <br>
        Also, Asterisk knows very well the SIP peer becomes unreachable
        (see my
        <br>
        first post). But still Asterisk replies "Subscription-State:
        active" to
        <br>
        the IP-phones that request the state of the offline SIP peer.
        <br>
      </blockquote>
      <br>
      Generally IP phones don't send NOTIFY messages. They are sent
      NOTIFY messages to inform them of the state of things they have
      subscribed to (such as devices or mailboxes).
      <br>
      <br>
      <blockquote type="cite">
        <br>
        <br>
        Yealink expects "Subscription-State:terminated" so the Yealink
        IP-phone
        <br>
        can put out the BLF light (in stead of staying in a green mode,
        which
        <br>
        indicates that the SIP peer is still online but not in a call).
        <br>
      </blockquote>
      <br>
      Sending Subscription-State:terminated terminates the subscription.
      If the device in question comes back online you can't send any new
      NOTIFY messages because the subscription is gone. The state of
      what you are subscribed to and the underlying state of the
      subscription itself are different things.
      <br>
      <br>
      <blockquote type="cite">
        <br>
        So I can follow the Yealink logic. Can you ?
        <br>
      </blockquote>
      <br>
      Not really as it doesn't make sense to me. Do you have a link to
      the documentation for this?
      <br>
      <br>
      I've also done a search on the issue tracker and there have been
      no issues filed ever about subscriptions and specifically Yealink.
      <br>
    </blockquote>
    <font face="Helvetica, Arial, sans-serif"><br>
      Hello,<br>
      <br>
      <br>
      I was reading this post :
      <a class="moz-txt-link-freetext" href="http://forum.yealink.com/forum/showthread.php?tid=894">http://forum.yealink.com/forum/showthread.php?tid=894</a><br>
      <br>
      <br>
      Jonas.<br>
    </font><br>
  </body>
</html>