[OpenSIPS-Users] AAA_radius

Kalala Alexander klistrod at yandex.ru
Mon Dec 15 11:16:45 CET 2014


Please help me with the module aaa_radius, please.
In the second (Digest) transaction (CSeq: 2) AVP set of all empty ...

Authentication Invite ok, <null> <null> <null> <null> 1

How to get the AVP in response to Radius server, when the second transaction?

loadmodule "aaa_radius.so"
modparam("aaa_radius", "radius_config", "/etc/radiusclient-ng/radiusclient.conf")
modparam("aaa_radius", "fetch_all_values", 1)

modparam("aaa_radius", "sets", "set1 = (
				User-Name=$Au, Sip-Method=$rm,
				Digest-User-Name=$au, Digest-Realm=$ar, Digest-Nonce=$an,
				Digest-Response=$auth.resp, Digest-Algorithm=$auth.alg,
				Acct-Session-Id=$ci, Digest-Method=$avp(metod),
				Digest-URI=$adu, Calling-Station-Id=$Au,
				Called-Station-Id=$tU
				)")
				
modparam("aaa_radius", "sets", "set2 = (
				Session-Timeout=$avp(time), h323-return-code=$avp(code),
				h323-credit-time=$avp(cisco),h323-credit-amount=$avp(credit)
				)")

if ($adu != NULL){
		radius_send_auth("set1","set2");	   
		switch ($rc) {
			case 1:
		xlog("Authentication Invite ok, $avp(code) $avp(cisco) $avp(time) $avp(credit) $rc\n");
			break;
			case -1:
		xlog("Error during authentication\n");
			break;
			case -2:
		xlog("Authentication error, $avp(code) $avp(time) $avp(credit)\n");
			break;
			}
		}
	else if (!aaa_proxy_authorize("")) { 
		xlog("L_INFO", "AAA_autch!!!!!!!!!!!!!!!!\n");
		proxy_challenge("", "0");
		exit;		
		
	}

Authentication Invite ok, <null> <null> <null> <null> 1



-- 
С уважением
Инженер по телекоммуникациям 
Калала Александр 
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/




More information about the Users mailing list