Hi, I am facing issue with modifying the xdm document in kamailio 4.0,2 by using xpath(Getting 500 from server). can anyboady suggest me, what is the wrong I am doing based on following example.
Here is the example for the same. *PUT /xcap-root/pidf-manipulation/users/ sip:t...@kamailio.com/perm-presence/~~/presence/pdm:person?xmlns(pdm=urn:ietf:params:xml:ns:pidf:data-model) * HTTP/1.1 Host: kamailio.com Keep-Alive: 115 Connection: TE, Keep-Alive TE: trailers Content-Length: 117 Content-Type: application/xcap-el+xml <pdm:person id = "aa"><op:overriding-willingness><op:basic>closed</op:basic></op:overriding-willingness></pdm:person> HTTP/1.1 500 Server error Via: SIP/2.0/TCP 192.168.41.60:59958 Server: kamailio (4.0.2 (i386/linux)) Content-Length: 0 And following is the original document which exists in server. GET /xcap-root/pidf-manipulation/users/sip:t...@kamailio.com/perm-presenceHTTP/1.1 Host: kamailio.com Keep-Alive: 115 Connection: keep-alive TE: trailers HTTP/1.1 200 OK Via: SIP/2.0/TCP 192.168.41.60:59956 ETag: "sr-1377875323-9520-1" Content-Type: application/pidf+xml Server: kamailio (4.0.2 (i386/linux)) Content-Length: 683 <?xml version = "1.0" encoding = "UTF-8"?><presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:pdm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" xmlns:op="urn:oma:xml:prs:pidf:oma-pres" xmlns:opd="urn:oma:xml:pde:pidf:ext" xmlns:opd11="urn:oma:xml:pde:pidf:ext:1.1" xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10" xmlns:cl="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr" xmlns:caps="urn:ietf:params:xml:ns:pidf:caps" xmlns:gml=" http://www.opengis.net/gml" xmlns:gs="http://www.opengis.net/pidflo/1.0" xmlns:lt="urn:ietf:params:xml:ns:location-type" entity = " sip:t...@kamailio.com"><pdm:person id = "aa"></pdm:person></presence> I also tried by adding the pdm="urn:ietf:params:xml:ns:pidf:data-model" to xcap server known namspaces, by using modparam. but still I am getting the same error. Thanks for the help. Regards, Anzi
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users