0 like 0 dislike
21 views
I want to filter the caller number so that i can get calls from genuine callers
asked Aug 25, 2017 in Education & Reference by Simmi (530 points) | 21 views
    

1 Answer

0 like 0 dislike
exten => 123,1,NoOp(${CALLERID(all)})
exten => 123,n,GotoIf($[${ISNULL(${CALLERID(ani)})}=1]?NULL)
exten => 123,n,GotoIf($[${LEN(${CALLERID(num)})}<5]?NULL)
exten => 123,n,Set(isnumber=${REGEX("[0-9]" ${CALLERID(num)})})
exten => 123,n,GotoIf($["${isnumber}" = "1"]?PASS:NULL)
exten => 123,n(PASS),Dial(SIP/IP/${EXTEN})
exten => 123,n(NULL),Hangup()
answered Aug 25, 2017 by Veer

Related questions

1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

Mathe Forum Schule und Studenten
1,161 questions
1,297 answers
271 comments
1,558 users