[Serusers] radius accounting stop

Kamran Ahmad p_kami at yahoo.com
Fri Apr 8 10:58:31 CEST 2005


hello


i am not getting accounting stop on Radius. only
accounting start is comming. can any one tell me what
is the problem in my configuration.

thanks in advance
Kamran

ser.cfg
-------------------------------------------------
debug=3         # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no	# (cmd line: -E)

port=5060
fifo="/tmp/ser_fifo"

loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"

loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"

loadmodule "/usr/local/lib/ser/modules/auth.so"

modparam("auth_radius","radius_config","/usr/local/etc/radiusclient/radiusclient.conf")
modparam("auth_radius","service_type",15)

modparam("acc", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
modparam("acc", "log_level", 1)
modparam("acc", "log_flag" , 1)
modparam("acc", "radius_flag", 1)

#end of radius configuration
route {

if (!mf_process_maxfwd_header("10")) {
		sl_send_reply("483","Too Many Hops");
		break;
	};

	if ( msg:len > max_len ) {
		sl_send_reply("513", "Message too big");
		break;
	};

	record_route();	

	if (loose_route()) {
		t_relay();
		break;
	};


	setflag(1);
        if (method=="INVITE") record_route();
                                                      
                                          
	if (method=="INVITE") {
		rewritehostport("mygwIP:5060");
	}

	if (uri==myself) {

		if (method=="REGISTER") {

			if(!radius_www_authorize("")) {
				www_challenge("","0");
				break;
			}

			save("location");
			break;
		};
	};

	if (!t_relay()) {
		sl_reply_error();
	};
}


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250




More information about the sr-users mailing list