Claim your Biolink Click Here
1 like 0 dislike
987 views
lets say I receive call from USA, UK, Australia & NewZealand
so Country Code would be: 1,44,61 & 64 and I need to remove these number before landing to my agents
Please help
in Education & Reference by (830 points) | 987 views

1 Answer

0 like 0 dislike
Best answer

Please add the below lines in your DP

exten => _X.,n,ExecIf($[ "${CALLERID(num):0:2}" = "64" & "${LEN(${CALLERID(num)})}" = "10" ]?Set(CALLERID(num)=${CALLERID(num):2}))
exten => _X.,n,ExecIf($[ "${CALLERID(num):0:2}" = "61" & "${LEN(${CALLERID(num)})}" = "11" ]?Set(CALLERID(num)=${CALLERID(num):2}))
exten => _X.,n,ExecIf($[ "${CALLERID(num):0:1}" = "1" & "${LEN(${CALLERID(num)})}" = "11" ]?Set(CALLERID(num)=${CALLERID(num):1}))
exten => _X.,n,ExecIf($[ "${CALLERID(num):0:2}" = "44" & "${LEN(${CALLERID(num)})}" = "12" ]?Set(CALLERID(num)=${CALLERID(num):2}))
by (4.6k points)

Related questions

0 like 0 dislike
3 answers
3 like 0 dislike
1 answer
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
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

1,308 questions
1,469 answers
568 comments
4,809 users