[OpenSIPS-Users] RLS and presence Server

mahesh.peddi at info-spectrum.com mahesh.peddi at info-spectrum.com
Fri Oct 31 06:28:53 CET 2008


Hi Anca,

Thankyou very much.

Can you please merge the changes to 1.4 branch? that will be helpful for
me :)

With your changes in rls, Do I need to change anything in the
configuration file?
or just t_relay() to forward to presence server will suffice?

Thankyou in advance.

Regards,
Mahesh Peddi

> Hi Mahesh,,
>
> Could you please update RLS to the latest version in the latest version
> in the trunk( or if you like to the svn branch for 1.4 , as I will port
> the patch there also today). It has some quite important fixes .
> Using a separate presence server does work and with the script that you
> have printed - doing t_reply for requests that are for presence server.
> Also, with the version from svn, you can set the module parameter for
> rls module - presence_server to the address of your server and this way
> the presence requests generated by the rls server won't pass through the
> rls server.
>
> regards,
> Anca Vamanu
>
> mahesh.peddi at info-spectrum.com wrote:
>> Hello,
>>
>> I am able to see RLS properly working when RLS and presence
>> functionality is in the same server.
>>
>> after that, I tried to integrate RLS as a separate application server.
>>
>> To forward the message from RLS to presence server, I made below
>> changes in the config file:
>>
>> route[2]
>> {
>>     if (!t_newtran())
>>     {
>>         sl_reply_error();
>>         exit;
>>      };
>>
>>         if(is_method("NOTIFY"))
>>         {
>>                 rls_handle_notify();
>>                 t_release();
>>         }
>>
>>         if(is_method("SUBSCRIBE"))
>>         {
>>                         $var(ret_code)= rls_handle_subscribe();
>>
>>                         if($var(ret_code)== 10)
>>     #to forward to presence server
>>                          t_relay("udp:<ip>:5070");
>>         }
>>
>>         if(is_method("PUBLISH"))
>>         {
>>                #to forward to presence server.
>>                 t_relay("udp:<ip>:5070");
>>                 t_release();
>>         }
>>
>>         exit;
>> }
>>
>>
>> because of this configuration, i found two problems:
>>
>> 1. when i am forwarding subscribe message (from RLS to presence
>> server), its not sending the subscribe for all the contacts. Here, i
>> am expecting (sort of) output of  rls_handle_subscribe() to be sent to
>> the presence server. Which is not happening.
>>
>> 2. When presence server is sending notify message, it is sending
>> directly to scscf..instead of rls..
>>
>> Can anybody let me know, how can I get the desired functionality of:
>>
>>  1. UE --> RLS --> presence server (subscribe)
>>  2. Presence server --> RLS --> UE (for notify).
>>
>>
>> If there is any other way to forward message from RLS to presence,
>> please let me know
>>
>> Regards,
>> Mahesh Peddi
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>





More information about the Users mailing list