1 like 0 dislike
102 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
asked Apr 27 in Education & Reference by Simmi (510 points) | 102 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}))
answered Apr 27 by Marc (2,480 points)

Related questions

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

Mathe Forum Schule und Studenten
1,169 questions
1,309 answers
276 comments
1,602 users