<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>According to the RFC, yes:</p>
    <p>
      <blockquote type="cite">
        <pre>      In addition to being a request to unsubscribe, a SUBSCRIBE message
      with "Expires" of 0 also causes a fetch of state; see section
      3.3.6.
</pre>
      </blockquote>
      I'll report a bug. Thanks for your reply.<br>
    </p>
    <div class="moz-cite-prefix">On 25. 10. 2021. 09:25, Olle E.
      Johansson wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:DF34C041-FFB1-435E-B960-2EB4C1024826@edvina.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      A subscription with expire:0 should get at least ONE notify,
      right? I’ve just that to check the status without setting up a
      dialog.
      <div class=""><br class="">
      </div>
      <div class="">It is not invalid. Report this as a bug.</div>
      <div class=""><br class="">
      </div>
      <div class="">/O<br class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">25 okt. 2021 kl. 09:22 skrev Nikša Baldun <<a
                href="mailto:it@voxdiversa.hr"
                class="moz-txt-link-freetext" moz-do-not-send="true">it@voxdiversa.hr</a>>:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="content-type" content="text/html;
                charset=UTF-8" class="">
              <div class="">
                <p class="">Hello,</p>
                <p class="">I see the following in res_pjsip_pubsub.c:<br
                    class="">
                </p>
                <p class="">        if (expires_header->ivalue == 0)
                  {<br class="">
                              ast_debug(1, "Subscription request from
                  endpoint %s rejected. Expiration of 0 is invalid\n",<br
                    class="">
                                  ast_sorcery_object_get_id(endpoint));<br
                    class="">
                             
                  pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(),
                  rdata, 400, NULL, NULL, NULL);<br class="">
                                  return PJ_TRUE;<br class="">
                          }</p>
                <p class="">However, according to RFC 2365, value 0 is
                  perfectly valid, and should have the effect of ending
                  the subscription.</p>
                <div class=""> <br class="webkit-block-placeholder">
                </div>
                <blockquote type="cite" class="">
                  <pre class="">   A natural consequence of this scheme is that a SUBSCRIBE with an
   "Expires" of 0 constitutes a request to unsubscribe from an event.
</pre>
                </blockquote>
                <div class=""><br class="webkit-block-placeholder">
                </div>
                <p class="">Or is my understanding wrong? Is there some
                  other way to unsubscribe?</p>
                <p class="">Best regards,</p>
                <p class="">Nik<br class="">
                </p>
              </div>
              -- <br class="">
_____________________________________________________________________<br
                class="">
              -- Bandwidth and Colocation Provided by <a
                href="http://www.api-digital.com"
                class="moz-txt-link-freetext" moz-do-not-send="true">http://www.api-digital.com</a>
              --<br class="">
              <br class="">
              asterisk-dev mailing list<br class="">
              To UNSUBSCRIBE or update options visit:<br class="">
                <a
                href="http://lists.digium.com/mailman/listinfo/asterisk-dev"
                class="moz-txt-link-freetext" moz-do-not-send="true">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
  </body>
</html>