J
J
JanikPerm2018-04-19 20:08:47
Asterisk
JanikPerm, 2018-04-19 20:08:47

Asterisk How to call in your city without dialing the area code?

Don't kick too hard, just learning.
Asterisk + CentOS server deployed.
Connected sip-provider. In this case, calls in your city have to be made by dialing 7 (area code) (number).
To call an external number, the following was written in the dialplan:

exten => _XXX.,1,Dial(SIP/${EXTEN}@digits)

The numbers are seven digits. I guess it should be something like this?:
exten => _XXXXXXX,1,Dial(SIP/$7342{EXTEN}@digits)

In general, neither I nor Google know how to prescribe parameters in extensions.conf in a bare Aster so that I do not dial a prefix when making calls in my city.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-04-19
@Zarom

exten => _XXXXXXX,1,Dial(SIP/7342${EXTEN}@транк)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question