Re: Re: SUBSCRIBE problem
"M. Ranganathan" <[email protected]> Wed, 17 Jan 2007 11:08:52 -0500
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Organization | NIST Advanced Networking Technologies Division |
| Message-ID | <[email protected]> |
Hi Jens, Can you file an issue on the java.net project. I will fix the problem but I am encouraging people to use the issue tracker so please do that. On Wed, 2007-01-17 at 16:41 +0100, Jens Tinfors wrote: > hi, > > That it pretty much what i do: > final ExpiresHeader expHeader = > headerFactory.createExpiresHeader(expiresInt); > message.setExpires(expHeader); > > Yes I saw in the javadoc it says 0 is invalid but surely this is a > mistake since that is what you use > when you want to unsubscribe: > from RFC3265: "A natural consequence of this scheme is that a > SUBSCRIBE with an > 'Expires' of 0 constitutes a request to unsubscribe from an event." > > The RFC also says: > "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." > > Which got me thinking that the state in the stack may not match the 0 > indicating it being terminated...!? What state of the stack are you referring to? The Dialog has to be deleted explicitly using Dialog.delete() Thanks Ranga > Anyone with good insight could perhaps shed a light!? > Im using some pre-1.2 release which I fetched from > jain-sip.dev.java.net in December. > > thanks/j =) > On 1/17/07, niepin <[email protected]> wrote: > Hi, > try to use this: > ExpiresHeader expires = > MessageListener.headerFactory.createExpiresHeader(0); > request.setHeader(expires); > > In the API, it clearly states the The expires value MUST be > between zero and > (2**31)-1. I guess 0 is an invalid value. > > But code above is taken from Applet-Phone ua. There is no > exception when I test > it. > > BR > > niepin > > _______________________________________________ > nist-sip mailing list > [email protected] > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > > _______________________________________________ > nist-sip mailing list > [email protected] > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip