<div dir="ltr"><div>Hi,</div><div> </div><div>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.</div>
<div> </div><div> </div><div>Here is the example for the same.</div><div> </div><div><strong>PUT /xcap-root/pidf-manipulation/users/<a href="http://sip:test@kamailio.com/perm-presence/~~/presence/pdm:person?xmlns(pdm=urn:ietf:params:xml:ns:pidf:data-model)">sip:test@kamailio.com/perm-presence/~~/presence/pdm:person?xmlns(pdm=urn:ietf:params:xml:ns:pidf:data-model)</a></strong> HTTP/1.1<div>
Host: <a href="http://kamailio.com">kamailio.com</a></div><div>Keep-Alive: 115</div><div>Connection: TE, Keep-Alive</div><div>TE: trailers</div><div>Content-Length: 117</div><div>Content-Type: application/xcap-el+xml</div>
<div> </div><div><pdm:person id = "aa"><op:overriding-willingness><op:basic>closed</op:basic></op:overriding-willingness></pdm:person></div><div> </div><div>HTTP/1.1 500 Server error</div>
<div>Via: SIP/2.0/TCP <a href="http://192.168.41.60:59958">192.168.41.60:59958</a></div><div>Server: kamailio (4.0.2 (i386/linux))</div><div>Content-Length: 0</div><div> </div><div> </div></div><div> </div><div>And following is the original document which exists in server.</div>
<div> </div><div>GET /xcap-root/pidf-manipulation/users/<a href="http://sip:test@kamailio.com/perm-presence">sip:test@kamailio.com/perm-presence</a> HTTP/1.1</div><div>Host: <a href="http://kamailio.com">kamailio.com</a></div>
<div>Keep-Alive: 115</div><div>Connection: keep-alive</div><div>TE: trailers</div><div> </div><div>HTTP/1.1 200 OK</div><div>Via: SIP/2.0/TCP <a href="http://192.168.41.60:59956">192.168.41.60:59956</a></div><div>ETag: "sr-1377875323-9520-1"</div>
<div>Content-Type: application/pidf+xml</div><div>Server: kamailio (4.0.2 (i386/linux))</div><div>Content-Length: 683</div><div> </div><div><?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="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>" xmlns:gs="<a href="http://www.opengis.net/pidflo/1.0">http://www.opengis.net/pidflo/1.0</a>" xmlns:lt="urn:ietf:params:xml:ns:location-type" entity = "<a href="mailto:sip%3Atest@kamailio.com">sip:test@kamailio.com</a>"><pdm:person id = "aa"></pdm:person></presence></div>
<div> </div><div> </div><div>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.</div><div> </div><div>
 </div><div>Thanks for the help.</div><div> </div><div> </div><div>Regards,</div><div>Anzi<br></div><div> </div></div>