0 like 0 dislike
599 views
I need to remove + sign from caller ID if coming and save to a variable 
and If not coming + sign the save as it is in a variable
asked Aug 9, 2013 in Education & Reference by Jeetu | 599 views
    

3 Answers

0 like 0 dislike
exten => 12345,1,Answer()

; log callerID string
exten => 12345,n,NoOp(${CALLERID(num)})

; If found "+", make them hit 1000 Priority else 2000 priority.
exten => 12345,n,GotoIf($["${CALLERID(num):0:1}" = "+"]?1000:2000)
exten => 12345,1000,Set(num=${CALLERID(num):1})
exten => 12345,2000,Set(num=${CALLERID(num)})
answered Aug 9, 2013 by Sunny
I have tried this .. but its not working properly ....
0 like 0 dislike

How to allow only genuine caller id in dialplan asterisk

answered Jun 1, 2016 by Sam (1,390 points)
0 like 0 dislike

exten => 123,1,GotoIf($[${ISNULL(${CALLERID(ani)})}=1]?NULL)
OR
exten => 123,1,GotoIf($["${CALLERID(num)}" = ""]?NULL)
exten => 123,n,GotoIf($[${LEN(${CALLERID(num)})}<5]?NULL)
exten => 123,n,GotoIf($["${CALLERID(num)"!=""]?GO)
exten => 123,n(GO),Set(isnumber=${REGEX("[0-9]" ${CALLERID(num)})})
exten => 123,n,GotoIf($["${isnumber}" = "1"]?PASS)
exten => 123,n(PASS),NoOp(GO)
exten => 123,n(NULL),Hangup()

answered Jun 1, 2016 by Sunny

Related questions

1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
2 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Aug 25, 2017 in Education & Reference by Simmi (510 points) | 23 views

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,167 questions
1,307 answers
276 comments
1,594 users