Hi, I have set in sql.conf multiple sql instance. I will also include further different dialup.conf for sql query. How can I configure default file in site-avalible as for one softswitch I do not need this variables to be replied: update reply { NAS-IP-Address = "%{NAS-IP-Address}" Acct-Multi-Session-Id = "%{Acct-Multi-Session-Id}" Acct-Session-Id = "%{Acct-Session-Id}" Event-Timestamp = "%{Event-Timestamp}" 3GPP2-Session-Termination-Capability = "%{3GPP2-Session-Termination-Capability}" 3GPP2-Prepaid-Acct-Quota = "%{3GPP2-Prepaid-Acct-Quota}" 3GPP2-Prepaid-acct-Capability = "%{3GPP2-Prepaid-acct-Capability}" # 3GPP2-Session-Termination-Capability = "{3GPP2-Session-Termination-Capability}" # Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id} # 3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator} } Thanks! Miha -- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
Hi,
Hi,
I have set in sql.conf multiple sql instance. I will also include further different dialup.conf for sql query.
How can I configure default file in site-avalible as for one softswitch I do not need this variables to be replied:
stick a if (%{NAS-IP-Address} != "192.168.0.1"){ } wrapper around it - where that IP address is the one you dont care about alan
On 2/13/2012 10:19 AM, Alan Buxey wrote:
Hi,
Hi,
I have set in sql.conf multiple sql instance. I will also include further different dialup.conf for sql query.
How can I configure default file in site-avalible as for one softswitch I do not need this variables to be replied: stick a
if (%{NAS-IP-Address} != "192.168.0.1"){ }
wrapper around it - where that IP address is the one you dont care about
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thanks for quick replay! Regards, Miha -- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
On 2/13/2012 10:28 AM, Miha Zoubek wrote:
On 2/13/2012 10:19 AM, Alan Buxey wrote:
Hi,
Hi,
I have set in sql.conf multiple sql instance. I will also include further different dialup.conf for sql query.
How can I configure default file in site-avalible as for one softswitch I do not need this variables to be replied: stick a
if (%{NAS-IP-Address} != "192.168.0.1"){ }
wrapper around it - where that IP address is the one you dont care about
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thanks for quick replay!
Regards, Miha
Hi, I have one problem: if (%{NAS-IP-Address} != "xxx.xxx.xxx.xxx"){ update reply { NAS-IP-Address = "%{NAS-IP-Address}" Acct-Multi-Session-Id = "%{Acct-Multi-Session-Id}" Acct-Session-Id = "%{Acct-Session-Id}" Event-Timestamp = "%{Event-Timestamp}" 3GPP2-Session-Termination-Capability = "%{3GPP2-Session-Termination-Capability}" 3GPP2-Prepaid-Acct-Quota = "%{3GPP2-Prepaid-Acct-Quota}" 3GPP2-Prepaid-acct-Capability = "%{3GPP2-Prepaid-acct-Capability}" # 3GPP2-Session-Termination-Capability = "{3GPP2-Session-Termination-Capability}" # Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id} # 3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator} } } I get this: Module: Checking post-auth {...} for more modules to load Bare %{...} is invalid in condition at: %{NAS-IP-Address} != "xxx.xxx.xx.xxx") /usr/local/etc/raddb/sites-enabled/default[450]: Errors parsing post-auth section. [root@newbill sites-available]# Thanks! -- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
On Mon, Feb 13, 2012 at 4:44 PM, Miha Zoubek <miha@softnet.si> wrote:
Hi,
I have one problem:
if (%{NAS-IP-Address} != "xxx.xxx.xxx.xxx"){
Module: Checking post-auth {...} for more modules to load Bare %{...} is invalid in condition at: %{NAS-IP-Address} != "xxx.xxx.xx.xxx")
The message should be quite obvious. Try adding quotes: if ("%{NAS-IP-Address}" != "xxx.xxx.xxx.xxx"){ -- Fajar
On 2/13/2012 10:52 AM, Fajar A. Nugraha wrote:
if ("%{NAS-IP-Address}" != "xxx.xxx.xxx.xxx"){ @Fajar sorry that I did not inform you about this. I have noticed right when I send email to the group. I have fix quotes but still getting error.
fix: if (%{NAS-IP-Address} != "xxx.xxx.xxx.xxx"){ update reply { NAS-IP-Address = "%{NAS-IP-Address}" Acct-Multi-Session-Id = "%{Acct-Multi-Session-Id}" Acct-Session-Id = "%{Acct-Session-Id}" Event-Timestamp = "%{Event-Timestamp}" 3GPP2-Session-Termination-Capability = "%{3GPP2-Session-Termination-Capability}" 3GPP2-Prepaid-Acct-Quota = "%{3GPP2-Prepaid-Acct-Quota}" 3GPP2-Prepaid-acct-Capability = "%{3GPP2-Prepaid-acct-Capability}" # 3GPP2-Session-Termination-Capability = "{3GPP2-Session-Termination-Capability}" # Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id} # 3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator} } } Error: Module: Checking session {...} for more modules to load Module: Checking post-proxy {...} for more modules to load Module: Checking post-auth {...} for more modules to load Bare %{...} is invalid in condition at: %{NAS-IP-Address} != "xxx.xxx.xxx.xxx") /usr/local/etc/raddb/sites-enabled/default[450]: Errors parsing post-auth section. [root@newbill sites-available]# BR, Miha -- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
On 2/13/2012 11:06 AM, Miha Zoubek wrote:
On 2/13/2012 10:52 AM, Fajar A. Nugraha wrote:
if ("%{NAS-IP-Address}" != "xxx.xxx.xxx.xxx"){ @Fajar sorry that I did not inform you about this. I have noticed right when I send email to the group. I have fix quotes but still getting error.
fix:
if (%{NAS-IP-Address} != "xxx.xxx.xxx.xxx"){
update reply { NAS-IP-Address = "%{NAS-IP-Address}" Acct-Multi-Session-Id = "%{Acct-Multi-Session-Id}" Acct-Session-Id = "%{Acct-Session-Id}" Event-Timestamp = "%{Event-Timestamp}" 3GPP2-Session-Termination-Capability = "%{3GPP2-Session-Termination-Capability}" 3GPP2-Prepaid-Acct-Quota = "%{3GPP2-Prepaid-Acct-Quota}" 3GPP2-Prepaid-acct-Capability = "%{3GPP2-Prepaid-acct-Capability}"
# 3GPP2-Session-Termination-Capability = "{3GPP2-Session-Termination-Capability}" # Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id} # 3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator} } }
Error:
Module: Checking session {...} for more modules to load Module: Checking post-proxy {...} for more modules to load Module: Checking post-auth {...} for more modules to load Bare %{...} is invalid in condition at: %{NAS-IP-Address} != "xxx.xxx.xxx.xxx") /usr/local/etc/raddb/sites-enabled/default[450]: Errors parsing post-auth section. [root@newbill sites-available]#
BR, Miha
-- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o. Sorry:)
forget. It is working perfectly:) Thanks! Miha -- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
participants (3)
-
Alan Buxey -
Fajar A. Nugraha -
Miha Zoubek