Re: Missing 202 OK in response to SUBSCRIBE
"Vishal K. Singh" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
hello Mallet, If your presence server is acting as a presence agent for the entity to which watchers are subscribing, the presence server will be sending the NOTIFY. But, a user agent may choose to manage its own presence information, in which case it will send NOTIFY directly and presence server only acts as proxy server. If a presence server acts as presence agent then the IM2 SUBSCRIBE's it its own watcher list using the watcher-info package and authorizes them, based on which the presence server can send NOTIFY. (RFC 3857) The decision of whether the presence server will proxy requests to a presence agent is based on RFC 3840/41 which specifies how the presence agent or the IM client specify to the proxy server to forward the presence requests. The default behaviour should be to proxy all presence requests to the IM client so that authorization/subscription creation etc. can be done with human intervention (allow/deny). Hope this helps. Regards, Vishal On 6/12/06, MALLET Lionel <[email protected]> wrote: > > Hi, > > like Aniruddha, I'm also looking at the Presence part of the proxy. I > notice that the traces viewer does not a show a 202 OK response that the IM > client is sending back in response to a forwarded SUBSCRIBE request. And > actually this 202 OK response is not in the server_log.txt file. > > So strangely the trace viewers displays something like: > > IM client 1 Proxy > IM client 2 > > ----------------------------------------> > Subscribe > ---------------------------------> > Subscribe > <--------------------------------------- > 202 OK > > I know that the server has received a 202 OK from IM client 2 because the > proxy-output.txt clearly shows it and indicates that it has been forwarded > to IM client 1. > > Just to spare me some time to dig into the source code to find it, could > you tell me which class is used to write into the server_log.txt file and > where it is called to dump the requests and responses the proxy receives? > > Then this raises another question, how does IM client 1 get the IM client > 2 presence status in response to its SUBSCRIBE? Shouldn't the proxy send a > NOTIFY? Or does it assume that IM client 2 will send a PUBLISH? Is this > defined somewhere, e.g. in rfc 3265, or is it left to the implementers? > > Thx. > ------------------------------ > > *Lionel Mallet - Gemalto* > Tel: +33 (0)4 42 36 59 70 > > > _______________________________________________ > 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