callingstationid filter and regexp

Miguel mmiranda at 123.com.sv
Wed Apr 19 17:06:00 CEST 2006


Bjørn Mork wrote:

>Miguel <mmiranda at 123.com.sv> writes:
>
>  
>
>>Hi, im trying to configure a check that 1315 username will be allowed
>>to connect only from a particular list of callinstationids, so i added
>>a Calling-Station-Id attribute to the radcheck table, this are my
>>filter's details
>>
>>username: 1315
>>
>>list of callingstationids:
>>- from 22662100 to 22662199 (this is a pbx)
>>- 22793045
>>- 22934240
>>
>>the attribute was entered like this:
>>
>>username: 1315
>>attribute: Calling-Station-Id
>>Op:   ~=
>>Value: ^226621[0-9][0-9]$|^22793045$|^22934240$
>>
>>But i always get acces denied:
>>Tue Apr 18 15:38:04 2006 : Auth: Login incorrect: [1315/1315] (from
>>client private-network port 0 cli 50322793045)
>>    
>>
>
>Looks like 503 is prepended to the value you expect in
>Calling-Station-Id. Maybe some prefix added by the PBX?
>  
>
you are right, its my fuault, i edited the info i sent to the list, 
please ignore the 503 prefix, it shouldnt be there.

>You could either modify your regexp to allow any number ending in the
>8 wanted digits, 
>
>  
>
How do i do that?, remberber that the fist group its a pbx, 100 
callinstationids, i think i need some regexp example for  this case.
thanks





More information about the Freeradius-Users mailing list