In Access-Request h323-remote-address Multiple times How to get it in SQL query

Blake Covarrubias blake at beamspeed.com
Thu Sep 13 09:03:08 CEST 2012


On Sep 12, 2012, at 11:57 PM, "Ankur - BillCall" <ankur.kalavadia at billcall.net> wrote:

> We are getting h323-remote-address multiple times. How can I get both attribute in sql query for authentication?
>  
> I set sql_user_name = "%{h323-remote-address}". But I get sql_user_name = Trunk ID (000111) only. How can I get IP XXX.105.4.197?

You probably want this.

sql_user_name = "%{h323-remote-address[1]}"

Read "man unlang". Specifically section "String lengths and arrays".

--
Blake Covarrubias


More information about the Freeradius-Users mailing list