On Sep 12, 2012, at 11:57 PM, "Ankur - BillCall" <[email protected]> 
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
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to