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
<br />
<br />SUBSCRIBE sip:9012732009@irock.com;user=phone SIP/2.0
<br />Via: SIP/2.0/UDP 192.168.1.70:3072;branch=z9hG4bK-o82o6mip4krp;rport
<br />From: <sip:9012732009@irock.com>;tag=uqpj4kshg7
<br />To: <sip:9012732009@irock.com;user=phone>
<br />Call-ID: c60b313ccc40-ul069icazcpv
<br />CSeq: 1 SUBSCRIBE
<br />Max-Forwards: 70
<br />Contact: <sip:9012732009@192.168.1.70:3072;line=uj0qzs9a>;reg-id=1
<br />Event: presence
<br />Accept: application/pidf+xml, application/rlmi+xml, multipart/related
<br />Supported: eventlist
<br />User-Agent: snom821/8.4.31
<br />Expires: 3600
<br />Content-Length: 0
<br />
<br />
<br />With my OpenSIPS config I have
<br />
<br /># -- rls params --
<br />modparam("rls", "db_url", "mysql://opensips:****@127.0.0.1/opensips")
<br />modparam("rls", "server_address", "sip:rls@sdfsdfsdf:5060")
<br />modparam("rls", "to_presence_code", 5)
<br />modparam("rls", "integrated_xcap_server", 1)
<br />modparam("rls", "presence_server", "sip:sa@asdfsadfsd:5060")
<br />modparam("rls", "rls_event", "xcap-diff")
<br />modparam("rls", "rls_event", "ua-profile")
<br />
<br />
<br /> rls_handle_subscribe();
<br />
<br /> switch ($retcode) {
<br /> case 5:
<br /> # RLS indicated that message should be processed by presence
<br />
<br /> if (is_uri_host_local()) {
<br /> if (db_does_uri_exist()) {
<br /> handle_subscribe();
<br /> } else {
<br /> t_reply("404", "User not found");
<br /> }
<br /> exit;
<br /> }
<br /> break;
<br />
<br />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".
<br />
<br />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?