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_pr…
Then you can see what is getting back from radius.
Cheers,
Daniel
On 10/12/14 20:42, Kalala Alexander wrote:
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_radius", "use_ruri_flag", 22)
modparam("auth_radius", "auth_extra",
"Calling-Station-Id=$fU;Called-Station-Id=$tU;Acct-Session-Id=$ci")
if (is_method("REGISTER"))
{
# authenticate the REGISTER requests (uncomment to enable auth)
if (!radius_www_authorize("$td")) {
www_challenge("$td", "0");
exit;
}
if ($au!=$tU)
{
sl_send_reply("403","Forbidden auth ID");
exit;
}
}
...............................
if (from_uri==myself)
{
if (!radius_proxy_authorize("$fd", "$fU")) {
proxy_challenge("$fd", "0");
exit;
}
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda