Hello Everyone,
I'm testing a presence client with a presence server and am receiving
a 400 Bad Event response when i send a partial publication.
The message flow is as follows:
PUBLISH sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK1815822088-3380
Route: <sip:195.68.27.115:5060;lr>
Max-Forwards: 70
Supported: replaces
From: <sip:[EMAIL PROTECTED]>;tag=ABC_1815822088-3381
To: <sip:[EMAIL PROTECTED]>
Call-ID: 1815822088-3379
CSeq: 1 PUBLISH
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Expires: 500
P-Preferred-Identity: <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-GERAN;cgi-3gpp=123456CAFEFACE
Event: presence
Content-Type: application/pidf-diff+xml
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,MESSAGE
Content-Length: 999
<?xml version="1.0" encoding="UTF-8"?>
<p:pidf-full xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:p="urn:ietf:params:xml:ns:pidf-diff"
xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:op="urn:oma:params:xml:ns:pidf:oma-pres"
xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civilLoc"
xmlns:gml="urn:opengis:specification:gml:schema-xsd:feature:v3.0"
entity="sip:[EMAIL PROTECTED]">
<pdm:person id="prs1">
<op:overriding-willingness>
<op:basic>open</op:basic>
</op:overriding-willingness>
<rpid:activities>
<rpid:other>reading</rpid:other>
</rpid:activities>
<rpid:mood>
<rpid:happy/>
</rpid:mood>
<rpid:sphere>joggers park</rpid:sphere>
<rpid:status-icon>http://example.com/~my-icons/goodafternoon</rpid:status-icon>
<rpid:class>for friends</rpid:class>
<pdm:note xml:lang="en">good morning</pdm:note>
</pdm:person>
<note xml:lang="en">Have a nice day!</note>
</p:pidf-full>
SIP/2.0 200 OK
CSeq: 1 PUBLISH
To: <sip:[EMAIL PROTECTED]>;tag=1000ea63a5778-2610136487-52-958855271
Expires: 500
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK1815822088-3380
From: <sip:[EMAIL PROTECTED]>;tag=ABC_1815822088-3381
Call-ID: 1815822088-3379
Sip-Etag: 1545975784
Content-Length: 0
PUBLISH sip:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK1821072088-3383
Route: <sip:195.68.27.115:5060;lr>
Max-Forwards: 70
Supported: replaces
From: <sip:[EMAIL PROTECTED]>;tag=ABC_1821072088-3384
To: <sip:[EMAIL PROTECTED]>
Call-ID: 1821072088-3382
CSeq: 1 PUBLISH
Contact: <sip:[EMAIL PROTECTED];transport=udp>
Expires: 500
SIP-If-Match: 1545975784
P-Preferred-Identity: <sip:[EMAIL PROTECTED]>
P-Access-Network-Info: 3GPP-GERAN;cgi-3gpp=123456CAFEFACE
Event: presence
Content-Type: application/pidf-diff+xml
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,MESSAGE
Content-Length: 1520
<?xml version="1.0" encoding="UTF-8"?>
<p:pidf-diff xmlns="urn:ietf:params:xml:ns:pidf"
xmlns:p="urn:ietf:params:xml:ns:pidf-diff"
xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model"
xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
xmlns:op="urn:oma:params:xml:ns:pidf:oma-pres"
xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civilLoc"
xmlns:gml="urn:opengis:specification:gml:schema-xsd:feature:v3.0"
entity="sip:[EMAIL PROTECTED]">
<p:add sel="p:pidf-full">
<tuple id="a1231">
<status>
<basic>open</basic>
<op:willingness>
<op:basic>open</op:basic>
</op:willingness>
<op:session-participation>
<op:basic>open</op:basic>
</op:session-participation>
<rpid:status-icon>http://example.com/~my-icons/PoC-Session</rpid:status-icon>
</status>
<op:registration-state>terminated</op:registration-state>
<op:barring-state>terminated</op:barring-state>
<op:service-description>
<op:service-id>org.openmobilealliance:PoC-session</op:service-id>
<op:version>1.0</op:version>
<op:description>This is the OMA PoC-Session
service</op:description>
</op:service-description>
<note xml:lang="en">Don't Disturb Please!</note>
<contact priority="0.8">sip:[EMAIL PROTECTED]</contact>
<rpid:class>for friends</rpid:class>
<pdm:deviceID>urn:uuid:d27459b7-8213-4395-aa77-ed859a3e5b3a</pdm:deviceID>
</tuple>
</p:add>
<p:replace sel="p:pidf-full/note xml:lang@">fr</p:replace>
<p:replace sel="p:pidf-full/note">
bienvenue</p:replace>
</p:pidf-diff>
SIP/2.0 400 Bad Request
CSeq: 1 PUBLISH
To: <sip:[EMAIL PROTECTED]>;tag=000ea63a5778-2610136487388528487
Expires: 500
Via: SIP/2.0/UDP 11.11.11.11:5060;branch=z9hG4bK1821072088-3383
From: <sip:[EMAIL PROTECTED]>;tag=ABC_1821072088-3384
Call-ID: 1821072088-3382
Content-Length: 0
Am assuming that the Presence server supports Partial Publication as
it didn't reply with a "415" response for the content type of
"application/pidf-diff+xml".
Other things that i've verified are:
- All Mandatory headers are present and have relevant values.
- Content Length is correct.
- SIP-If-Match uses the correct E-tag for the <pidf-diff>
Any pointers as to what might be triggering this response?
Thanks in advance,
Pankaj
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors