<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">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!<br><br>---------------Sending Request---------------<br>PUBLISH sip:148.88.233.209:5065 SIP/2.0<br>Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101<br>CSeq: 849 PUBLISH<br>From: &lt;sip:alice@148.88.232.101:5061&gt;<br>To: &lt;sip:alice@148.88.232.101:5061&gt;<br>Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK19953<br>Max-Forwards: 70<br>Expires: 3600<br>Event:&nbsp; presence<br>Contact: &lt;sip:alice@148.88.232.101:5061&gt;<br>Content-Type: application/cpim-pidf+xml<br>Content-Length: 220<br><br>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;&lt;presence xmlns="urn:ietf:params:xml:ns:pidf" entity="pres:alice@open-ims.test"&gt;&lt;tuple id="sip-client(java)"&gt;&lt;status&gt;&lt;basic&gt;online&lt;/basic&gt;&lt;/status&gt;&lt;/tuple&gt;&lt;/presence&gt;<br><br>---------------Received Response---------------<br>SIP/2.0 200 OK<br>Call-ID: ef68e3acb55c2a4c791b1e31f7362b6f@148.88.232.101<br>CSeq: 849 PUBLISH<br>From: &lt;sip:alice@148.88.232.101:5061&gt;<br>To: &lt;sip:alice@148.88.232.101:5061&gt;;tag=762c87025812f63000552d0e54932ab8.31c6<br>Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hg4bk19953<br>Expires: 3590<br>SIP-ETag: a.1184861600.3810.10<br>Server: OpenSER (1.2.0-notls (i386/linux))<br>Content-Length: 0<br><br><br>---------------Sending Request---------------<br>SUBSCRIBE sip:148.88.233.209:5065 SIP/2.0<br>Call-ID: 5c280b2299c2834b7705dece8497ec2f@148.88.232.101<br>CSeq: 20 SUBSCRIBE<br>From: &lt;sip:alice@148.88.232.101&gt;<br>To: &lt;sip:bob@148.88.232.101&gt;<br>Via: SIP/2.0/UDP 148.88.232.101:5061;branch=z9hG4bK97556<br>Max-Forwards: 70<br>Expires: 3600<br>Event:&nbsp; presence<br>Contact: &lt;sip:alice@148.88.232.101:5061&gt;<br>Content-Length: 0<br><br>......<br><br><br><br></div><br /><hr />探索 Windows Vista 的世界 <a href='http://search.live.com/results.aspx?q=windows+vista&mkt=zh-cn&FORM=LIVSOP' target='_new'>了解更多信息!</a></body>
</html>