Re: [SR-Users] Kamailio AVPs Radius

2014-12-16 Thread Kalala Alexander
Please forgive me for my english ... "side effect of authentication" What is it? Most billing system using RADIUS do not know what SIP_AVP The parameter "Session-Timeout" or "h323-credit-time" come only in response Access-Accept, When requesting Access-Request (with Digest data for authentic

Re: [SR-Users] Kamailio AVPs Radius

2014-12-15 Thread Juha Heinanen
Kalala Alexander writes: > These attributes indentichny and are one and same data. Billing System > (Radius server) these attributes allow the maximum call time for the > client. > Perhaps there is contact Ovidiu Sas or Juha Heinanen, who developed > this module? i haven't used radius auth for a

Re: [SR-Users] Kamailio AVPs Radius

2014-12-15 Thread Kalala Alexander
Thank you for your reply Daniel, I understand that you are very busy with work. These attributes indentichny and are one and same data. Billing System (Radius server) these attributes allow the maximum call time for the client. Perhaps there is contact Ovidiu Sas or Juha Heinanen, who developed t

Re: [SR-Users] Kamailio AVPs Radius

2014-12-15 Thread Daniel-Constantin Mierla
On 15/12/14 13:31, Kalala Alexander wrote: > Daniel, > > Possible to make changes to the module for the understanding of AVP from > Radius? As said, it will probably require a bit of C coding. I haven't dealt with Radius for many years. What is the AVP id for Session-Timeout (as defined in the r

Re: [SR-Users] Kamailio AVPs Radius

2014-12-15 Thread Daniel-Constantin Mierla
To understand - did you try to make those changes with Session-Timeout in the source code? Because A_SESSION_TIMEOUT is not there by default. I think SIP_AVP has a special encoding of the value, cannot be just replaced to get the Session-Timeout. Cheers, Daniel On 11/12/14 16:55, Kalala Alexande

Re: [SR-Users] Kamailio AVPs Radius

2014-12-15 Thread Kalala Alexander
Daniel, Possible to make changes to the module for the understanding of AVP from Radius? 11.12.2014, 18:11, "Daniel-Constantin Mierla" : > Looking a bit deeper in the code, apparently only SIP_AVP (code 27) are > added as avps -- see generate_avps(): > >    modules/auth_radius/sterman.c > > For a

Re: [SR-Users] Kamailio AVPs Radius

2014-12-11 Thread Kalala Alexander
Thanks for the answer, but from RFC2865 https://tools.ietf.org/html/rfc2865#page-48 modules/auth_radius/authrad_mod.c ++ attrs[A_SESSION_TIMEOUT].n = "Session-Timeout"; lib/kcore/radius.h ++ #define A_SESSION_TIMEOUT27 can rad_dict.h How to specificy in C++, this

Re: [SR-Users] Kamailio AVPs Radius

2014-12-11 Thread Daniel-Constantin Mierla
Looking a bit deeper in the code, apparently only SIP_AVP (code 27) are added as avps -- see generate_avps(): modules/auth_radius/sterman.c For adding all radius avps, I guess some extra C code needs to be pushed there. Cheers, Daniel On 11/12/14 14:57, Kalala Alexander wrote: > I have done

Re: [SR-Users] Kamailio AVPs Radius

2014-12-11 Thread Kalala Alexander
I have done avp_print (); Here's the output: 1(11832) INFO: avpops [avpops_impl.c:1488]: ops_print_avp(): name= 1(11832) INFO: avpops [avpops_impl.c:1496]: ops_print_avp(): val_str=: > Not using radius myself, but a quick look at the code reveals that some > avps are generated after authenti

Re: [SR-Users] Kamailio AVPs Radius

2014-12-11 Thread Daniel-Constantin Mierla
Not using radius myself, but a quick look at the code reveals that some avps are generated after authentication. You can print the list of the avps with avp_print(): http://kamailio.org/docs/modules/stable/modules/avpops.html#avpops.f.avp_print Then you can see what is getting back from radius.

[SR-Users] Kamailio AVPs Radius

2014-12-10 Thread Kalala Alexander
Radius server sends a response containing an attribute (Session-Timeout (27): 2342). How is the value saved in the AVPs using module auch_radius? Config: modparam("auth_radius", "radius_config","/etc/radiusclient-ng/radiusclient.conf") modparam("auth_radius", "service_type",15) modparam("auth