<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I see the following in res_pjsip_pubsub.c:<br>
</p>
<p> if (expires_header->ivalue == 0) {<br>
ast_debug(1, "Subscription request from endpoint %s
rejected. Expiration of 0 is invalid\n",<br>
ast_sorcery_object_get_id(endpoint));<br>
pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata,
400, NULL, NULL, NULL);<br>
return PJ_TRUE;<br>
}</p>
<p>However, according to RFC 2365, value 0 is perfectly valid, and
should have the effect of ending the subscription.</p>
<p>
<blockquote type="cite">
<pre> 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>
</p>
<p>Or is my understanding wrong? Is there some other way to
unsubscribe?</p>
<p>Best regards,</p>
<p>Nik<br>
</p>
</body>
</html>