How to Migrate a Legacy PBX to VoIP Without Downtime
To migrate legacy PBX to VoIP safely, inventory every line and device, choose FreePBX or hosted, run the new system in parallel, port numbers last, and keep the old PBX and lines live for 30 days as your rollback.
- Choose by ownership: no in-house telephony skills means hosted, while special routing, integrations or many analog devices favor FreePBX.
- Digital proprietary sets (Nortel, Avaya, NEC, Panasonic) cannot be reused on SIP, but analog devices can stay behind FXS gateways sized at port count plus about 20%.
- Hidden lines (alarm, elevator, fax, card terminals) cause most migration outages, so find them with a line-by-line inventory before any design work.
- Number porting takes 1 to 4 weeks or more, so start it early, never cancel old service before it completes, and keep a few lines unported.
- Treat rollback as call forwarding or DID repointing while the old PBX stays powered for 30 days, separate from the port, which is hard to reverse.
Should you migrate legacy PBX to VoIP with FreePBX or hosted?
Decide first, because every later step (hardware, trunks, training) depends on it. The real question is who owns uptime, patching, security and fraud risk. With FreePBX you own all four: OS and Asterisk updates, a firewall or SBC in front of it, toll-fraud monitoring, backups and a recovery plan. With a hosted provider the vendor owns most of that and you own the network, the phones and the porting paperwork.
Rule of thumb: if nobody on staff can read a SIP trace or will be on call when the server fails, go hosted. If you need unusual routing, CRM or database integrations, custom IVR logic, or many analog devices (door phones, overhead paging, fax, 30+ analog sets), FreePBX usually fits better because you control the gateway layer and dial plan.
A middle path is common for small MSPs: FreePBX in a data center or cloud VM with a provider SIP trunk and a hardware firewall at the office. That still leaves you owning patching and fraud controls. Compare recurring costs in the site's existing VoIP cost articles, and treat price as the tiebreaker after the ownership question.
| Factor | FreePBX self-hosted | Hosted provider |
|---|---|---|
| Uptime owner | You (server, power, ISP, updates) | Vendor (you still own LAN and internet) |
| Security and SBC | You (firewall, fail2ban, TLS, geo-blocking) | Vendor |
| Custom routing and integrations | Full control | Limited to provider features or API |
| Many analog devices | Strong (your own gateways and FXO/PRI cards) | Possible via ATAs, one per device group |
| Time to first call | Days of build | Hours to days |
What should be in a legacy PBX inventory worksheet?
Walk the building and the PBX cabinet, then compare against the carrier invoice. The invoice reveals lines nobody remembers. Record one row per item in a spreadsheet so each can be mapped, tested and signed off.
Include the carrier account name and address exactly as billed, the contract end date and any early termination fee. You will need them for the porting request and for deciding when old service can be cancelled.
| Item | Record | Migration note |
|---|---|---|
| Extensions | Number, user, device type (analog, digital proprietary, IP), location | Digital sets need replacement IP phones |
| CO lines, PRI, T1, BRI | Type, count, carrier, circuit ID | Drives trunk and channel sizing |
| DIDs and main number | Number, destination, carrier, toll-free or local | Ported numbers need a CSR match |
| Hunt groups | Members, strategy, overflow | Becomes ring group or queue |
| Voicemail boxes | Box, greeting, email, retention | Export greetings if possible, else re-record |
| Auto attendant and IVR | Menu tree, prompts, hours | Rebuild and record prompts |
| Call forwarding and night service | Rules, schedule, holiday dates | Becomes time conditions |
| Paging and door phones | Zones, relay or contact closure | Needs FXS or SIP paging adapter |
| Fax lines | Number, volume, sender type | Test T.38 and fallback |
| Alarm, elevator, card terminals | Line, protocol, vendor contact | Often should stay off VoIP |
How do old PBX features map to the new system?
Most voice features map directly. The gaps are proprietary digital set features that depended on the manufacturer's phone protocol.
Build this table for your own system and mark each line as equivalent, workaround or dropped. Show it to the users who rely on the feature before cutover, not after.
| Legacy feature | FreePBX / hosted equivalent | Caveat |
|---|---|---|
| Hunt group | Ring group or queue | Match ring strategy and timeout |
| Key-system line appearances | Shared line appearance or BLF buttons | Not identical; BLF shows state but is not a true shared line on all phones |
| Night service switch | Time conditions plus call flow control (feature code toggle) | Define holidays explicitly |
| Voicemail | Voicemail with email attachment | Set mailbox PIN policy |
| Call park | Park slots (700-series) with BLF | Train users on slot numbers |
| Proprietary display, soft keys, headset ports | Phone provisioning templates | No equivalent for many one-off set features |
| Intercom and paging | Intercom feature codes, multicast paging | Overhead paging needs FXS or SIP paging adapter |
Which analog and digital devices can be kept, and do you need a gateway?
Digital proprietary sets (Nortel Meridian, Avaya, Panasonic, NEC) speak the vendor's protocol and cannot register to SIP. Budget replacement IP phones for each. Analog devices can stay, but they need an FXS gateway or ATA to present them to the PBX as SIP endpoints, so yes, you need a gateway for any analog set, fax, door phone or paging amp you keep.
Size by port count plus about 20% spare. Example: 18 analog devices x 1.2 = 21.6, so buy 24 FXS ports (for instance one 24-port gateway or three 8-port units). Gateways come in 2, 4, 8, 16, 24 and 48 port sizes.
Fax: use G.711 (ulaw or alaw) and test T.38 on and off. T.38 works only if the gateway, PBX and carrier all support it, and failures show as half-sent pages. Card terminals and alarm panels use modem tones that compression and jitter damage, so restrict them to G.711 in the PBX endpoint and test real transactions. Echo cancellation and silence suppression are gateway settings, not PJSIP options: on the gateway's own port configuration, set echo cancellation (often labeled LEC or Echo Canceller) to Disabled and silence suppression (VAD) to Disabled for that port. Alarm and elevator lines are often better moved to cellular communicators or kept on a retained analog line.
; FreePBX: /etc/asterisk/pjsip_custom.conf (plain Asterisk: pjsip.conf)
; Registers one FXS gateway port as a SIP endpoint.
; This block only restricts codecs and sets fax/NAT handling.
; Echo cancellation and silence suppression are set on the gateway itself.
[fax-gw-1]
type=endpoint
transport=0.0.0.0-udp
context=from-internal
disallow=all
allow=ulaw
auth=fax-gw-1
aors=fax-gw-1
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
t38_udptl=yes
t38_udptl_ec=redundancy
dtmf_mode=rfc4733
[fax-gw-1]
type=aor
max_contacts=1
remove_existing=yes
[fax-gw-1]
type=auth
auth_type=userpass
username=fax-gw-1
password=REPLACE_WITH_A_LONG_RANDOM_SECRETIs your network and trunking ready for VoIP?
Check the network before buying anything. Plan about 100 kbps per G.711 call each way including overhead, so 12 simultaneous calls need roughly 1.2 Mbps up and down, plus headroom for everything else. Compressed codecs like G.729 lower this but add licensing and fax issues.
PoE budget: add up phone power and compare to the switch's total PoE budget, not just per-port capability. Thirty phones at a conservative 7 W is 210 W; at class 3 worst case (15.4 W) it is 462 W. Cheap unmanaged switches often have a small total budget and drop phones under load. Put phones on a voice VLAN, mark RTP as DSCP EF (46) and SIP as CS3 (24), turn SIP ALG off on the router, and put the PBX, switch and router on a UPS.
Run a pre-flight test for a week: leave a continuous call or a tool like iperf with jitter measurement across the LAN and WAN, and watch for loss above 1%, jitter above 30 ms and latency above 150 ms one way.
Trunks: keep PRI or analog lines through a PRI or FXO gateway as a bridge, or port the numbers to a SIP trunk. Size channels by peak concurrent calls plus 20%, for example 10 peak calls means 12 channels. Every site needs an E911 address; in the US, dispatchable location and direct 911 dialing without a prefix are required, and remote or roaming phones need dynamic location registration.
# Asterisk / FreePBX checks during testing
asterisk -rx "pjsip show endpoints"
asterisk -rx "pjsip show registrations"
asterisk -rx "pjsip set logger on"
asterisk -rx "rtp set debug on"
sngrep -d any port 5060
# Firewall: SIP and RTP (default RTP range 10000-20000)
# UDP 5060 (PJSIP), TCP/TLS 5061, UDP 10000-20000 How do you port numbers and run both systems in parallel?
Start the port in week 1, because it takes 1 to 4 weeks, and longer for complex, multi-line or toll-free numbers. Request a Customer Service Record (CSR) from the losing carrier, and match the account name, billing address and billing telephone number exactly; mismatches are the top cause of rejections. Ask for a firm order commitment (FOC) date, and do not cancel old service until the port completes, since cancelling first can release the numbers.
Keep a few lines unported (for example the main number's backup and one fax line) so the old PBX can still place and receive calls during a rollback.
Build the new system on temporary DIDs or those kept lines, and pilot with 5 to 10 users before touching any production number.
- Build the new PBX, phones and gateways on the voice VLAN and register all endpoints.
- Assign temporary DIDs and call-test every route: inbound, outbound, internal, ring groups, voicemail to email, IVR options, after-hours and holiday paths, paging, fax and card terminals.
- Pilot with 5 to 10 users for several days and collect problems in one shared list.
- Move departments in waves, forwarding their DIDs from the carrier side to the new system.
- Move the main number last, in a low-traffic window, using carrier-side forwarding as the quick switch.
- Keep the old PBX powered with its lines connected for 30 days.
What does an 8-week schedule, rollback plan and training look like?
Define go/no-go criteria before cutover: all test calls pass, E911 verified, pilot issues closed, backups of the new PBX taken and restore tested, and every inventory row signed off. Set a rollback trigger, for example more than 5% failed calls or any failed 911 test, and a time limit of 2 hours after cutover to decide.
Rollback means repointing DIDs or carrier forwarding back to the old PBX, which only works while its lines remain active. Keep this separate from the number port, which is hard to reverse once completed.
Training: give each user a one-page quick-start card (transfer, hold, voicemail, park), run a 20-minute demo, have floor-walkers on day one, and open a feedback channel (shared mailbox or chat) for the first week.
| Week | Milestone |
|---|---|
| 1 | Inventory complete, decision made, CSR requested, port submitted |
| 2 | Network audit, PoE and switch fixes, begin week-long quality test |
| 3 | Order phones, gateways and trunks; E911 addresses registered |
| 4 | Build PBX or tenant, feature mapping implemented, backups configured |
| 5 | Internal testing with temporary DIDs; fax, alarm and card terminal tests |
| 6 | Pilot group live, training demos held |
| 7 | Department waves; port FOC date confirmed; go/no-go review |
| 8 | Main number cutover, day-of checklist, hypercare; reviews at 1 and 4 weeks after |
- Cutover day: confirm go/no-go sign-off and a current backup of the new PBX.
- Verify old PBX is powered and its lines are connected.
- Switch carrier forwarding or complete the port at the agreed time.
- Test inbound, outbound, 911 (per carrier test procedure), IVR, voicemail and fax.
- Review at 1 week and 4 weeks, then cancel old lines only after the 30-day window and a clean review.
Common questions
Can I keep my old analog phones after migrating to VoIP?
Yes, through an FXS gateway or ATA that converts each analog port to a SIP endpoint. Size ports as device count plus about 20%. Features like message-waiting lamps and caller ID depend on the gateway model, so test one set first.
How long does it take to migrate a small office PBX to VoIP?
A realistic plan is about 8 weeks, mostly driven by number porting (1 to 4 weeks) and network fixes. A very small, all-IP office can be faster, but the porting date sets the minimum.
Can I run my old PBX and new VoIP system at the same time?
Yes. Keep the old PBX and its lines active, build the new system on temporary DIDs or a few kept lines, then forward numbers in waves. This also provides the rollback path.
What happens to my 911 service during migration?
It must be configured and tested on the new system before any user moves, with a valid address for each site and phone location. Do not assume the old carrier registration carries over.
Should I cancel my old phone lines right after cutover?
No. Keep them for about 30 days and cancel only after the port has completed and post-cutover reviews are clean. Cancelling early removes your rollback and can strand numbers that have not yet ported.