From 9d89a4bdbb01923498bc0cf709a8ff7b98506d4f Mon Sep 17 00:00:00 2001 From: Asadfaruqi Date: Sun, 4 May 2025 10:23:27 -0700 Subject: [PATCH] remove-module --- .../Modules/mod_rad_auth_3964951.mdx | 220 ------------------ 1 file changed, 220 deletions(-) delete mode 100644 docs/FreeSWITCH-Explained/Modules/mod_rad_auth_3964951.mdx diff --git a/docs/FreeSWITCH-Explained/Modules/mod_rad_auth_3964951.mdx b/docs/FreeSWITCH-Explained/Modules/mod_rad_auth_3964951.mdx deleted file mode 100644 index 25ed211c..00000000 --- a/docs/FreeSWITCH-Explained/Modules/mod_rad_auth_3964951.mdx +++ /dev/null @@ -1,220 +0,0 @@ - -# mod_rad_auth - - - -## About - -Module rad\_auth does only RADIUS authentication (and not the accounting). - -The truly magic thing about the rad\_auth is that you can specify your own list of VSAs (Vendor-Specific Attributes) to be included in the packet along with the standard ones that are being used. - -```xml - name: just a description - value: direct input or variable - pec: vendor ID (0 for default, 9 for cisco...) - expr: 0 - direct input (string), 1 - channel variable - direction: in for radius-request, out for radius-response -``` - -VSA mappings can be used to specify additional VSA list in both radius request and radius response messages. - -Including an additional VSA in a radius request message looks like this: - -```xml - -``` - -or - -```xml - -``` - -CALLINGNUMBER is a channel variable you can re-use later in the dialplan. - -Extracting VSA of your interest from a radius response message looks like this: - -```xml - -``` - -Here you map VSA with vendor\_id=9 and id=110 into a channel variable called PREFFERED\_LANG so you can use it later in dialplan to play the correct language for instance. - -## 1) To install the module you have to install freeradius-client first. - -Go to [http://freeradius.org/freeradius-client/](http://freeradius.org/freeradius-client/) and download the package: - -```xml -$ cd ~/build -$ wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-client-1.1.6.tar.bz2 -$ tar jxf freeradius-client-1.1.6.tar.bz2 -$ cd freeradius-client-1.1.6 -$ ./configure -$ make -$ sudo make install -``` - -(or $ sudo checkinstall) Checkinstall will create and install a nice Debian package for you, otherwise you may use a traditional make install. - -run ldconfig as root to update the shared libs links: - -```xml -ldconfig -v | grep radius -hash -r -``` - -## 2) Go to FreeSWITCH source directory and edit the modules.conf - -append applications/mod\_rad\_auth to the end - -```xml -$ cd src/mod/applications/mod_rad_auth/ -$ make -$ make install -``` - -or simply: - -```xml -$ make mod_rad_auth-install -``` - -## 3) Run Freeswitch and verify that module is installed. - -```xml -freeswitch> load mod_rad_auth -``` - -Here an example on how to use RADIUS for authentication: - -```xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -``` - -In the dialplan you need to trigger auth as: - -```xml - -``` - -There are two behaviors: - -1. authorize the call according to username&pass and dialed number - if authorized, the radius server returns credit time towards the dialed number. -2. authorize the call according to username&pass - if authorized, the radius server returns the current account balance. - -For example, you may use the credit time for scheduled hangup of call: - -```xml - - -``` - -```xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -``` - -