Hi everyone !
Im start working with Asterisk just 3 month ago from zero and my “boss” give me the task to convert 3 digit numbers to 4 digits. Can anyone explain how to do this ? Or give some advice what read or check.
Thanks in advance for the answer.
What does it mean to “convert 3 digit numbers to 4 digits”?
In the office we already have numbers like XXX (3 digits) and boss told to rework this to XXXX (4 digits). For explain - i need to transform 111 to 1111
we have a telephony guide for 500 users with numbers like XXX and every of this numbers need to transform to XXXX
Are you using .conf files, Asterisk Real Time Architecture, a mixture of the two, or some GUI?
If using a GUI, you need to ask on the forum for the GUI, as they often maintain a separate database and build .conf files from that.
If .conf files, are you using extensions.conf, or one of the other formats.
Generally for .conf files, you use an editor with a good regular expression find and replace capability.
If i correctly understood you, im working in the FreePBX v.14 and with .conf files (extensions.conf, pjsip.conf and etc). But the question remains the same - how to do it correctly?
Something tells me that gives all numbers in .conf file one more digit is not solution))))))
If you are using FreePBX you must not modify the files you have listed, and you need to ask on https://community.freepbx.org as the information you are talking about is overwritten,from FreePBX’s database, every time you do a configuration reload, so any changes you make to the Asterisk configuration will not persist.
Note that FreePBX conflates extension numbers and device names, so all the phone will need to have their configurations changed, so, when you go to the correct forum, also tell them how you provisioned the phones.
(The worst case scenario is if you configured the phones manually, offline, in which case, because FreePBX uses extension numbers as device names, you will have to manually reconfigure every phone.)
Thank you for your answer to my question, I will ask on that site