blob: 037af8ead44eca42db79830a90fc5ff300d510ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#
# PRE: foreach foreach-break-3
#
update request {
Calling-Station-Id := "8"
}
update control {
&Calling-Station-Id := "0"
&Calling-Station-Id += "1"
&Calling-Station-Id += "2"
&Calling-Station-Id += "3"
&Calling-Station-Id += "4"
&Calling-Station-Id += "5"
&Calling-Station-Id += "6"
&Calling-Station-Id += "7"
&Calling-Station-Id += "8"
&Calling-Station-Id += "9"
&Calling-Station-Id += "a"
&Calling-Station-Id += "b"
&Calling-Station-Id += "c"
&Calling-Station-Id += "d"
&Calling-Station-Id += "e"
&Calling-Station-Id += "f"
&Calling-Station-Id += "g"
}
foreach &control:Calling-Station-Id {
if (&request:Calling-Station-Id == "%{Foreach-Variable-0}") {
update reply {
Filter-Id := "filter"
}
break
}
elsif ("%{Foreach-Variable-0}" == '9') {
update reply {
Filter-Id := "fail-9"
}
reject
}
}
|