<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">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="">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="">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="">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></div></blockquote></div><br class=""></div></body></html>