KevinKinnan wrote: > SUBSCRIBE request can not save in watchers table properly. Both p_user > and w_user are subscriber's name!? In this case, they are both > 'alice'. The SUBSCRIBE request is shown as follows: > > ---------------------------------------- > SUBSCRIBE sip:[EMAIL PROTECTED] SIP/2.0 > Call-ID: [EMAIL PROTECTED] > CSeq: 20 SUBSCRIBE > From: "alice" <sip:[EMAIL PROTECTED]:5061>;tag=z9hG4bK41052461 > To: "bob" <sip:[EMAIL PROTECTED]:5062> > Via: SIP/2.0/TCP 148.88.232.101:5061;branch=z9hG4bK57563 > Max-Forwards: 70 > Expires: 360000 > Event: presence > Route: <sip:148.88.233.209:5065;lr> > Contact: "alice" <sip:[EMAIL PROTECTED]:5061> > Content-Length: 0 > ---------------------------------------- >
The same as for Publish, the Subscribe message should contain in the Request Uri the uri of the resource the subsciption is addressed to.(See RFC 3265 section 3.1.2.) So this Subscribe is interpreted as from alice to alice. The correct one should have been: ------------- SUBSCRIBE sip:[EMAIL PROTECTED]:5062 SIP/2.0 Call-ID: [EMAIL PROTECTED] CSeq: 20 SUBSCRIBE From: "alice" <sip:[EMAIL PROTECTED]:5061>;tag=z9hG4bK41052461 To: "bob" <sip:[EMAIL PROTECTED]:5062> Via: SIP/2.0/TCP 148.88.232.101:5061;branch=z9hG4bK57563 Max-Forwards: 70 Expires: 360000 Event: presence Route: <sip:148.88.233.209:5065;lr> Contact: "alice" <sip:[EMAIL PROTECTED]:5061> Content-Length: 0 ----------- regards, Anca Vamanu > HELP! > > Regards, > Kevin > > ------------------------------------------------------------------------ > 通过 Windows Live Spaces 与朋友轻松共享您的生活。 立即尝试! > <http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=zh-cn> > > >------------------------------------------------------------------------ > >_______________________________________________ >Users mailing list >[email protected] >http://openser.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ Users mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/users
