[OpenSIPS-Users] RLS and presence Server
Anca Vamanu
anca at voice-system.ro
Mon Nov 3 12:29:31 CET 2008
Hi Mahesh,
mahesh.peddi at info-spectrum.com wrote:
> Hi Anca,
>
> Thankyou.
>
> I have one some doubts regarding RLS..
>
> 1. What does
> ---------
> modparam("rls", "integrated_xcap_server", 1)
> ------
> means in the cfg file?
>
It means that you are using a XCAP server that communicates with
OpenSIPS by putting the rl-services document in OpenSIPS database.
OpenXCAP does this.
> 2. does RLS need openxcap to be running for RLS to work in the desired
> way?
>
You can use OpenXCAP or other mechanism of putting the document in
OpenSIPS database. Or you can use another XCAP server and don't set the
integrated_xcap_server parameter.
regards,
Anca
> Regards,
> Mahesh Peddi
>
> ----- Original Message ----- From: "Anca Vamanu" <anca at voice-system.ro>
> To: <mahesh.peddi at info-spectrum.com>
> Cc: <users at lists.openser.org>
> Sent: Friday, October 31, 2008 8:30 PM
> Subject: Re: [OpenSIPS-Users] RLS and presence Server
>
>
>> Hi Mahesh,
>>
>> I have made the port in 1.4.
>> You don't need to change anything, but it is more efficient if you
>> set the presence_server parameter to the address of the presence server:
>> modparam("rls", "presence_server", "sip:sa at ip:port");
>>
>> regards,
>> Anca
>>
>> mahesh.peddi at info-spectrum.com wrote:
>>> 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
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anca.vcf
Type: text/x-vcard
Size: 208 bytes
Desc: not available
Url : http://lists.opensips.org/pipermail/users/attachments/20081103/9a42dfb3/attachment.vcf
More information about the Users
mailing list