how to access CallingStationId and CalledStationId propertes in diaup.conf (sql.conf) in a SQL query

Phil Mayers p.mayers at imperial.ac.uk
Sat Mar 23 14:05:28 CET 2013


On 03/23/2013 10:31 AM, Mehdi Ravanbakhsh wrote:
> Dear ALL
>
> I use this query by calling stored procedure in database :
>
> simul_count_query = "SELECT
> findout_cuncurrent_sessions_for_a_user('%{User-Name}','%{NAS-IP-Address}','%{CalledStationId}','%{CallingStationId}')"
>
> but I can not access to the value of  CallingStationId and CalledStationId.
>

You've spelt them wrong. They have hyphens in them.

Run "radiusd -X" and look at what it shows you. Amongst other things, it 
will show you the actual attributes in the packet, and these are the 
names you can use.


More information about the Freeradius-Users mailing list