26 Mar
2015
26 Mar
'15
4:25 p.m.
hi, use unlang and a regex check to convert the CSI into format needed (or use the macaddress subclass native to postgres if thats your DB...then it doesnt really care I'd advise using google as a good starting point eg start with this and adapt: if ( "%{request:Calling-Station-Id}" =~ /^([0-9a-f]{2}).?([0-9a-f]{2}).?([0-9a-f]{2}).?([0-9a-f]{2}).?([0-9a-f]{2}).?([0-9a-f]{2})$/i ) { update request { Calling-Station-Id := "%{1}-%{2}-%{3}-%{4}-%{5}-%{6}" } } alan