1 like 0 dislike
270 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 (620 points) | 270 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 (2.8k 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,225 questions
1,370 answers
559 comments
2,099 users