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

Iñaki Baz Castillo ibc at aliax.net
Fri Aug 28 10:45:31 CEST 2009


2009/8/28 Juha Heinanen <jh at tutpro.com>:
> 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.

I haven't inspected the code, but  rls_handle_subscribe() does what
it's supposed to do (return the preconfigured to $rc when no RL doc is
found).


-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list