Black and white lists
Go to System → System file custmization.

Open the extensions.conf configuration file for editing.

Set the "Add to end of file" mode and paste the following code:
[add-trim-prefix-clid-custom]
exten => _X!,1,NoOp(...)
; Blacklist of numbers. The call will be completed..
same => n,ExecIf($["${CALLERID(num)}" == "491771789427"]?Hangup())
same => n,ExecIf($["${CALLERID(num)}" == "4915735987904"]?Hangup())
same => n,ExecIf($["${CALLERID(num)}" == "4915735996685"]?Hangup())
same => n,return

The whitelist of numbers sometimes needs to be described for specific providers:
[Provider-ID-incoming-custom]
exten => _X!,1,NoOp(...)
; Whitelist of numbers.
same => n,ExecIf($["${CALLERID(num)}" == "491771789427"]?return)
same => n,ExecIf($["${CALLERID(num)}" == "4915735996685"]?return)
same => n,ExecIf($["${CALLERID(num)}" == "4915735987904"]?return)
same => n,Hangup()
PROVIDER-ID - the value that you can find in the address bar at the time of provider configuration

Last updated
Was this helpful?