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 authentication).
Function "radius_load_*сalles" creates a new the "Access-Request" and
"Session-Timeout" is no longer there ...
Perhaps in modules/auth_radius/sterman.c
Embed code(misc_radius):
static void generate_avps_rad(VALUE_PAIR* received)
{
int_str name, val;
unsigned short flags;
VALUE_PAIR *vp;
vp = received;
for( ; vp ; vp=vp->next) {
flags = AVP_NAME_STR;
switch(vp->type)
{
case PW_TYPE_STRING:
flags |= AVP_VAL_STR;
name.s.len = strlen(vp->name);
val.s.len = strlen(vp->strvalue);
name.s.s = vp->name;
val.s.s = vp->strvalue;
if (add_avp( flags, name, val ) < 0) {
LM_ERR("unable to create a new AVP\n");
} else {
LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
(flags&AVP_NAME_STR)?name.s.len:4,
(flags&AVP_NAME_STR)?name.s.s:"null",
(flags&AVP_NAME_STR)?0:name.n,
(flags&AVP_VAL_STR)?val.s.len:4,
(flags&AVP_VAL_STR)?val.s.s:"null",
(flags&AVP_VAL_STR)?0:val.n );
}
continue;
case PW_TYPE_INTEGER:
name.s.len = strlen(vp->name);
name.s.s = vp->name;
val.n = vp->lvalue;
if (add_avp( flags, name, val ) < 0) {
LM_ERR("unable to create a new AVP\n");
} else {
LM_DBG("AVP '%.*s'/%d='%.*s'/%d has been added\n",
(flags&AVP_NAME_STR)?name.s.len:4,
(flags&AVP_NAME_STR)?name.s.s:"null",
(flags&AVP_NAME_STR)?0:name.n,
(flags&AVP_VAL_STR)?val.s.len:4,
(flags&AVP_VAL_STR)?val.s.s:"null",
(flags&AVP_VAL_STR)?0:val.n );
}
continue;
default:
LM_ERR("skip attribute type %d (non-string)", vp->type);
continue;
}
return;
}
}
16.12.2014, 10:24, "Juha Heinanen" <jh(a)tutpro.com>om>:
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 long time.
It would be nice to do to download any attribute
value, for example:
modparam("auth_radius", "auth_get",
"Session-Timeout=$avp(time);h323-credit-time=$avp(cisco-time)");
you can download anything from your radius server to kamailio avps as
side effect of authentication or using radius_load_* calls. if you want
session-timeout, return it from your radius server as SIP-AVP with name
session-timaout and value whatever.
-- juha
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
С уважением
Инженер по телекоммуникациям
Калала Александр
vel: 375291146285
life: 375256819996
skype: klistrod
VoIP Network Engineer
dCAP, CCNAVoice
Kalala Alexander
http://callcenters.by/
http://skytel.by/
http://voiplab.by/
http://asterisk-pbx.by/