Called-Station-Id

Matthew Newton mcn4 at leicester.ac.uk
Wed Jul 6 12:08:55 CEST 2016


On Wed, Jul 06, 2016 at 11:31:29AM +0300, Манцуров Дмитрий Вячеславович wrote:
> Tell me, please, how to make so that the montlycounter module in
> accounting section works only when Called-Station-Id starts with
> 8 (Called-Station-Id = '8.....')? I think that the need to write
> something on unlang use a regular expression, but I do not know
> how to do it correctly.

  if (&Called-Station-Id =~ /^8/) {
    ...
  }

All in the unlang man page.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at leicester.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list