V
V
Valery Zakharov2015-02-25 20:36:42
Telephony
Valery Zakharov, 2015-02-25 20:36:42

Asterisk Number Matching regular expressions how to block everything except Russian?

They get a phone from all over the world, how to block at least all non-Russians?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2015-02-26
@vvzakharov

set them on Function_REGEX

exten => _X.,1,NoOp()
    same => n,GotoIf($[${REGEX("^[+]?[78][0-9]{10}$" ${CALLERID(num)})}]?rf)
    same => n,Answer(1) ; сюда попадет весь левак
    same => n,PlayBack(tt-monkeys)
    same => n,Hangup() ; ложим трубку
    same => n(rf),NoOp(Work) ; это свои. идем дальше по диалплану
....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question