[OpenSIPS-Devel] [ opensips-Bugs-2835614 ] rls_handle_subscribe() doesn't allow RURI parameters

SourceForge.net noreply at sourceforge.net
Wed Aug 12 13:36:18 CEST 2009


Bugs item #2835614, was opened at 2009-08-11 17:59
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2835614&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz Castillo (ibc_sf)
Assigned to: Anca Vamanu (anca_vamanu)
Summary: rls_handle_subscribe() doesn't allow RURI parameters

Initial Comment:
Typical conf:
--------------------
modparam("rls", "to_presence_code", 5)

[...]

rls_handle_subscribe();
if ($retcode==5) {
  #RLS indicated that message should be processed by presence.
  handle_subscribe();
}
exit;
--------------------

If the SUBSCRIBE arrives with a parameter in the RURI (i.e; sip:alice at example.org;transport=tcp) then "rls_handle_subscribe()" doesnt' return 5 and the normal subscription is not performed.

Of course, removing the RLS stuf the normal subscription works perfectly as it should.

----------------------------------------------------------------------

>Comment By: Anca Vamanu (anca_vamanu)
Date: 2009-08-12 14:36

Message:
Hi Inaki,

That retcode corresponds to -1, it is in fact 111...11 in binary (64
bits). So it seems that there is an error with no error message printed.
Could you raise the debug level and check which are the log messages
corresponding to the processing of the Subscribe in rls module?

regards,
Anca

----------------------------------------------------------------------

Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-08-11 19:43

Message:
I've added a xlog to display the $retcode after rls_handle_subscribe():

*** rls_handle_subscribe() for sip:eyebeam2 at example.net  =>  rc = 5 ***
*** rls_handle_subscribe() for sip:alice at example.net  =>  rc =
18446744073709551615 ***
*** rls_handle_subscribe() for sip:eyebeam at example.net;transport=tcp  => 
rc = 5 ***
*** rls_handle_subscribe() for sip:xlite at example.net  =>  rc =
18446744073709551615 ***
*** rls_handle_subscribe() for sip:eyebeam at example.net  =>  rc =
18446744073709551615 ***
*** rls_handle_subscribe() for sip:meetme200 at example.net;transport=tcp  =>
 rc = 18446744073709551615 ***
*** rls_handle_subscribe() for sip:bob at example.net  =>  rc =
18446744073709551615 ***
*** rls_handle_subscribe() for sip:alice at example.net;transport=tcp  =>  rc
= 18446744073709551615 ***
*** rls_handle_subscribe() for sip:eyebeam2 at example.net  =>  rc = 5 ***
*** rls_handle_subscribe() for sip:eyebeam at example.net;transport=tcp  => 
rc = 5 ***

It's strange as it doesn't always fail (!=5). Note that I don't have rls
created.

No error in the log.

----------------------------------------------------------------------

Comment By: Anca Vamanu (anca_vamanu)
Date: 2009-08-11 18:38

Message:
Hi Inaki,

Can you check if there is an error message in the log?

regards,
Anca

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2835614&group_id=232389



More information about the Devel mailing list