My Presence module works fine with PUBLISH request, but not with SUBSCRIBE request. The trace shows as follows, the requestURI is the IP address of Presence module, and the request directly sends to presence server, I think there must be something wrong with the structure of SUBSCRIBE request. any one can point what is wrong will be helpful , Thank you!---------------Sending Request---------------PUBLISH sip:148.88.233.209:5065 SIP/2.0Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101CSeq: 849 PUBLISHFrom: sip:alice@148.88.232.101:5061To: sip:alice@148.88.232.101:5061Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK19953Max-Forwards: 70Expires: 3600Event: presenceContact: sip:alice@148.88.232.101:5061Content-Type: application/cpim-pidf+xmlContent-Length: 220<?xml version="1.0" encoding="UTF-8" standalone="no"?><presence xmlns="urn:ietf:params:xml:ns:pidf" entity="pres:alice@open-ims.test"><tuple id="sip-client(java)"><status><basic>online</basic></status></tuple></presence>---------------Received Response---------------SIP/2.0 200 OKCall-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101CSeq: 849 PUBLISHFrom: sip:alice@148.88.232.101:5061To: sip:alice@148.88.232.101:5061;tag=762c87025812f63000552d0e54932ab8.31c6Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hg4bk19953Expires: 3590SIP-ETag: a.1184861600.3810.10Server: OpenSER (1.2.0-notls (i386/linux))Content-Length: 0---------------Sending Request---------------SUBSCRIBE sip:148.88.233.209:5065 SIP/2.0Call-ID: 5c280b2299c2834b7705dece8497ec2f@148.88.232.101CSeq: 20 SUBSCRIBEFrom: sip:alice@148.88.232.101To: sip:bob@148.88.232.101Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK97556Max-Forwards: 70Expires: 3600Event: presenceContact: sip:alice@148.88.232.101:5061Content-Length: 0...... _________________________________________________________________ 探索 Windows Vista 的世界 http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=L...
Hello,
At least the initial Publish and Subscribe messages should have as the Request URI the presentity uri, that is the address of the resource whose state is published or being watched.
In this case: sip:alice@148.88.232.101.
regards,
Anca
KevinKinnan wrote:
My Presence module works fine with PUBLISH request, but not with SUBSCRIBE request. The trace shows as follows, the requestURI is the IP address of Presence module, and the request directly sends to presence server, I think there must be something wrong with the structure of SUBSCRIBE request. any one can point what is wrong will be helpful , Thank you!
---------------Sending Request--------------- PUBLISH sip:148.88.233.209:5065 SIP/2.0 Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101 CSeq: 849 PUBLISH From: sip:alice@148.88.232.101:5061 To: sip:alice@148.88.232.101:5061 Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK19953 Max-Forwards: 70 Expires: 3600 Event: presence Contact: sip:alice@148.88.232.101:5061 Content-Type: application/cpim-pidf+xml Content-Length: 220
<?xml version="1.0" encoding="UTF-8" standalone="no"?><presence
xmlns="urn:ietf:params:xml:ns:pidf" entity="pres:alice@open-ims.test"><tuple id="sip-client(java)"><status><basic>online</basic></status></tuple></presence>
---------------Received Response--------------- SIP/2.0 200 OK Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101 CSeq: 849 PUBLISH From: sip:alice@148.88.232.101:5061 To: sip:alice@148.88.232.101:5061;tag=762c87025812f63000552d0e54932ab8.31c6 Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hg4bk19953 Expires: 3590 SIP-ETag: a.1184861600.3810.10 Server: OpenSER (1.2.0-notls (i386/linux)) Content-Length: 0
---------------Sending Request--------------- SUBSCRIBE sip:148.88.233.209:5065 SIP/2.0 Call-ID: 5c280b2299c2834b7705dece8497ec2f@148.88.232.101 CSeq: 20 SUBSCRIBE From: sip:alice@148.88.232.101 To: sip:bob@148.88.232.101 Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK97556 Max-Forwards: 70 Expires: 3600 Event: presence Contact: sip:alice@148.88.232.101:5061 Content-Length: 0
......
探索 Windows Vista 的世界 了解更多信息! http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=LIVSOP
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
In addition to that, you need to have a from tag in the SUBSCRIBE request as it is a method that creates a dialog. Most probably here is where the error occurs.
KevinKinnan wrote:
My Presence module works fine with PUBLISH request, but not with SUBSCRIBE request. The trace shows as follows, the requestURI is the IP address of Presence module, and the request directly sends to presence server, I think there must be something wrong with the structure of SUBSCRIBE request. any one can point what is wrong will be helpful , Thank you!
---------------Sending Request--------------- PUBLISH sip:148.88.233.209:5065 SIP/2.0 Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101 CSeq: 849 PUBLISH From: sip:alice@148.88.232.101:5061 To: sip:alice@148.88.232.101:5061 Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK19953 Max-Forwards: 70 Expires: 3600 Event: presence Contact: sip:alice@148.88.232.101:5061 Content-Type: application/cpim-pidf+xml Content-Length: 220
<?xml version="1.0" encoding="UTF-8" standalone="no"?><presence
xmlns="urn:ietf:params:xml:ns:pidf" entity="pres:alice@open-ims.test"><tuple id="sip-client(java)"><status><basic>online</basic></status></tuple></presence>
---------------Received Response--------------- SIP/2.0 200 OK Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101 CSeq: 849 PUBLISH From: sip:alice@148.88.232.101:5061 To: sip:alice@148.88.232.101:5061;tag=762c87025812f63000552d0e54932ab8.31c6 Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hg4bk19953 Expires: 3590 SIP-ETag: a.1184861600.3810.10 Server: OpenSER (1.2.0-notls (i386/linux)) Content-Length: 0
---------------Sending Request--------------- SUBSCRIBE sip:148.88.233.209:5065 SIP/2.0 Call-ID: 5c280b2299c2834b7705dece8497ec2f@148.88.232.101 CSeq: 20 SUBSCRIBE From: sip:alice@148.88.232.101 To: sip:bob@148.88.232.101 Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK97556 Max-Forwards: 70 Expires: 3600 Event: presence Contact: sip:alice@148.88.232.101:5061 Content-Length: 0
......
探索 Windows Vista 的世界 了解更多信息! http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=LIVSOP
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users