how to store some data in freeradius users file into custom table?

Alan DeKok aland at
Sat Sep 13 16:01:20 CEST 2014

rafa alfurqan wrote:
> is it possible to store IMSI code (IMSI for eap-sim data in users file)
> from freeradius to a custom table that i made in phpmyadmin, if it's
> possible can someone show me if the examples of the implementation?

  Yes.  You will need to get the data via a SELECT statement:

	update control {
		Attribute-Name := "%{sql: SELECT ...}"


> what i want to achieve is that for freeradius to store IMSI data to
> asterisk's real time table or for asterisk to read from freeradius's
> table for sip.conf and extension.conf username in asterisk files.

  It's probably easier to make FreeRADIUS read the Asterisk table.

  Alan DeKok.

More information about the Freeradius-Users mailing list