Claim your Biolink Click Here
0 like 0 dislike
1.1k 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
in Education & Reference by | 1.1k 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)})
by
0 0
I have tried this .. but its not working properly ....
0 like 0 dislike

How to allow only genuine caller id in dialplan asterisk

by (1.6k 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)<br> 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()

by

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
3 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 (820 points) | 244 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

1,310 questions
1,471 answers
569 comments
4,809 users