Ticket #10068 Handle blocking of special rate calls.

Tweek format of handling of regex to detect special rate calles.
This commit is contained in:
Martin Lindberg 2016-11-08 13:53:32 +01:00
parent 6f6ccb924a
commit ccf5ebd1f4
2 changed files with 21 additions and 21 deletions

View file

@ -1,25 +1,25 @@
AUS;19x
BEL;09xx
BRA;05xx
AUS;19x+
BEL;09xx+
BRA;05xx+
CHL;
CHN;
CZE;9xx
DNK;90xx
CZE;9xx+
DNK;90xx+
ETS;
FIN;0(7[0,5]|[1-3,6]0)
FRA;0[8,9]xx
DEU;0(9xx|137)
HUN;06-[8,9]x
FIN;0(7[0,5]|[1-3,6]0)x+
FRA;0[8,9]xx+
DEU;0(9xx|137)x+
HUN;06-[8,9]x+
IND;
ITA;8
JPN;0990
NLD;09xx
NZL;0900
USA;1-900
ESP;([8,9]0x|118)
SWE;09xx
CHE;09xx
NOR;82x
TWN;020[3,4,9]
GBR;0[8,9]xx
ARE;[2,6]00
JPN;0990x+
NLD;09xx+
NZL;0900x+
USA;1-900x+
ESP;([8,9]0x|118)x+
SWE;90510,09(00|39|44)x+,099x+
CHE;09xx+
NOR;82x+
TWN;020[3,4,9]x+
GBR;0[8,9]xx+
ARE;[2,6]00x+

View file

@ -1200,7 +1200,7 @@ configure_call_filters()
# All x characters are replaced with [0-9] to match a single digit
srn="($(echo $srn | tr -s "" | tr "," "|" | sed 's/x/[0-9]/g'))"
echo "exten => s,n,GotoIf($[\"\${ARG1}\":\"(^$srn[0-9]+)\">0]?special-rate:normal-rate)" >> $WORKDIR/macros.tmp
echo "exten => s,n,GotoIf($[\"\${ARG1}\":\"(^$srn$)\">0]?special-rate:normal-rate)" >> $WORKDIR/macros.tmp
echo "exten => s,n(special-rate),Set(SPECRATE=1)" >> $WORKDIR/macros.tmp
echo "exten => s,n,MacroExit()" >> $WORKDIR/macros.tmp
echo "exten => s,n(normal-rate),Set(SPECRATE=0)" >> $WORKDIR/macros.tmp