[SR-Users] Presence + RLS + XCAP

Paul Smith paul.smith at claritytele.com
Thu Mar 23 18:23:06 CET 2017


Longer version of this got blocked by the mail list earlier today… and I have dug a bit deeper since then…

I am trying to SUBSCRIBE to a resource-list (rls.so) but the rls_handle_subscribe() is returning with a “list not found"

Mar 23 16:36:11 presence kamailio[12536]: DEBUG: rls [subscribe.c:211]: rls_get_service_list(): No rl document found
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: <core> [db_res.c:81]: db_free_columns(): freeing 2 columns
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[0] at 0x7f70b50ebee8
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: <core> [db_res.c:85]: db_free_columns(): freeing RES_NAMES[1] at 0x7f70b50afb90
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: <core> [db_res.c:94]: db_free_columns(): freeing result names at 0x7f70b50eaf98
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: <core> [db_res.c:99]: db_free_columns(): freeing result types at 0x7f70b50cc0a0
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: <core> [db_res.c:136]: db_free_result(): freeing result set at 0x7f70b50cc2d0
Mar 23 16:36:11 presence kamailio[12536]: DEBUG: rls [subscribe.c:634]: rls_handle_subscribe(): list not found - searched for uri <sip:org1a-contacts@**MYDOMAIN**>

I have tried various permutations of xml docs in the xcap table for the rls-service and resource-list but nothing have not yet managed to get a success from the rls_handle_subscribe()

Latest version of data in my mysql database / xcap table:
|  3 | org1a-contacts | **MYDOMAIN** | <?xml version="1.0" encoding="UTF-8" standalone="no"?><resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"><list name="team"><entry uri="sip:1002@**MYDOMAIN**"/><entry uri="sip:1001@**MYDOMAIN**"><display-name>bob</display-name></entry><entry uri="sip:1003@**MYDOMAIN**"><display-name>test1</display-name></entry><entry uri="sip:1006@**MYDOMAIN**"><display-name>test1006</display-name></entry><entry uri="sip:1007@**MYDOMAIN**"><display-name>test1007</display-name></entry><entry uri="sip:1008@**MYDOMAIN**"><display-name>test1008</display-name></entry><entry uri="sip:1009@**MYDOMAIN**"><display-name>test1009</display-name></entry>    <entry uri="sip:1005@**MYDOMAIN**"><display-name>testing1005</display-name></entry>    <entry uri="sip:org1a@**MYDOMAIN**"><display-name>testingorg1a</display-name></entry>    <entry uri="sip:org1c@**MYDOMAIN**"><display-name>testingorg1c</display-name></entry>    <entry uri="sip:dnd1002-6 at presence.byphone.co.uk"><display-name>1002 dnd</display-name></entry></list></resource-lists> |        4 | sr-1490270411-10960-2 |      0 | /xcap-root/resource-lists/users/sip:org1a-contacts@**MYDOMAIN**/index |    0 |
|  4 | org1a-contacts | **MYDOMAIN** | <?xml version="1.0" encoding="UTF-8" standalone="no"?><rls-services xmlns="urn:ietf:params:xml:ns:rls-services"><service uri="sip:org1a-contacts@**MYDOMAIN**"><list name="org1a-contacts"><rl:entry uri="1000_6@**MYDOMAIN**"/><rl:entry uri="org1c@**MYDOMAIN**"/></list><packages><package>presence</package></packages></service></rls-services>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |        8 | sr-1490285288-12551-1 |      0 | /xcap-root/rls-services/users/sip:org1a-contacts@**MYDOMAIN**/index   |    0 |


Is there a reference doc somewhere with an example of a successful SUBSCRIBE and associated XCAP docs for a resource-list?

Thanks

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170323/cf018e8e/attachment.html>


More information about the sr-users mailing list