<p>Let get the opensips trunk version I am running when I get back home.  I&#39;ll let you know.</p>
<div class="gmail_quote">On Jan 29, 2012 12:14 PM, &quot;Adrian Georgescu&quot; &lt;<a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The way you did it is correct, it should work just fine. If it does not work with the current OpenSIPS trunk version is a bug and we will fix it.<br>
<br>
Adrian<br>
<br>
On Jan 29, 2012, at 5:59 PM, <a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:<br>
<br>
&gt; I added the following to xcap<br>
&gt;<br>
&gt; PUT /xcap-root/rls-services/users/<a href="http://sip:9012732009@irock.com/index" target="_blank">sip:9012732009@irock.com/index</a> HTTP/1.1.<br>
&gt; Accept-Encoding: identity.<br>
&gt; Content-Length: 798.<br>
&gt; Host: <a href="http://xcap.X.com" target="_blank">xcap.X.com</a>.<br>
&gt; User-Agent: python-xcaplib/<a href="http://1.0.16." target="_blank">1.0.16.</a><br>
&gt; Connection: close.<br>
&gt; Content-Type: application/x-www-form-urlencoded.<br>
&gt; Authorization: Digest username=&quot;<a href="tel:9012732009" value="+19012732009">9012732009</a>&quot;, realm=&quot;<a href="http://irock.com" target="_blank">irock.com</a>&quot;, nonce=&quot;332840634855165799770139975774574805066135619005395955328&quot;, uri=&quot;/xcap-root/rls-services/users/<a href="http://sip:9012732009@irock.com/index" target="_blank">sip:9012732009@irock.com/index</a>&quot;, response=&quot;f76c6a6375156936cb0c5d6137a325ad&quot;, opaque=&quot;0a430b4a4d580e7d473c2697c9d61477-MzMyODQwNjM0ODU1MTY1Nzk5NzcwMTM5OTc1Nzc0NTc0ODA1MDY2MTM1NjE5MDA1Mzk1OTU1MzI4LDE3My4yMDMuODEuMTExLDEzMjc4MTQzOTE=&quot;, algorithm=&quot;MD5&quot;, qop=auth, nc=00000001, cnonce=&quot;dfd8addb86008b0e&quot;.<br>

&gt; .<br>
&gt;<br>
&gt; ##<br>
&gt; T 2012/01/28 23:19:51.385478 173.X.X.X:39849 -&gt; 173.X.X.X:80 [AP]<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&gt; &lt;rls-services xmlns=&quot;urn:ietf:params:xml:ns:rls-services&quot;<br>
&gt; xmlns:rl=&quot;urn:ietf:params:xml:ns:resource-lists&quot;<br>
&gt; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
&gt; &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;<br>
&gt; &lt;resource-list&gt;<a href="http://xcap.X.com/xcap-root/resource-lists/users/sip:9012732009@irock.com/index" target="_blank">http://xcap.X.com/xcap-root/resource-lists/users/sip:9012732009@irock.com/index</a>&lt;/resource-list&gt;<br>

&gt; &lt;packages&gt;<br>
&gt; &lt;package&gt;presence&lt;/package&gt;<br>
&gt; &lt;/packages&gt;<br>
&gt; &lt;/service&gt;<br>
&gt; &lt;service uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot;&gt;<br>
&gt; &lt;list name=&quot;<a href="tel:9012732009" value="+19012732009">9012732009</a>-list&quot;&gt;<br>
&gt; &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;/&gt;<br>
&gt; &lt;rl:entry uri=&quot;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;/&gt;<br>
&gt; &lt;/list&gt;<br>
&gt; &lt;packages&gt;<br>
&gt; &lt;package&gt;presence&lt;/package&gt;<br>
&gt; &lt;/packages&gt;<br>
&gt; &lt;/service&gt;<br>
&gt; &lt;/rls-services&gt;<br>
&gt;<br>
&gt; ####<br>
&gt; T 2012/01/28 23:19:52.641120 173.X.X.X:80 -&gt; 173.X.X.X:39849 [AP]<br>
&gt; HTTP/1.1 201 Created.<br>
&gt; Date: Sun, 29 Jan 2012 05:19:52 GMT.<br>
&gt; Content-Length: 0.<br>
&gt; ETag: &quot;0a66a8b47732adca8badebeece871fe4&quot;.<br>
&gt; Content-Type: application/rls-services+xml.<br>
&gt; Server: OpenXCAP/<a href="http://2.0.1." target="_blank">2.0.1.</a><br>
&gt; Connection: close.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Then when the Snom phone subscribes things go a little better but there are no contacts listed in the NOTIFY that gets sent. Also OpenSIPS shows one thing in the log<br>
&gt;<br>
&gt; #<br>
&gt; U 2012/01/28 23:28:00.600321 <a href="http://99.67.237.217:3072" target="_blank">99.67.237.217:3072</a> -&gt; 173.X.X.X:5060<br>
&gt; SUBSCRIBE <a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a> SIP/2.0.<br>
&gt; Via: SIP/2.0/UDP 99.67.237.217:3072;branch=z9hG4bK-wctkdq0ceq6u;rport.<br>
&gt; From: &lt;<a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>&gt;;tag=tu0q85o124.<br>
&gt; To: &lt;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&gt;.<br>
&gt; Call-ID: 2cee333cf0e6-9se6madmvpus.<br>
&gt; CSeq: 1 SUBSCRIBE.<br>
&gt; Max-Forwards: 70.<br>
&gt; Contact: &lt;sip:<a href="tel:9012732009" value="+19012732009">9012732009</a>@99.67.237.217:3072;line=ya0mpcya&gt;;reg-id=1.<br>
&gt; Event: presence.<br>
&gt; Accept: application/pidf+xml, application/rlmi+xml, multipart/related.<br>
&gt; Supported: eventlist.<br>
&gt; User-Agent: snom821/<a href="http://8.4.31." target="_blank">8.4.31.</a><br>
&gt; Expires: 3600.<br>
&gt; Content-Length: 0.<br>
&gt; .<br>
&gt;<br>
&gt; #<br>
&gt; U 2012/01/28 23:28:00.669532 173.X.X.X:5060 -&gt; <a href="http://99.67.237.217:3072" target="_blank">99.67.237.217:3072</a><br>
&gt; SIP/2.0 200 OK.<br>
&gt; Via: SIP/2.0/UDP 99.67.237.217:3072;received=99.67.237.217;branch=z9hG4bK-wctkdq0ceq6u;rport=3072.<br>
&gt; From: &lt;<a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>&gt;;tag=tu0q85o124.<br>
&gt; To: &lt;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&gt;;tag=31ec65e482de21ae66d7d44df69d3d8c-363d.<br>
&gt; Call-ID: 2cee333cf0e6-9se6madmvpus.<br>
&gt; CSeq: 1 SUBSCRIBE.<br>
&gt; Expires: 3600.<br>
&gt; Contact: &lt;sip:rls@173.X.X.X:5060&gt;.<br>
&gt; Require: eventlist.<br>
&gt; Server: AE SIP Proxy.<br>
&gt; Content-Length: 0.<br>
&gt; .<br>
&gt;<br>
&gt; #<br>
&gt; U 2012/01/28 23:28:00.683217 173.X.X.X:5060 -&gt; <a href="http://99.67.237.217:3072" target="_blank">99.67.237.217:3072</a><br>
&gt; NOTIFY sip:<a href="tel:9012732009" value="+19012732009">9012732009</a>@99.67.237.217:3072;line=ya0mpcya SIP/2.0.<br>
&gt; Via: SIP/2.0/UDP 173.X.X.X;branch=z9hG4bK0f9f.021e9e57.0.<br>
&gt; To: &lt;<a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>&gt;;tag=tu0q85o124.<br>
&gt; From: &lt;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&gt;;tag=31ec65e482de21ae66d7d44df69d3d8c-363d.<br>
&gt; CSeq: 1 NOTIFY.<br>
&gt; Call-ID: 2cee333cf0e6-9se6madmvpus.<br>
&gt; Content-Length: 348.<br>
&gt; User-Agent: OpenSIPS (1.8.0-dev0-notls (x86_64/linux)).<br>
&gt; Max-Forwards: 70.<br>
&gt; Event: presence.<br>
&gt; Contact: &lt;sip:rls@173.X.X.X:5060&gt;.<br>
&gt; Subscription-State: active;expires=3600.<br>
&gt; Require: eventlist.<br>
&gt; Content-Type: multipart/related;type=&quot;application/rlmi+xml&quot;;start=&quot;&lt;.1327814880.sip:<a href="tel:9012732009" value="+19012732009">9012732009</a>-list@irock.com.1758875796&gt;&quot;;boundary=&quot;AQ6ybEHhcfURUcWaJnJuOinM&quot;.<br>

&gt; .<br>
&gt; --AQ6ybEHhcfURUcWaJnJuOinM.<br>
&gt; Content-Transfer-Encoding: binary.<br>
&gt; Content-ID: &lt;1327814880.sip:<a href="tel:9012732009" value="+19012732009">9012732009</a>-list@irock.com.1758875796&gt;.<br>
&gt; Content-Type: application/rlmi+xml;charset=&quot;UTF-8&quot;.<br>
&gt; .<br>
&gt; &lt;?xml version=&quot;1.0&quot;?&gt;<br>
&gt; &lt;list uri=&quot;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&quot; xmlns=&quot;urn:ietf:params:xml:ns:rlmi&quot; version=&quot;0&quot; fullState=&quot;true&quot;/&gt;.<br>
&gt; .<br>
&gt; --AQ6ybEHhcfURUcWaJnJuOinM--.<br>
&gt;<br>
&gt; #<br>
&gt; U 2012/01/28 23:28:00.793048 <a href="http://99.67.237.217:3072" target="_blank">99.67.237.217:3072</a> -&gt; 173.X.X.X:5060<br>
&gt; SIP/2.0 200 Ok.<br>
&gt; Via: SIP/2.0/UDP 173.X.X.X;branch=z9hG4bK0f9f.021e9e57.0.<br>
&gt; From: &lt;<a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a>&gt;;tag=31ec65e482de21ae66d7d44df69d3d8c-363d.<br>
&gt; To: &lt;<a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>&gt;;tag=tu0q85o124.<br>
&gt; Call-ID: 2cee333cf0e6-9se6madmvpus.<br>
&gt; CSeq: 1 NOTIFY.<br>
&gt; Content-Length: 0.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Here is the log in the OpenSIPS list<br>
&gt; INFO:rls:resource_subscriptions: Subscription from <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a> for resource list uri <a href="mailto:sip%3A9012732009-list@irock.com">sip:9012732009-list@irock.com</a> expanded to<br>

&gt; 0 contacts<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; So the NOTIFY is missing the contacts I listed in the XML that was posted in the HTTP PUT.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On , Duane Larson &lt;<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Cool.  Thanks for the info.<br>
&gt; &gt; On Jan 28, 2012 4:03 PM, &quot;Adrian Georgescu&quot; <a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>&gt; wrote:<br>
&gt; &gt; The document you must create for RLS is called rls-services. What you pasted resource-lists and pre-rules documents, which is something else. See RFC 4825.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Adrian<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Jan 28, 2012, at 8:26 PM, <a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; Adrian,<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; This is what I have in the xcap table for user <a href="tel:9012732009" value="+19012732009">9012732009</a>.<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; 527 <a href="tel:9012732009" value="+19012732009">9012732009</a> <a href="http://irock.com" target="_blank">irock.com</a> lists xmlns=&quot;urn:ietf:params:xml:ns:resource-lists&quot;&gt;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;&gt;<a href="tel:9012732005" value="+19012732005">9012732005</a>/display-name&gt;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;&gt;<a href="tel:9013349020" value="+19013349020">9013349020</a>/display-name&gt;list name=&quot;RootGroup&quot;/&gt;lists&gt; 4 9b67239aba25756f119fbcce38b156f3 0 index 0<br>

&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; 523 <a href="tel:9012732009" value="+19012732009">9012732009</a> <a href="http://irock.com" target="_blank">irock.com</a> common-policy&quot;&gt;conditions&gt;<a href="mailto:sip%3A9012732005@coolbeans.com">sip:9012732005@coolbeans.com</a>&quot;/&gt;<a href="mailto:sip%3A9013349020@coolbeans.com">sip:9013349020@coolbeans.com</a>&quot;/&gt;pres-rules&quot;&gt;allowhandling&gt;transformations&gt;devices xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;provide-devices&gt;persons xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;provide-persons&gt;services xmlns=&quot;urn:ietf:params:xml:ns:pres-rules&quot;&gt;provide-services&gt;transformations&gt;ruleset&gt; 2 7389ddfe17038e107feb98b0382ed1a9 0 index.xml 0<br>

&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; The first I would think is a contact list right? My Presence works fine with these XCAP docs.<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; On , Adrian Georgescu <a href="mailto:ag@ag-projects.com">ag@ag-projects.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; 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.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; Your error 5 means that your have no contacts list defined in the rls-services document for sip uri <a href="mailto:9012732009@irock.com">9012732009@irock.com</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; You must build the list of contacts for <a href="mailto:9012732009@irock.com">9012732009@irock.com</a>, upload it using HTTP PUT to the XCAP server rls-services document and finally subscribe to <a href="mailto:9012732009@irock.com">9012732009@irock.com</a><br>

&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; Adrian<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; On Jan 27, 2012, at 2:15 AM, <a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a> wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I am trying to get Snom&#39;s Contact List to work with RLS and XCAP. When I enable the Snom phone it sends the following subscribe<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; SUBSCRIBE <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>;user=phone SIP/2.0<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Via: SIP/2.0/UDP 192.168.1.70:3072;branch=z9hG4bK-o82o6mip4krp;rport<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; From: <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>&gt;;tag=uqpj4kshg7<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; To: <a href="mailto:sip%3A9012732009@irock.com">sip:9012732009@irock.com</a>;user=phone&gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Call-ID: c60b313ccc40-ul069icazcpv<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; CSeq: 1 SUBSCRIBE<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Max-Forwards: 70<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Contact: ;reg-id=1<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Event: presence<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Accept: application/pidf+xml, application/rlmi+xml, multipart/related<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Supported: eventlist<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; User-Agent: snom821/8.4.31<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Expires: 3600<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Content-Length: 0<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; With my OpenSIPS config I have<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; # -- rls params --<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;db_url&quot;, &quot;mysql://opensips:****@<a href="http://127.0.0.1/opensips" target="_blank">127.0.0.1/opensips</a>&quot;)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;server_address&quot;, &quot;sip:rls@sdfsdfsdf:5060&quot;)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;to_presence_code&quot;, 5)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;integrated_xcap_server&quot;, 1)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;presence_server&quot;, &quot;sip:sa@asdfsadfsd:5060&quot;)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;rls_event&quot;, &quot;xcap-diff&quot;)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; modparam(&quot;rls&quot;, &quot;rls_event&quot;, &quot;ua-profile&quot;)<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; rls_handle_subscribe();<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; switch ($retcode) {<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; case 5:<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; # RLS indicated that message should be processed by presence<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; if (is_uri_host_local()) {<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; if (db_does_uri_exist()) {<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; handle_subscribe();<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; } else {<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; t_reply(&quot;404&quot;, &quot;User not found&quot;);<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; }<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; exit;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; }<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; break;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I see with xlog messages that rls_handle_subscribe() fails with a &quot;case 5&quot;. I am not sure why the Snom SUBSCRIBE would fail with a &quot;5&quot;.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; I&#39;ve looked at <a href="http://www.opensips.org/Resources/Rls" target="_blank">http://www.opensips.org/Resources/Rls</a> and the SUBSCRIBE from SNOM really isn&#39;t that different. So why does &quot;rls_handle_subscribe()&quot; fail?_______________________________________________<br>

&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Users mailing list<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; Users mailing list<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;_______________________________________________<br>
&gt; &gt;<br>
&gt; &gt; &gt; Users mailing list<br>
&gt; &gt;<br>
&gt; &gt; &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; &gt;<br>
&gt; &gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt;<br>
&gt; &gt; Users mailing list<br>
&gt; &gt;<br>
&gt; &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; &gt;<br>
&gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;_______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>