Hello all.
Please, I am trying to make Radius authorization and accounting using SER 0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not accounting, I don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the radius client. Is there other things to do besides the ser_radius howto? Please help...
Thanks a lot Rosa.
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting using SER 0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not accounting, I don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the radius client. Is there other things to do besides the ser_radius howto? Please help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same folder. The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting using
SER
0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not accounting, I don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the radius client. Is there other things to do besides the ser_radius howto? Please help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Did you mark the transaction with correct flag ? Try to configure both syslog and radius accounting with the same flag and see if you get any accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same folder. The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting using
SER
0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not accounting, I don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the radius client. Is there other things to do besides the ser_radius howto? Please help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get anything in syslog. This is what you mean?
Thanks again. Rosa.
------------------------ debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") {
if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; };
lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; };
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
------------------------
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure both syslog and radius accounting with the same flag and see if you get any accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same
folder.
The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting using
SER
0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not
accounting, I
don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the
radius
client. Is there other things to do besides the ser_radius howto? Please
help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Yes, this is what I meant. Could you also post dumps of SIP traffic that should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get anything in syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure both syslog and radius accounting with the same flag and see if you get any accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same
folder.
The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting using
SER
0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not
accounting, I
don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the
radius
client. Is there other things to do besides the ser_radius howto? Please
help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi again Jan.
The way I have the setflag command does not register all messages for accounting? I mean: register, invite, bye, etc ?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 23:08:16 +0100
Yes, this is what I meant. Could you also post dumps of SIP traffic that should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get anything
in
syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure both syslog and radius accounting with the same flag and see if you get any accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same
folder.
The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting
using
SER
0.9.3 and radiusclient-ng. I already set all the configuration as
the
ser_radius HowTo. Now, I'm making Radius authorization successfully, but not
accounting, I
don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the
radius
client. Is there other things to do besides the ser_radius howto? Please
help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Only if a transaction has been created. REGISTERs, for example, do not create transactions.
Try to add acc_rad_request("text"); right after setflag(1). This should log any request.
Jan.
On 18-11-2005 22:27, Rosa De Santis wrote:
Hi again Jan.
The way I have the setflag command does not register all messages for accounting? I mean: register, invite, bye, etc ?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 23:08:16 +0100
Yes, this is what I meant. Could you also post dumps of SIP traffic that should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get anything
in
syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure both syslog and radius accounting with the same flag and see if you get any accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same
folder.
The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote: > Hello all. > > Please, I am trying to make Radius authorization and accounting
using
SER > 0.9.3 and radiusclient-ng. I already set all the configuration as
the
> ser_radius HowTo. > Now, I'm making Radius authorization successfully, but not
accounting, I
> don't get anything going out through port 1813. > > The Radius Server is in another machine, i'm configuring only the
radius
> client. > Is there other things to do besides the ser_radius howto? Please
help...
> > Thanks a lot > Rosa. > > > _______________________________________________ > Serusers mailing list > serusers@lists.iptel.org > http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi Jan,
When I use acc_rad_request I can't login. Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: Subject: Re: [Serusers] Radius accounting Date: Sat, 19 Nov 2005 00:16:08 +0100
Only if a transaction has been created. REGISTERs, for example, do not create transactions.
Try to add acc_rad_request("text"); right after setflag(1). This should log any request.
Jan.
On 18-11-2005 22:27, Rosa De Santis wrote:
Hi again Jan.
The way I have the setflag command does not register all messages for accounting? I mean: register, invite, bye, etc ?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 23:08:16 +0100
Yes, this is what I meant. Could you also post dumps of SIP traffic
that
should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get
anything
in
syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure
both
syslog and radius accounting with the same flag and see if you get
any
accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same
folder.
The strange thing is that i'm making authorization to the same
Radius
server, why accounting is not working?
Thanks Rosa.
>From: Jan Janak jan@iptel.org >To: Rosa De Santis rosadesantis@hotmail.com >CC: serusers@lists.iptel.org >Subject: Re: [Serusers] Radius accounting >Date: Fri, 18 Nov 2005 21:04:26 +0100 > >Did you configure the accounting server in the configuration file
of
>radiusclient-ng ? > >Do you have correct secret for the server ? > > Jan. > >On 18-11-2005 18:25, Rosa De Santis wrote: >> Hello all. >> >> Please, I am trying to make Radius authorization and accounting
using
>SER >> 0.9.3 and radiusclient-ng. I already set all the configuration
as
the
>> ser_radius HowTo. >> Now, I'm making Radius authorization successfully, but not
accounting, I
>> don't get anything going out through port 1813. >> >> The Radius Server is in another machine, i'm configuring only
the
radius
>> client. >> Is there other things to do besides the ser_radius howto?
Please
help...
>> >> Thanks a lot >> Rosa. >> >> >> _______________________________________________ >> Serusers mailing list >> serusers@lists.iptel.org >> http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi Jan.
I put the acc_rad_request("text") and the setflag(1) in the route section and now I receive a warn message in syslog: rc_send_server: no reply from RADIUS server unknown: 1646. I still don't have any package out of port 1813, but i find packages trying to go out port 1646.
Do you know why is this happening? Please help...
Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: Subject: Re: [Serusers] Radius accounting Date: Sat, 19 Nov 2005 00:16:08 +0100
Only if a transaction has been created. REGISTERs, for example, do not create transactions.
Try to add acc_rad_request("text"); right after setflag(1). This should log any request.
Jan.
On 18-11-2005 22:27, Rosa De Santis wrote:
Hi again Jan.
The way I have the setflag command does not register all messages for accounting? I mean: register, invite, bye, etc ?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: > >Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 23:08:16 +0100
Yes, this is what I meant. Could you also post dumps of SIP traffic
that
should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get
anything
in
syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure
both
syslog and radius accounting with the same flag and see if you get
any
accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote: > Yes, I set the server IP in authserver and acctserver in the > radiusclient.conf file in the radiusclient-ng folder. > I also added the server and secret in the servers file in the
same
folder. > The strange thing is that i'm making authorization to the same
Radius
> server, why accounting is not working? > > Thanks > Rosa. > > > >From: Jan Janak jan@iptel.org > >To: Rosa De Santis rosadesantis@hotmail.com > >CC: serusers@lists.iptel.org > >Subject: Re: [Serusers] Radius accounting > >Date: Fri, 18 Nov 2005 21:04:26 +0100 > > > >Did you configure the accounting server in the configuration
file of
> >radiusclient-ng ? > > > >Do you have correct secret for the server ? > > > > Jan. > > > >On 18-11-2005 18:25, Rosa De Santis wrote: > >> Hello all. > >> > >> Please, I am trying to make Radius authorization and
accounting
using
> >SER > >> 0.9.3 and radiusclient-ng. I already set all the configuration
as
the
> >> ser_radius HowTo. > >> Now, I'm making Radius authorization successfully, but not accounting, I > >> don't get anything going out through port 1813. > >> > >> The Radius Server is in another machine, i'm configuring only
the
radius > >> client. > >> Is there other things to do besides the ser_radius howto?
Please
help... > >> > >> Thanks a lot > >> Rosa. > >> > >> > >> _______________________________________________ > >> Serusers mailing list > >> serusers@lists.iptel.org > >> http://lists.iptel.org/mailman/listinfo/serusers > > > _______________________________________________ > Serusers mailing list > serusers@lists.iptel.org > http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hello all ,
I just did a clean install of ser-0.9.3_linux_x86_64_tar.gz on a new Fedora Core 3 box(fresh install). I didnt enable any modules in the ser.cfg.
I ran the command to start ser and I got the listening message. So I tried to restart it and see what happens
serctl restart yeilds Stopping SER : No PID file found! SER probably not running
But ps aux yields: root 17955 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17956 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17957 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17958 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17959 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17960 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17961 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17962 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17963 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17964 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17965 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17966 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17967 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17968 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17969 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17970 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17971 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17972 0.0 0.2 49044 4128 ? S 20:28 0:00 /usr/local/sbin/ser root 17973 0.0 0.2 49044 4136 ? S 20:28 0:00 /usr/local/sbin/ser root 17974 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17975 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17976 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17977 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17978 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17979 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17980 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17981 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser root 17982 0.0 0.2 49044 4132 ? S 20:28 0:00 /usr/local/sbin/ser
Any ideas on what went wrong??
Thx, Eric Haskins
Eric Haskins wrote:
Hello all ,
I just did a clean install of ser-0.9.3_linux_x86_64_tar.gz on a new Fedora Core 3 box(fresh install). I didnt enable any modules in the ser.cfg.
I ran the command to start ser and I got the listening message. So I tried to restart it and see what happens
serctl restart yeilds Stopping SER : No PID file found! SER probably not running
I can't comment on serctl but I can tell you we stop and start ser just fine as a service using the included scripts in the sources under the rpm directory:
# ll total 48 -rwxrwxr-x 1 827 20204 1001 Aug 28 2002 ser.init -rwxrwxr-x 1 827 20204 4182 Jul 4 2003 ser.init.SuSE -rw-rw-r-- 1 827 20204 9203 Jun 23 13:03 ser.spec-4.1 -rw-rw-r-- 1 827 20204 9145 Sep 2 08:57 ser.spec.fedora -rw-rw-r-- 1 827 20204 10694 Sep 2 08:57 ser.spec.SuSE
example: service ser restart
Andres
Have you configured your Radius servers correctly? (in radiusclient.cconf)
klaus
Rosa De Santis wrote:
Hi Jan.
I put the acc_rad_request("text") and the setflag(1) in the route section and now I receive a warn message in syslog: rc_send_server: no reply from RADIUS server unknown: 1646. I still don't have any package out of port 1813, but i find packages trying to go out port 1646.
Do you know why is this happening? Please help...
Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: Subject: Re: [Serusers] Radius accounting Date: Sat, 19 Nov 2005 00:16:08 +0100
Only if a transaction has been created. REGISTERs, for example, do not create transactions.
Try to add acc_rad_request("text"); right after setflag(1). This should log any request.
Jan.
On 18-11-2005 22:27, Rosa De Santis wrote:
Hi again Jan.
The way I have the setflag command does not register all messages for accounting? I mean: register, invite, bye, etc ?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: > >Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 23:08:16 +0100
Yes, this is what I meant. Could you also post dumps of SIP
traffic that
should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get
anything
in
syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; }; setflag(1); if (!method=="REGISTER") record_route(); if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; }; if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; }; if (uri==myself) { if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; }; append_hf("P-hint: usrloc applied\r\n"); route(1);
}
route[1] { if (!t_relay()) { sl_reply_error(); }; }
>From: Jan Janak jan@iptel.org >To: Rosa De Santis rosadesantis@hotmail.com >CC: serusers@lists.iptel.org >Subject: Re: [Serusers] Radius accounting >Date: Fri, 18 Nov 2005 21:16:22 +0100 > >Did you mark the transaction with correct flag ? Try to
configure both
>syslog and radius accounting with the same flag and see if you
get any
>accounting records in syslog. > > Jan. > >On 18-11-2005 20:04, Rosa De Santis wrote: >> Yes, I set the server IP in authserver and acctserver in the >> radiusclient.conf file in the radiusclient-ng folder. >> I also added the server and secret in the servers file in the
same
>folder. >> The strange thing is that i'm making authorization to the
same Radius
>> server, why accounting is not working? >> >> Thanks >> Rosa. >> >> >> >From: Jan Janak jan@iptel.org >> >To: Rosa De Santis rosadesantis@hotmail.com >> >CC: serusers@lists.iptel.org >> >Subject: Re: [Serusers] Radius accounting >> >Date: Fri, 18 Nov 2005 21:04:26 +0100 >> > >> >Did you configure the accounting server in the configuration
file of
>> >radiusclient-ng ? >> > >> >Do you have correct secret for the server ? >> > >> > Jan. >> > >> >On 18-11-2005 18:25, Rosa De Santis wrote: >> >> Hello all. >> >> >> >> Please, I am trying to make Radius authorization and
accounting
using
>> >SER >> >> 0.9.3 and radiusclient-ng. I already set all the
configuration as
the
>> >> ser_radius HowTo. >> >> Now, I'm making Radius authorization successfully, but not >accounting, I >> >> don't get anything going out through port 1813. >> >> >> >> The Radius Server is in another machine, i'm configuring
only the
>radius >> >> client. >> >> Is there other things to do besides the ser_radius howto?
Please
>help... >> >> >> >> Thanks a lot >> >> Rosa. >> >> >> >> >> >> _______________________________________________ >> >> Serusers mailing list >> >> serusers@lists.iptel.org >> >> http://lists.iptel.org/mailman/listinfo/serusers >> >> >> _______________________________________________ >> Serusers mailing list >> serusers@lists.iptel.org >> http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi, Klaus.
Yes, I configured the radius server IP in authserver and acctserver in radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same folder.
Maybe I have a port problem, but I checked the radius ports in /etc/services and they're ok. Is there another place to check the ports?
Thanks for your help. Rosa.
From: Klaus Darilion klaus.mailinglists@pernau.at To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Wed, 23 Nov 2005 09:32:32 +0100
Have you configured your Radius servers correctly? (in radiusclient.cconf)
klaus
Rosa De Santis wrote:
Hi Jan.
I put the acc_rad_request("text") and the setflag(1) in the route section and now I receive a warn message in syslog: rc_send_server: no reply from RADIUS server unknown: 1646. I still don't have any package out of port 1813, but i find packages trying to go out port 1646.
Do you know why is this happening? Please help...
Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: Subject: Re: [Serusers] Radius accounting Date: Sat, 19 Nov 2005 00:16:08 +0100
Only if a transaction has been created. REGISTERs, for example, do not create transactions.
Try to add acc_rad_request("text"); right after setflag(1). This should log any request.
Jan.
On 18-11-2005 22:27, Rosa De Santis wrote:
Hi again Jan.
The way I have the setflag command does not register all messages for accounting? I mean: register, invite, bye, etc ?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: > >Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 23:08:16 +0100
Yes, this is what I meant. Could you also post dumps of SIP traffic
that
should have been accounted ?
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote: > Hello. Thanks for your help. > > This is my ser.cfg. > I set log_flag, log_level and radius_flag to 1, and I don't get
anything
in > syslog. > This is what you mean? > > Thanks again. > Rosa. > > ------------------------ > debug = 9 > fork=no > log_stderror=yes > > check_via=no # (cmd. line: -v) > dns=no # (cmd. line: -r) > rev_dns=no # (cmd. line: -R) > #port=5060 > #children=4 > fifo="/tmp/ser_fifo" > > loadmodule "/usr/local/lib/ser/modules/mysql.so" > 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/textops.so" > loadmodule "/usr/local/lib/ser/modules/acc.so" > loadmodule "/usr/local/lib/ser/modules/auth.so" > loadmodule "/usr/local/lib/ser/modules/auth_radius.so" > > modparam("usrloc", "db_mode", 2) > modparam("acc", "log_level", 1) > modparam("acc", "log_flag", 1) > modparam("acc", "radius_config", > "/usr/local/etc/radiusclient-ng/radiusclient.conf") > modparam("acc", "radius_missed_flag", 2) > modparam("acc", "radius_flag", 1) > modparam("acc", "service_type", 15) > modparam("auth_radius", "radius_config", > "/usr/local/etc/radiusclient-ng/radiusclient.conf") > > route{ > > if (!mf_process_maxfwd_header("10")) { > sl_send_reply("483","Too Many Hops"); > break; > }; > if (msg:len >= 2048 ) { > sl_send_reply("513", "Message too big"); > break; > }; > > setflag(1); > if (!method=="REGISTER") record_route(); > > if (loose_route()) { > # mark routing logic in request > append_hf("P-hint: rr-enforced\r\n"); > route(1); > break; > }; > > if (!uri==myself) { > # mark routing logic in request > append_hf("P-hint: outbound\r\n"); > route(1); > break; > }; > > if (uri==myself) { > > if (method=="REGISTER") { > > if (!radius_www_authorize("")) { > www_challenge("", "0"); > break; > }; > save("location"); > break; > }; > > lookup("aliases"); > if (!uri==myself) { > append_hf("P-hint: outbound alias\r\n"); > route(1); > break; > }; > > # native SIP destinations are handled using our USRLOC DB > if (!lookup("location")) { > sl_send_reply("404", "Not Found"); > break; > }; > }; > > append_hf("P-hint: usrloc applied\r\n"); > route(1); > } > > route[1] > { > if (!t_relay()) { > sl_reply_error(); > }; > } > > ------------------------ > > > >From: Jan Janak jan@iptel.org > >To: Rosa De Santis rosadesantis@hotmail.com > >CC: serusers@lists.iptel.org > >Subject: Re: [Serusers] Radius accounting > >Date: Fri, 18 Nov 2005 21:16:22 +0100 > > > >Did you mark the transaction with correct flag ? Try to configure
both
> >syslog and radius accounting with the same flag and see if you
get any
> >accounting records in syslog. > > > > Jan. > > > >On 18-11-2005 20:04, Rosa De Santis wrote: > >> Yes, I set the server IP in authserver and acctserver in the > >> radiusclient.conf file in the radiusclient-ng folder. > >> I also added the server and secret in the servers file in the
same
> >folder. > >> The strange thing is that i'm making authorization to the same
Radius
> >> server, why accounting is not working? > >> > >> Thanks > >> Rosa. > >> > >> > >> >From: Jan Janak jan@iptel.org > >> >To: Rosa De Santis rosadesantis@hotmail.com > >> >CC: serusers@lists.iptel.org > >> >Subject: Re: [Serusers] Radius accounting > >> >Date: Fri, 18 Nov 2005 21:04:26 +0100 > >> > > >> >Did you configure the accounting server in the configuration
file of
> >> >radiusclient-ng ? > >> > > >> >Do you have correct secret for the server ? > >> > > >> > Jan. > >> > > >> >On 18-11-2005 18:25, Rosa De Santis wrote: > >> >> Hello all. > >> >> > >> >> Please, I am trying to make Radius authorization and
accounting
using > >> >SER > >> >> 0.9.3 and radiusclient-ng. I already set all the
configuration as
the > >> >> ser_radius HowTo. > >> >> Now, I'm making Radius authorization successfully, but not > >accounting, I > >> >> don't get anything going out through port 1813. > >> >> > >> >> The Radius Server is in another machine, i'm configuring
only the
> >radius > >> >> client. > >> >> Is there other things to do besides the ser_radius howto?
Please
> >help... > >> >> > >> >> Thanks a lot > >> >> Rosa. > >> >> > >> >> > >> >> _______________________________________________ > >> >> Serusers mailing list > >> >> serusers@lists.iptel.org > >> >> http://lists.iptel.org/mailman/listinfo/serusers > >> > >> > >> _______________________________________________ > >> Serusers mailing list > >> serusers@lists.iptel.org > >> http://lists.iptel.org/mailman/listinfo/serusers > > > _______________________________________________ > Serusers mailing list > serusers@lists.iptel.org > http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
By the way -- set fork=yes in the config file. fork=no is mainly for debugging and some things may not work correctly in no-fork mode.
Jan.
On 18-11-2005 21:50, Rosa De Santis wrote:
Hello. Thanks for your help.
This is my ser.cfg. I set log_flag, log_level and radius_flag to 1, and I don't get anything in syslog. This is what you mean?
Thanks again. Rosa.
debug = 9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so" 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/textops.so" loadmodule "/usr/local/lib/ser/modules/acc.so" loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2) modparam("acc", "log_level", 1) modparam("acc", "log_flag", 1) modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf") modparam("acc", "radius_missed_flag", 2) modparam("acc", "radius_flag", 1) modparam("acc", "service_type", 15) modparam("auth_radius", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
route{
if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); break; };
setflag(1); if (!method=="REGISTER") record_route();
if (loose_route()) { # mark routing logic in request append_hf("P-hint: rr-enforced\r\n"); route(1); break; };
if (!uri==myself) { # mark routing logic in request append_hf("P-hint: outbound\r\n"); route(1); break; };
if (uri==myself) {
if (method=="REGISTER") { if (!radius_www_authorize("")) { www_challenge("", "0"); break; }; save("location"); break; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); break; }; # native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; };
};
append_hf("P-hint: usrloc applied\r\n"); route(1); }
route[1] { if (!t_relay()) { sl_reply_error(); }; }
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:16:22 +0100
Did you mark the transaction with correct flag ? Try to configure both syslog and radius accounting with the same flag and see if you get any accounting records in syslog.
Jan.
On 18-11-2005 20:04, Rosa De Santis wrote:
Yes, I set the server IP in authserver and acctserver in the radiusclient.conf file in the radiusclient-ng folder. I also added the server and secret in the servers file in the same
folder.
The strange thing is that i'm making authorization to the same Radius server, why accounting is not working?
Thanks Rosa.
From: Jan Janak jan@iptel.org To: Rosa De Santis rosadesantis@hotmail.com CC: serusers@lists.iptel.org Subject: Re: [Serusers] Radius accounting Date: Fri, 18 Nov 2005 21:04:26 +0100
Did you configure the accounting server in the configuration file of radiusclient-ng ?
Do you have correct secret for the server ?
Jan.
On 18-11-2005 18:25, Rosa De Santis wrote:
Hello all.
Please, I am trying to make Radius authorization and accounting using
SER
0.9.3 and radiusclient-ng. I already set all the configuration as the ser_radius HowTo. Now, I'm making Radius authorization successfully, but not
accounting, I
don't get anything going out through port 1813.
The Radius Server is in another machine, i'm configuring only the
radius
client. Is there other things to do besides the ser_radius howto? Please
help...
Thanks a lot Rosa.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers