hi
is it possible to do following in config
if ( $avp(s:var_name) != myself ) { # do something }
var_name is AVP looking like "192.168.0.1"
If not -- how I can check that $avp(s:var_name) is not one of my IP-address (without using DOMAIN or other module but by core only) ?
Thanks!
Hi Victor,
I'm afraid it is not possible like that. But there is a bit ugly way to do it :D : $var(tmp) = $ru; $ru = $avp(s:var_name); if (uri==myself) setsflag(20); $ru = $var(tmp);
if (issflagset(20)) { # do something }
ugly, isn't it ? :(
regards, bogdan
Victor Gamov wrote:
hi
is it possible to do following in config
if ( $avp(s:var_name) != myself ) { # do something }
var_name is AVP looking like "192.168.0.1"
If not -- how I can check that $avp(s:var_name) is not one of my IP-address (without using DOMAIN or other module but by core only) ?
Thanks!
Bogdan-Andrei Iancu wrote:
Hi Victor,
Hi Bogdan!
I'm afraid it is not possible like that. But there is a bit ugly way to do it :D : $var(tmp) = $ru; $ru = $avp(s:var_name); if (uri==myself) setsflag(20); $ru = $var(tmp);
if (issflagset(20)) { # do something }
ugly, isn't it ? :(
Hmm. Not so bad. I'll try to do it
Thanks!