login | register
Tue 30 of Sep, 2008 [23:39 UTC]

voip-info.org

Appradius

Created by: jht2,Last modification on Mon 12 of Jul, 2004 [22:29 UTC] by emplant
http://appradius.minitelecom.org/

Appradius is a GPL project that adds full RADIUS authorize and account features to Asterisk.

Supports
  • recording Asterisk CDR into Radius
  • authenticating users via Radius

Example:
exten => s,1,Answer
exten => s,2,SetLanguage(en) ; if you want to change language replace 'en' with other like 'de'
exten => s,3,Radius(CPP) ; CPP-Parameter is mandatory!
exten => s,4,Hangup

See also



Asterisk Addons



Comments

Comments Filter
222

333Appradius Docs

by jsalas, Wednesday 14 of December, 2005 [13:50:19 UTC]
Where can I get the appradius documentation?
222

333My experience

by , Wednesday 19 of January, 2005 [15:41:15 UTC]
Hi All here is a description of my experience with this module, I have tested it with freeRadius with a mySql databse:
- In order to compile properly add #define _GNU_SOURCE before includes in header file or Add -D_GNU_SOURCE to CFLAGS variable in src/Makefile
- path for radius.conf file is hard coded so modify it depending on you asterisk install pin header files (#define RADCONFIG "/your/asterisk/etc/path/radius.conf")
- For free Radisu add the content appradius1.0/contrib/dictionary.add to /usr/share/freeradius/dictionary
- In radacc table create an account to test with pin 4 digits and passwd 4 digits (or 6/6, or 8/8 ?)
- In radreply set up the Account-Cache and Session-Timeout (to some hard coded value just to test, ex 12 and 65)
- Notice that a minimum call time of 1 minute has been set in the defines whatever the called destination
- Modify the app_radius.c (around line 377) with
nHang = radius_cktime(usernm, passwd, phone, szSID);
(nhang instead of nCache)

What is missing for this module:
- The radius_cktime should return a nHang is seconds depending on the called destination (phone) (to be done as a module of the freeRadius, I suggest, as the nHang is returned in the Session-Timeout Radius attribute)
- Call time in CDR = total call time (including the time spent in IVR to enter login/passwd and time to set up the call with the extension) and not the call time with the reached extension. Don't know how to solve this yet ...
- Account-Cache should be updated based on the time of the call and the called destination (in the freeRadisu Module also ...)

Finnaly, this module is not usable out of the box, but I'm sure the minitelecom gys will be happy to help you ;)
222

333Where is radius.conf file located?

by , Friday 14 of January, 2005 [21:27:35 UTC]
Please can someone tell me where is radius.conf file located? Or do i have to make one in /etc/asterisk folder?

Thanks for this module!

Chris
222

333Hack for RH9 & 1.0.2 - but no records ???

by funkknob, Sunday 26 of December, 2004 [17:11:55 UTC]
  1. How I fixed the install

  1. untar then:
cd /root/appradius1.0/src
perl -pi -e "s/CFLAGS =/CFLAGS = -D_GNU_SOURCE/g;" ./Makefile
  1. install then:
cd /usr/lib
ln -s /usr/local/lib/librad.so.1.0 librad.so
222

333Re: Re: v1.4 works 0.9.1 stable only

by , Wednesday 17 of November, 2004 [20:33:04 UTC]
This does not work, btw....
222

333still in development?

by , Wednesday 29 of September, 2004 [16:02:43 UTC]
thanks good module.(:biggrin:)

I also keep to checking around functions too.
and I get result following that .

Sep 30 00:22:43 NOTICE393237: app_radius.c:391 auth_exec: SID=415b8a0c-49d3865d-1111 user=1111
Sep 30 00:22:43 NOTICE393237: app_radius.c:213 radius_cktime: user length = 4, pass length = 4, phone length = 3, sid length = 22
calling 400
   — Executing MP3Player("IAX2/xx00@xx00/4", "/var/lib/asterisk/mohmp3/sample.mp3") in new stack
calling 400 returned -1, with 0 secs real usage

I think it seems still in development.


and I think the point of following source code is bit stranege.

in app_radius.c
nCache = radius_cktime(usernm, passwd, phone, szSID);

How can I set the attribute for account?
it seems radius_cktime routine is always return "0" by seting with int to = 0;

Does anyone have good idea?

222

333Re: How about this condition?

by vickyshres, Friday 10 of September, 2004 [15:48:23 UTC]
Yes , by default it support UID length 4 and Password Length 4. I had to hack the source code to allow UID length of 8 and password length of 4.
222

333Re: v1.4 works 0.9.1 stable only

by vickyshres, Thursday 09 of September, 2004 [06:21:44 UTC]

+++ src/Makefile 2004-09-09 11:13:43.702550816 +0545 @@ -20,7 +20,7 @@
LIB=../lib
INC=../inc

-CFLAGS = -I${INC} -O -Wall -I${includedir} -g -O2
+CFLAGS = -D_GNU_SOURCE -I${INC} -O -Wall -I${includedir} -g -O2 LDFLAGS = -L${LIB} -L${libdir}
LDADD = -lrad


222

333why?

by emplant, Monday 12 of July, 2004 [13:01:28 UTC]
PAP and plain-text is works well.
it can get a Access-Accept from radius server.

but app_radius cannot accept it.
What's that?

222

333How about this condition?

by emplant, Monday 12 of July, 2004 [09:05:41 UTC]
PIN 4digits and pass 4digits. no CHAP support
Is this correct?(:biggrin:)