Regular expresion problem

Alan DeKok aland at deployingradius.com
Fri Dec 28 14:28:45 CET 2012


BALSIANOK, Peter wrote:
> I want to use regular expression in acct_users file
>
> DEFAULT Called-Station-Id =~ /orangewap/i,

  That doesn't work.

  For the /.../i syntax to work, you MUST use "unlang":

	...
	if (Called-Station-Id =~ /orangewap/i) {
		update control {
			Proxy-To-Realm := realm_orangewap
		}

		update reply {
			Called-Station-Id = "%{Called-Station-Id}.%{3GPP-SGSN-Address}"
		}
	}


  Alan DeKok.


More information about the Freeradius-Users mailing list