M
M
mrbalearic2019-07-29 12:44:18
Asterisk
mrbalearic, 2019-07-29 12:44:18

How to bring to one type of CallerID?

It costs FreePBX 13, asterisk 11. There are 2 trunks, incoming calls come in
different formats:
7XXXXXXXXXX
8XXXXXXXXXX
87XXXXXXXXXX

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Levashev, 2019-07-29
@skystart

For example
, somewhere in the beginning of incoming processing
same => n,GoSub(aon,${CALLERID(num)},1);
[aon]
exten => _XXXXXXXXXX,1,Set(CALLERID(num)=8${CALLERID(num)})
same => n,Return()
exten => _7XXXXXXXXXX,1,Set(CALLERID(num)=8$ {CALLERID(num):-10})
same => n,Return()
exten => _87XXXXXXXXXX,1,Set(CALLERID(num)=8${CALLERID(num):-10})
same => n,Return ()
exten => _XXXXXXXXX,1,Set(CALLERID(num)=7495${CALLERID(num)})
same => n,Return()
exten => _XXXXXXXXXX.,1,Goto(other_numbers,1); if needed...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question