[SR-Users] Error when client tries to put XCAP resource list

Daniel-Constantin Mierla miconda at gmail.com
Wed Oct 3 22:02:42 CEST 2012


Hello,

the http uri is available in available $hu. You can print it with xlog 
and be sure you give it as parameter to xcap server function.

A basic example in the readme shows it:
   * 
http://kamailio.org/docs/modules/stable/modules_k/xcap_server.html#id2532050

Cheers,
Daniel


On 10/3/12 8:34 PM, Sangeeta Shah wrote:
> Hello All,
>     I am using Kamailio 3.3 with Presence/RLS and integrated XCAP. When
> my client tries to "PUT" the resource list for the user, the server is
> returning a 500 Server Error response. Attached is the TCP trace for
> the put and the corresponding response from the server. I also see the
> following error in the server logs:
> Oct  3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
> <script>: ===== xhttp: put received sip:8475551001 at 10.50.251.12
> Oct  3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
> xcap_server [xcap_misc.c:109]: invalid http uri - shorter than
> xcap-root
> Oct  3 12:13:04 RCS-Presence /usr/local/sbin/kamailio[17593]: ERROR:
> xcap_server [xcap_server.c:560]: cannot parse xcap uri [0]
>
> Maybe it's a client/server configuration issue. What is the expected
> http uri. How do I print out the received HTTP URI And the XCAP root.
>
> Any debugging help is appreciated.
>
> TCP trace:
>
> PUT /xcap-root/resource-lists/users/8475551001/index HTTP/1.1
>
> Host: 10.50.251.12:5060
>
> Content-Length: 2037
>
> Connection: Keep-Alive
>
> User-Agent: XDM-client/OMA1.1
>
> X-3GPP-Intended-Identity: 8475551001
>
> Content-Type: application/resource-lists+xml
>
>
>
> <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
>
>    <list name="rcs">
>
>      <display-name>All Contacts</display-name>
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22doubango%22%5D"
> />
>
>      <entry uri="8475551001" />
>
>    </list>
>
>    <list name="rcs_blockedcontacts">
>
>      <display-name>Blocked Contacts</display-name>
>
>    </list>
>
>    <list name="rcs_revokedcontacts">
>
>      <display-name>Revoked Contacts</display-name>
>
>    </list>
>
>    <list name="oma_allcontacts">
>
>      <display-name>OMA All Contacts</display-name>
>
>    </list>
>
>    <list name="oma_blockedcontacts">
>
>      <display-name>OMA Blocked Contacts</display-name>
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22rcs_blockedcontacts%22%5D"
> />
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22rcs_revokedcontacts%22%5D"
> />
>
>    </list>
>
>    <list name="oma_buddylist">
>
>      <display-name>OMA BuddyList</display-name>
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22rcs%22%5D"
> />
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22oma_pocbuddylist%22%5D"
> />
>
>    </list>
>
>    <list name="oma_grantedcontacts">
>
>      <display-name>OMA Granted Contacts</display-name>
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22rcs%22%5D"
> />
>
>      <external anchor="http://10.50.251.12:5060/xcap-root/resource-lists/users/8475551001/index/~~/resource-lists/list%5B@name=%22oma_buddylist%22%5D"
> />
>
>    </list>
>
>    <list name="oma_pocbuddylist">
>
>      <display-name>OMA POC BuddyList</display-name>
>
>    </list>
>
>    <list name="doubango">
>
>      <display-name>My Default Contacts</display-name>
>
>    </list>
>
> </resource-lists>
>
> HTTP/1.1 500 Server error
>
> Via: SIP/2.0/TCP 10.51.2.181:49889
>
> Server: kamailio (3.3.1 (x86_64/linux))
>
> Content-Length: 0
>
> Thanks,
> Sangeeta
>


-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - http://asipto.com/u/katu




More information about the sr-users mailing list