PREFIX


Abstract

Prefix is verifying the validity of a number based on its prefix.

If a number matches our prefixes database the call should be rejected.


Call blocking reason

SFP


Data example

prefix.txt is a CSV file containing one or two columns (depending of the feeds subscription).

004434,RISK

Fields description

#

name

description

mandatory

#

name

description

mandatory

1

PREFIX

Define if it’s a global rule or a rule only for a specific subscriber.

 

YES

2

TAG

Information about the prefix

NO


Verification

Test data

000,RISK 00794,RISK 004434,RISK 004145,RISK 00410,RISK

Assuming A_NUMBER is 00794214445566 

The prefix 00794 matches the beginning of the A_NUMBER .

  1. The call SHOULD be rejected

A_NUMBER

MATCHES

ACTION

A_NUMBER

MATCHES

ACTION

00794214445566

00794

REJECT CALL

000415554433

000

REJECT CALL

0033655443322

-

NEXT CHECK

0041456665544

004145

REJECT CALL


Done !

If call is rejected there is no need to process the next tests.

If call is not rejected NEXT CHECKS are processed.

Â