[OpenSIPS-Users] Trying to get Snom Contact List to work with OpenSIPS RLS

duane.larson at gmail.com duane.larson at gmail.com
Sat Jan 28 20:26:46 CET 2012


Adrian,

This is what I have in the xcap table for user 9012732009.

527 9012732009 irock.com <?xml version="1.0" encoding="UTF-8"  
standalone="no"?><resource-lists  
xmlns="urn:ietf:params:xml:ns:resource-lists"><list name="Work"><entry  
uri="sip:9012732005 at coolbeans.com"><display-name>9012732005</display-name></entry><entry  
uri="sip:9013349020 at coolbeans.com"><display-name>9013349020</display-name></entry></list><list  
name="RootGroup"/></resource-lists> 4 9b67239aba25756f119fbcce38b156f3 0  
index 0




523 9012732009 irock.com <?xml version="1.0" encoding="UTF-8"  
standalone="no"?><ruleset  
xmlns="urn:ietf:params:xml:ns:common-policy"><rule  
id="presence_allow"><conditions><identity><one  
id="sip:9012732005 at coolbeans.com"/><one  
id="sip:9013349020 at coolbeans.com"/></identity></conditions><actions><sub-handling  
xmlns="urn:ietf:params:xml:ns:pres-rules">allow</sub-handling></actions><transformations><provide-devices  
xmlns="urn:ietf:params:xml:ns:pres-rules"><all-devices/></provide-devices><provide-persons  
xmlns="urn:ietf:params:xml:ns:pres-rules"><all-persons/></provide-persons><provide-services  
xmlns="urn:ietf:params:xml:ns:pres-rules"><all-services/></provide-services></transformations></rule></ruleset>  
2 7389ddfe17038e107feb98b0382ed1a9 0 index.xml 0



The first I would think is a contact list right? My Presence works fine  
with these XCAP docs.

On , Adrian Georgescu <ag at ag-projects.com> wrote:
> RLS is a way to expand in the SIP server a single subscription sent to a  
> SIP address into multiple subscriptions to a list of addresses defined in  
> XCAP server rls-services document.





> Your error 5 means that your have no contacts list defined in the  
> rls-services document for sip uri 9012732009 at irock.com





> You must build the list of contacts for 9012732009 at irock.com, upload it  
> using HTTP PUT to the XCAP server rls-services document and finally  
> subscribe to 9012732009 at irock.com





> Adrian








> On Jan 27, 2012, at 2:15 AM, duane.larson at gmail.com wrote:





> > I am trying to get Snom's Contact List to work with RLS and XCAP. When  
> I enable the Snom phone it sends the following subscribe


> >


> > SUBSCRIBE sip:9012732009 at irock.com;user=phone SIP/2.0


> > Via: SIP/2.0/UDP 192.168.1.70:3072;branch=z9hG4bK-o82o6mip4krp;rport


> > From: sip:9012732009 at irock.com>;tag=uqpj4kshg7


> > To: sip:9012732009 at irock.com;user=phone>


> > Call-ID: c60b313ccc40-ul069icazcpv


> > CSeq: 1 SUBSCRIBE


> > Max-Forwards: 70


> > Contact: ;reg-id=1


> > Event: presence


> > Accept: application/pidf+xml, application/rlmi+xml, multipart/related


> > Supported: eventlist


> > User-Agent: snom821/8.4.31


> > Expires: 3600


> > Content-Length: 0


> >


> >


> > With my OpenSIPS config I have


> >


> > # -- rls params --


> > modparam("rls", "db_url", "mysql://opensips:****@127.0.0.1/opensips")


> > modparam("rls", "server_address", "sip:rls at sdfsdfsdf:5060")


> > modparam("rls", "to_presence_code", 5)


> > modparam("rls", "integrated_xcap_server", 1)


> > modparam("rls", "presence_server", "sip:sa at asdfsadfsd:5060")


> > modparam("rls", "rls_event", "xcap-diff")


> > modparam("rls", "rls_event", "ua-profile")


> >


> >


> > rls_handle_subscribe();


> >


> > switch ($retcode) {


> > case 5:


> > # RLS indicated that message should be processed by presence


> >


> > if (is_uri_host_local()) {


> > if (db_does_uri_exist()) {


> > handle_subscribe();


> > } else {


> > t_reply("404", "User not found");


> > }


> > exit;


> > }


> > break;


> >


> > I see with xlog messages that rls_handle_subscribe() fails with a "case  
> 5". I am not sure why the Snom SUBSCRIBE would fail with a "5".


> >


> > I've looked at http://www.opensips.org/Resources/Rls and the SUBSCRIBE  
> from SNOM really isn't that different. So why  
> does "rls_handle_subscribe()"  
> fail?_______________________________________________


> > Users mailing list


> > Users at lists.opensips.org


> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users








> _______________________________________________


> Users mailing list


> Users at lists.opensips.org


> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120128/7cee63a6/attachment.htm>


More information about the Users mailing list