Re: [asterisk-dev] SIP subscription with expires=0

2021-10-25 Thread George Joseph
On Mon, Oct 25, 2021 at 1:32 AM Nikša Baldun wrote: > According to the RFC, yes: > > 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. > > I'll report a bug. Thanks for your reply. > Just

Re: [asterisk-dev] SIP subscription with expires=0

2021-10-25 Thread Nikša Baldun
According to the RFC, yes: 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. I'll report a bug. Thanks for your reply. On 25. 10. 2021. 09:25, Olle E. Johansson wrote: A subscription with

[asterisk-dev] SIP subscription with expires=0

2021-10-25 Thread Nikša Baldun
Hello, I see the following in res_pjsip_pubsub.c:    if (expires_header->ivalue == 0) {        ast_debug(1, "Subscription request from endpoint %s rejected. Expiration of 0 is invalid\n",            ast_sorcery_object_get_id(endpoint)); pjsip_endpt_respond_stateless(ast_sip_get_

Re: [asterisk-dev] SIP subscription with expires=0

2021-10-25 Thread Olle E. Johansson
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. It is not invalid. Report this as a bug. /O > 25 okt. 2021 kl. 09:22 skrev Nikša Baldun : > > Hello, > > I see the following in res_pjsip_pubsub.c: > >