Spike Ilacqua <[EMAIL PROTECTED]> wrote:
> I'm trying create a setup where I reject calls to certain numbers if the
> request is proxied.
Do you mean "is being proxied", or "was proxied to me"?
Those are two different questions.
> Basically I don't want people in the local calling area using a
> modem aggregation service, I want them to use my modems.
OK..
> My first thought was to use an attr filter along the lines of:
>
> foo
> Proxy-State =* ANY,
> Called-Station-Id =~ ^303,
> Auth-Type := Reject
>
> My thought was that if the request was proxied (since a call to the
> local number might also include the realm) and they called a number
> starting with "303" the call would be rejected, otherwise it would fall
> through to the DEFAULT entry. But nothing happens, all calls go
> through. Am I on the wrong track or missing something obvious?
I'm not sure why you're using 'attr filter'. The 'users' file
should be OK:
DEFAULT Proxy-State =* ANY, Called-Station-ID =~ "^303", Auth-Type := Reject
Reply-Message = "Use MY modems, you evil person!"
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html