[SR-Users] Need help with Kamailio+RLS configuration.
Aleksandrs Semenenko
asemenenko at ftctele.com
Wed Mar 27 16:31:07 CET 2013
Hello everyone,
I am running Kamailio 3.3.2 server and I need to configure it to support RLS to avoid big amounts of SUBSCRIBE requests from clients.
By this moment I have managed to configure XCAP server and learned the XML structure for press-rules, rls-services and resource-list documents.
Also I have successfully put rls_update_subs and rls_handle_subscribe calls to kamailio.cfg, so now when I PUT new rls-services or resource-list document to XCAP I can see these calls triggered.
The problem is that on client side I always get empty notification XML:
<?xml version="1.0"?>
<list uri="sip:user1-list at sip.server" xmlns="urn:ietf:params:xml:ns:rlmi" version="1" fullState="true">
<resource uri="sip:user2 at sip.server"/>
<resource uri="sip:user3 at sip.server"/>
</list>
As I understand, user2 and user3 must have added user1 to pres-rules document? Correct? So it is…
I assume there should be a call to rls_handle_notify function somewhere in kamailio.cfg, but where exactly?
I have tried to add it after SUBSCRIBE condition, but it is never called in fact:
if( is_method("SUBSCRIBE"))
{
xlog("BEFORE rls_handle_subscribe");
$var(ret_code)= rls_handle_subscribe();
xlog("AFTER rls_handle_subscribe");
if($var(ret_code)== 10)
handle_subscribe();
t_release();
}
else
if (is_method("NOTIFY")) {
xlog("BEFORE rls_handle_notify");
rls_handle_notify();
xlog("AFTER rls_handle_notify");
}
Any comment would be appreciated!
Regards,
Alex.
More information about the sr-users
mailing list