15 Apr
2015
15 Apr
'15
5:10 a.m.
On 15-04-15 10:52, Peter Balsianok wrote:
Hi,
I have following unlang code in the preacct section
update request { Calling-Station-Id := "%{%{string:Class}:-%{Calling-Station-Id}}" }
If my packet does not contain Class attribut, i expect that Calling-Station-Id will not change.
Then you have to test for that first if (request:Class) { update request { Calling-Station-Id := "%{string:Class}" } } Since we can be sure a Class attribute exists, we can skip the fallback to Calling-Station-Id -- Herwin Weststrate