Re: [SR-Users] Account 403 to RADIUS

2011-09-26 Thread Mino Haluz
Ok, but when I use acc_rad_request only Failed status type is sent to
Radius, which cannot be written to DB. There is no START , so the
insert_radacct_record stored procedure is not executed before. The Failed
status type fires up the update stored procedure on the existing record. But
when there is no record in db, it cannot be updated.

On Mon, Sep 26, 2011 at 12:15 PM, Daniel-Constantin Mierla 
mico...@gmail.com wrote:

 Hello,


 On 9/26/11 11:26 AM, Mino Haluz wrote:

 Hi,

 I have this code:

if ( is_user_in(From, blocked)  is_method(INVITE)) {
xlog(L_INFO, XLOG: [number_and_ruri_checks] NOTICE:
 Account ($fu) to ($ru) is blocked);
sl_send_reply(403,  Account blocked );
exit;
}

 I would like to account also this answer to Radius, now I have it only in
 application xlog.

 an easy way is to use acc_rad_request(403 Account blocked) right in the
 config file after you send the reply.

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
 http://linkedin.com/in/miconda -- http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Account 403 to RADIUS

2011-09-26 Thread Mino Haluz
Sorry for misunderstanding, yes, the failed status is firing the
insert_radacct_record but with different parameters. I must see why it is
not written to db.

Thanks.

On Mon, Sep 26, 2011 at 1:05 PM, Mino Haluz mino.ha...@gmail.com wrote:

 Ok, but when I use acc_rad_request only Failed status type is sent to
 Radius, which cannot be written to DB. There is no START , so the
 insert_radacct_record stored procedure is not executed before. The Failed
 status type fires up the update stored procedure on the existing record. But
 when there is no record in db, it cannot be updated.


 On Mon, Sep 26, 2011 at 12:15 PM, Daniel-Constantin Mierla 
 mico...@gmail.com wrote:

 Hello,


 On 9/26/11 11:26 AM, Mino Haluz wrote:

 Hi,

 I have this code:

if ( is_user_in(From, blocked)  is_method(INVITE)) {
xlog(L_INFO, XLOG: [number_and_ruri_checks] NOTICE:
 Account ($fu) to ($ru) is blocked);
sl_send_reply(403,  Account blocked );
exit;
}

 I would like to account also this answer to Radius, now I have it only in
 application xlog.

 an easy way is to use acc_rad_request(403 Account blocked) right in the
 config file after you send the reply.

 Cheers,
 Daniel

 --
 Daniel-Constantin Mierla -- http://www.asipto.com
 Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
 http://linkedin.com/in/miconda -- http://twitter.com/miconda



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Account 403 to RADIUS

2011-09-26 Thread Andrew Pogrebennyk

On 09/26/2011 02:16 PM, Mino Haluz wrote:

Ok, the problem is the original feeradius package (squeeze) does not
support Update radius messages (it gives Unsupported Acct-Status-Type =
15).
It's not related to kamailio.

.. however anybody knows how to patch it?


The patches are here:
http://download.dns-hosting.info/CDRTool/contrib/freeradius-brandinger/
but you can just grab freeradiusd-xs from the AG repository as described 
here: http://cdrtool.ag-projects.com/wiki/Install

HTH.

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users