Howwise RSS
VoIP & Phone Systems10 min read

How to Migrate a Legacy PBX to VoIP Without Downtime

Short answer

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.

Key takeaways
  • 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.

FactorFreePBX self-hostedHosted provider
Uptime ownerYou (server, power, ISP, updates)Vendor (you still own LAN and internet)
Security and SBCYou (firewall, fail2ban, TLS, geo-blocking)Vendor
Custom routing and integrationsFull controlLimited to provider features or API
Many analog devicesStrong (your own gateways and FXO/PRI cards)Possible via ATAs, one per device group
Time to first callDays of buildHours to days
Warning: A public FreePBX server with SIP exposed to the internet will be scanned within hours. Never open UDP 5060 to everyone; restrict it to your provider's IP ranges and phones' networks, and set international dialing limits before go-live.

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.

ItemRecordMigration note
ExtensionsNumber, user, device type (analog, digital proprietary, IP), locationDigital sets need replacement IP phones
CO lines, PRI, T1, BRIType, count, carrier, circuit IDDrives trunk and channel sizing
DIDs and main numberNumber, destination, carrier, toll-free or localPorted numbers need a CSR match
Hunt groupsMembers, strategy, overflowBecomes ring group or queue
Voicemail boxesBox, greeting, email, retentionExport greetings if possible, else re-record
Auto attendant and IVRMenu tree, prompts, hoursRebuild and record prompts
Call forwarding and night serviceRules, schedule, holiday datesBecomes time conditions
Paging and door phonesZones, relay or contact closureNeeds FXS or SIP paging adapter
Fax linesNumber, volume, sender typeTest T.38 and fallback
Alarm, elevator, card terminalsLine, protocol, vendor contactOften should stay off VoIP
Tip: Ask the carrier for a full line list and call the alarm and elevator vendors. Lines that carry no voice traffic (alarm dialers, fax, POS) are the usual surprises on cutover day.

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 featureFreePBX / hosted equivalentCaveat
Hunt groupRing group or queueMatch ring strategy and timeout
Key-system line appearancesShared line appearance or BLF buttonsNot identical; BLF shows state but is not a true shared line on all phones
Night service switchTime conditions plus call flow control (feature code toggle)Define holidays explicitly
VoicemailVoicemail with email attachmentSet mailbox PIN policy
Call parkPark slots (700-series) with BLFTrain users on slot numbers
Proprietary display, soft keys, headset portsPhone provisioning templatesNo equivalent for many one-off set features
Intercom and pagingIntercom feature codes, multicast pagingOverhead 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_SECRET
Tip: The endpoint block above only restricts codecs and sets fax handling; it cannot turn off echo cancellation or silence suppression. Make those changes in the gateway's port settings, and keep fax and card terminals on their own ports so you can change them per device without touching voice extensions.

Is 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.

  1. Build the new PBX, phones and gateways on the voice VLAN and register all endpoints.
  2. 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.
  3. Pilot with 5 to 10 users for several days and collect problems in one shared list.
  4. Move departments in waves, forwarding their DIDs from the carrier side to the new system.
  5. Move the main number last, in a low-traffic window, using carrier-side forwarding as the quick switch.
  6. Keep the old PBX powered with its lines connected for 30 days.
Warning: Avoid a big-bang Monday-morning cutover. If the port completes on a fixed FOC date, choose a quiet time such as Thursday evening so you have a working day to fix problems before the weekend.

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.

WeekMilestone
1Inventory complete, decision made, CSR requested, port submitted
2Network audit, PoE and switch fixes, begin week-long quality test
3Order phones, gateways and trunks; E911 addresses registered
4Build PBX or tenant, feature mapping implemented, backups configured
5Internal testing with temporary DIDs; fax, alarm and card terminal tests
6Pilot group live, training demos held
7Department waves; port FOC date confirmed; go/no-go review
8Main number cutover, day-of checklist, hypercare; reviews at 1 and 4 weeks after
  1. Cutover day: confirm go/no-go sign-off and a current backup of the new PBX.
  2. Verify old PBX is powered and its lines are connected.
  3. Switch carrier forwarding or complete the port at the agreed time.
  4. Test inbound, outbound, 911 (per carrier test procedure), IVR, voicemail and fax.
  5. Review at 1 week and 4 weeks, then cancel old lines only after the 30-day window and a clean review.
Tip: Common mistakes to avoid: missing hidden lines, cancelling old service too early, underestimating porting lead time, forgetting E911, undersized PoE switches, no backups, and cutting over on a Monday morning.

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.

Related topics:pbx migrationfreepbxvoipnumber portinggateways