[OpenSIPS-Devel] rls_handle_subscribe() return code when list is not found

Juha Heinanen jh at tutpro.com
Fri Aug 28 10:42:17 CEST 2009


from rls tutorial document:

http://www.opensips.org/Resources/Rls

i get impression that rls_handle_subscribe() should return
to_presence_code, if resource list document is not found in xcap server.

however, when i read the code, it has:

		if(doc== NULL|| service_node==NULL)
		{
			LM_DBG("list not found - search for uri = %.*s\n",subs.pres_uri.len,
				subs.pres_uri.s);
			reply_code = 404;
			reply_str = pu_404_rpl;
			goto error;
		}

is this a bug?  if not, i don't see how a normal handle_subscribe()
can be tried if rls document doesn't exit.

-- juha



More information about the Devel mailing list