VOIP · 3CX · GRANDSTREAM · CALL CENTER

The Complete Guide to Setting Up 3CX PBX On an On-Premise Server

From bare-metal server to a fully operational enterprise phone system — provision Grandstream phones, connect landlines via FXO, add GSM lines with DINSTAR, design IVR flows, integrate your CRM, and launch a professional call center. Step by step.

3CX Certified Partner Grandstream Authorized DINSTAR Reseller
10
Setup Steps
Scalable Users
4
Gateway Types
20+
CRM Integrations
24/7
TekkPak Support

Why On-Premise 3CX?

Your Phone System. Your Server. Your Full Control.

Businesses across Pakistan are ditching expensive legacy PBX hardware and overpriced cloud telephony subscriptions in favour of 3CX — the world's most popular software-based PBX. 3CX runs on a standard Windows or Linux server you already own, giving you enterprise-grade VoIP features without recurring per-seat cloud bills. At TekkPak Technologies, we have deployed hundreds of 3CX systems across sectors ranging from healthcare and retail to finance and logistics.

This guide covers everything: base installation, provisioning Grandstream handsets, connecting PSTN landlines via a Grandstream HT FXO gateway, bridging GSM mobile lines with a DINSTAR gateway, designing an intelligent IVR, integrating your CRM, enabling WhatsApp and Facebook messaging, embedding a live-chat and click-to-call widget on your website, and configuring a full-featured call center queue. Whether you are a system administrator tackling your first 3CX install, or a decision-maker evaluating whether to move off your aging hardware PBX, this is the definitive resource.

3CX PBX on-premise server setup — TekkPak Technologies 3CX certified partner Pakistan showing admin console and IP phone provisioning
3CX On-Premise Deployment — TekkPak Technologies Admin Console Overview

Step-By-Step Setup

10 Steps to a Production-Ready 3CX System

Follow these steps in sequence. Each builds on the previous, taking your 3CX from installation to a fully operational business communications platform.

1

// FOUNDATION

Server Preparation & 3CX Base Installation

  1. Prepare a dedicated machine — minimum 4 vCPU, 4 GB RAM, 60 GB SSD. Use Debian Linux (recommended) or Windows Server 2019/2022.
  2. Log in at www.3cx.com, go to My Dashboard → Add PBX, select On-Premise, choose your FQDN carefully — this cannot be changed after installation — and set your extension digit length.
  3. Download the generated 3CX ISO or Windows installer, run it on the server, and follow the web-based wizard on port 5015. Upload the configuration file downloaded from the portal when prompted.
  4. Assign a Static LAN IP to the server, configure Split DNS so the FQDN resolves internally to the private IP and externally to the public IP, then forward ports 5060 UDP, 9000–9500 UDP, 443 TCP, and 5001 TCP on your router or firewall.
  5. Set the correct Time Zone (Asia/Karachi for Pakistan), complete the wizard, and immediately change the default admin password upon first login to the Admin Console.
2

// IP PHONES

Provisioning Grandstream IP Phones

  1. In the 3CX Admin Console, go to Users → Add User, create the extension with a name, number, and strong SIP password, then click Save.
  2. Navigate to Phones → Add Phone, enter the Grandstream phone's MAC address (found on the label on the underside of the device), select the correct model from the dropdown, and link it to the extension.
  3. Connect the Grandstream IP phone to the same LAN switch as the 3CX server using an Ethernet cable and power it on. The phone automatically contacts the 3CX provisioning server via Plug and Play (PnP) and downloads its full configuration — no manual entry required on the phone itself.
  4. For remote or branch-office phones, deploy a 3CX Session Border Controller (SBC) at the remote site, or enable STUN-based provisioning using stun.3cx.com:3478 so phones register securely over the internet.
  5. Factory reset any previously configured Grandstream phones before provisioning. After registration, assign BLF keys to monitor colleagues' line status directly from the phone's programmable buttons.
3

// SOFTPHONE APP

Provisioning the 3CX Mobile & Desktop App

  1. In the 3CX Admin Console, open the user's extension settings and click Send Welcome Email. The email is automatically dispatched to the user's registered email address.
  2. The welcome email contains a QR code and a one-click provisioning link. Have the user download the 3CX app on their iOS or Android device from the App Store or Google Play.
  3. Open the 3CX app, tap Scan QR Code, and point the camera at the QR code in the welcome email. The app self-configures in seconds — SIP credentials, server address, and extension are all filled in automatically.
  4. For Windows or macOS, the user clicks the provisioning link in the welcome email. This opens and auto-configures the 3CX desktop app without any manual credential entry.
  5. Enable Push Notifications in the app settings so the user receives incoming calls even when the app is running in the background on their mobile device.
4

// FXO GATEWAY · LANDLINES

Configuring Grandstream HT Series FXO Gateway

  1. Factory reset the Grandstream GXW4104 / GXW4108 by holding the reset button for 10 seconds. Connect the device to your LAN switch and plug your PSTN/PTCL landline cables into the FXO ports on the back.
  2. In the 3CX Admin Console, navigate to Voice & Chat → VoIP Gateways → Add Gateway. Select the Grandstream GXW4104 template, enter the device's MAC address, and set the Main Trunk Number to your primary inbound landline number. Click Generate Device Configuration and copy the provisioning URL.
  3. Log into the GXW's web interface (find its IP from your router's DHCP table). Go to Maintenance → Upgrade and paste the 3CX provisioning URL into the Config Server Path field. Click Save and Apply, then reboot the device.
  4. After reboot, the gateway automatically registers to 3CX as a SIP trunk. In the 3CX Admin Console, go to Voice & Chat → Inbound Rules and create a rule that routes inbound calls from this trunk to your IVR, ring group, or receptionist extension.
  5. Test by calling the landline number from an external phone and confirming the call arrives on the correct 3CX extension or IVR.
5

// GSM GATEWAY · MOBILE LINES

Configuring DINSTAR GSM Gateway for SIM-Based Lines

  1. Insert your SIM cards into the slots on the DINSTAR UC2000 GSM gateway. Connect the device to your LAN switch, power it on, and access its web interface using the IP shown on the device LCD or your DHCP table.
  2. In the 3CX Admin Console, go to Voice & Chat → SIP Trunks → Add SIP Trunk. Select Generic as the provider, name it DINSTAR GSM, and enter the DINSTAR device's LAN IP address as the Trunk Hostname. Note the SIP username and password that 3CX generates.
  3. In the DINSTAR web interface, navigate to VoIP → SIP → SIP Account. Set the SIP Server field to your 3CX server's LAN IP address and port 5060. Enter the SIP username and password copied from the 3CX trunk settings. Click Apply.
  4. Go to GSM → Channel in the DINSTAR interface and assign each active SIM slot to the SIP account you just configured. The DINSTAR will register to 3CX as a trunk within a few seconds — confirm the trunk shows Registered in the 3CX Admin Console.
  5. In 3CX, create an Outbound Rule that routes calls to mobile numbers (e.g., prefix 03xx) through the DINSTAR trunk. Test by dialling a mobile number from any extension — the call will route over the SIM card, cutting costs significantly.
6

// IVR · CALL FLOW

Designing Your IVR & Intelligent Call Flow

  1. In the 3CX Admin Console, navigate to Voice & Chat → Digital Receptionist and click Add. Give it a name such as "Main Menu".
  2. Under Prompt, upload a pre-recorded WAV or MP3 file with your greeting message — for example, "Thank you for calling. Press 1 for Sales, Press 2 for Support, or Press 0 for the Operator." Alternatively, use the built-in Text-to-Speech option to generate a temporary prompt.
  3. Under Key Press Events, map each digit: set 1 → Sales Ring Group, set 2 → Support Queue, set 0 → Receptionist Extension. Add a Timeout Destination for callers who do not press anything.
  4. Go to Voice & Chat → Inbound Rules, select your trunk (FXO or DINSTAR), and set the Destination to the Digital Receptionist you just created. Save and apply changes.
  5. Configure Office Hours and Break Time Routing under the inbound rule — route to the IVR during business hours and to an out-of-hours voicemail message or on-call extension during nights and weekends.
7

// CRM INTEGRATION

Connecting 3CX to Your CRM System

  1. In the 3CX Admin Console, go to Integrations → CRM Integration and click Add. Choose your CRM from the list — supported platforms include Salesforce, HubSpot, Zoho CRM, Odoo, Microsoft Dynamics 365, Freshdesk, SugarCRM, and 15 more.
  2. Log into your CRM portal and generate an API Key or OAuth access token. Paste it into the corresponding field in 3CX and click Test Connection to verify it is active.
  3. Enable Click-to-Dial so agents can click any phone number inside the CRM and 3CX immediately initiates the outbound call — no manual dialling needed.
  4. Enable Automatic Contact Lookup: when an inbound call arrives, 3CX queries the CRM in real-time and displays the matching contact's name and record on the agent's screen before they answer.
  5. Enable Automatic Call Journaling so every call — inbound and outbound, including duration and call recording link — is automatically logged against the correct CRM contact or deal record without any manual input from the agent.
8

// MESSAGING CHANNELS

Integrating WhatsApp Business & Facebook Messenger

  1. In the 3CX Admin Console, navigate to Integrations → Messaging Channels and click Add Channel.
  2. For WhatsApp: select WhatsApp Business API. You will need an approved WhatsApp Business API account via a registered Business Service Provider (BSP). Enter your BSP-issued API token and phone number ID, then click Save.
  3. For Facebook Messenger: select Facebook from the channel list and click Connect with Facebook. Log in with your Facebook Business account, select the correct Facebook Page, and grant the required permissions. Click Confirm.
  4. Both channels will now appear as message queues in the 3CX web client and mobile app, directly alongside your voice call queues. Assign each messaging channel to the appropriate agent group or queue from the Queue settings.
  5. For 24/7 automated first-response on WhatsApp before a live agent picks up, integrate TekkPak's AI WhatsApp Agent — it qualifies leads, answers FAQs, and escalates to a 3CX agent only when needed.
9

// WEBSITE WIDGET

Live Chat & Click-to-Call Button on Your Website

  1. In the 3CX Admin Console, go to Web & Chat → Website Chats and click Add Website. Give it a name, enter your website's domain, and choose which queue or extension incoming chats should be routed to.
  2. Customise the chat widget appearance — choose the button colour, position (bottom-right or bottom-left), and the greeting message visitors will see when the chat bubble loads on your site.
  3. Enable Click-to-Call from the same widget settings by toggling the option on. This adds a phone icon to the chat bubble; when a website visitor clicks it, their browser opens a WebRTC-based voice call directly to your 3CX queue — no phone number to type, no app required.
  4. Copy the generated JavaScript embed code. In your website, paste it just before the closing tag. If using WordPress, install the official 3CX Live Chat plugin from the plugin directory and paste your Widget ID — the chat button appears on every page automatically.
  5. Test the widget by opening your website in a browser, clicking the chat icon, and verifying the chat or call arrives in the 3CX web client on the correct agent's screen.
10

// CALL CENTER

Configuring Call Center Queues & Agent Features

  1. In the 3CX Admin Console, navigate to Call Center → Queues and click Add Queue. Name your queue (e.g., Sales, Support, Billing), set the Ring Strategy to Round Robin or Hunt, and add the relevant extensions as agents.
  2. Set the SLA Threshold (e.g., answer within 20 seconds) and configure Queue Wrap-Up Time so agents have a moment to complete notes before the next call is delivered. Enable Callback on Busy so callers can hang up and receive an automatic callback instead of waiting on hold.
  3. Enable Call Recording at the queue level by selecting Record All Calls. Recordings are stored on the server and accessible from the 3CX Admin Console under Reports → Call Logs — each recording is linked to the specific call entry.
  4. Open the 3CX Wallboard from any browser by navigating to your 3CX URL and clicking the wallboard icon. Supervisors see a live view of each queue: agents on calls, agents available, calls waiting, longest wait time, and SLA breach alerts — all in real time.
  5. To coach agents on live calls, use Whisper Mode (speak to the agent only) or Barge In (join the call and speak to both parties) from the supervisor's 3CX web client. Schedule automated Call Center Reports under Reports → Scheduled Reports to email weekly summaries to team managers automatically.
3CX call center queue dashboard with Grandstream IP phones and real-time agent wallboard — TekkPak Technologies VoIP deployment Pakistan
3CX Call Center Wallboard & Grandstream GXP Phone Deployment — TekkPak Technologies

Call Center & PBX Features

Everything 3CX Delivers Out of the Box

📞
Call Queues

Round-robin, hunt & fewest-answered routing with SLA timers and overflow handling

🎙️
Call Recording

On-demand or automatic recording stored locally or in cloud with secure playback

📊
Live Wallboard

Real-time supervisor view of queue depth, agent status, and SLA performance

🤫
Whisper & Barge

Coach agents silently or join calls live for QA monitoring and training

📹
Video Conferencing

Built-in HD video meetings — no Zoom licence needed for internal calls

📲
Callback-on-Busy

Callers leave the queue and receive an automatic callback when an agent is free

📈
Reporting & Analytics

Historical call reports, agent productivity dashboards, and scheduled email reports

🔀
Call Transfer & Park

Blind, attended, and park-orbit transfers keep calls moving to the right person fast

🌐
WebRTC Click-to-Call

Website visitors call your team direct from any browser — zero friction, zero app

Platform Integrations

3CX Connects With the Tools You Already Use

🤝

CRM Systems

Salesforce, HubSpot, Zoho, Odoo, MS Dynamics 365, Freshdesk, SugarCRM and 15+ more. Automatic call logging, click-to-dial, and contact popup on every inbound call.

💚

WhatsApp Business API

Handle WhatsApp messages inside the 3CX agent interface alongside voice calls. Combine with TekkPak's AI WhatsApp Agent for 24/7 automated engagement.

💬

Facebook Messenger

Connect your Facebook Business Page. Agents respond to Facebook messages from within 3CX — same interface as phone calls and WhatsApp chats.

🌐

Website Live Chat

Embed a chat + click-to-call widget on your site in minutes. Powered by 3CX WebRTC — visitors call your team directly from any browser without any app.

📧

Microsoft 365 & Teams

Presence sync, voicemail-to-email, and Microsoft 365 contacts integration keep your team's communication tools in perfect harmony.

📱

SMS & Business SMS

Send and receive SMS messages from your business number directly through the 3CX interface — perfect for appointment reminders and follow-ups.

⚡ Pro Tip from TekkPak Engineers

Always deploy 3CX on a dedicated machine or VM — do not share it with other applications. Use a static LAN IP for the server and set your firewall to block all inbound SIP except from your registered trunks and phones. Enable 3CX's built-in anti-hacking and fail2ban features from day one. Most SIP hacking incidents occur within the first 48 hours of a new PBX going online. TekkPak includes a security hardening checklist with every installation we deliver.

Why Choose TekkPak

Pakistan's Most Trusted 3CX & Grandstream Partner

🏆 Certified & Authorised

TekkPak is a certified 3CX partner and authorised Grandstream reseller in Pakistan — you get genuine licences, full warranty, and manufacturer-backed support on every product.

⚡ Rapid Deployment

Our engineers have deployed dozens of 3CX systems. We configure, test, and hand over a production-ready system typically within 1–3 days depending on scale and complexity.

🔧 Post-Installation Support

We don't disappear after go-live. TekkPak provides ongoing support, licence renewals, firmware updates, and system health monitoring to keep your 3CX running at peak performance.

The Bigger Picture

VoIP is Not Just Calls Anymore — It's Your Business Backbone

When Pakistani businesses ask us why they should move to VoIP and specifically to 3CX, the answer is always the same: because your phone system should do far more than move calls. A properly deployed 3CX on-premise system gives you a unified communications platform — voice, video, messaging, CRM data, chat, and website engagement — controlled from a single admin console, running on a server you own, with no recurring per-user cloud subscriptions eating into your margins.

Pair 3CX with Grandstream's rock-solid IP phones and gateways, connect your existing landlines through a Grandstream HT FXO gateway, add GSM SIM-based calling via a DINSTAR gateway, and you have a complete telephony ecosystem that rivals enterprise systems costing ten times more — for a fraction of the price and with full local support from TekkPak Technologies.

Whether you are running a call center that needs real-time queue wallboards and agent coaching, a sales team that needs CRM click-to-dial and call logging, or a multi-branch business that needs every office on one phone system over the internet — 3CX on-premise delivers. And TekkPak delivers 3CX.

Hardware We Supply & Support

Everything You Need, Sourced from One Partner

📟

Grandstream GXP/GRP IP Phones

From entry-level GXP1615 to executive GXP2170 with colour display, BLF keys, and HD audio. Auto-provisioned to 3CX in minutes.

🔌

Grandstream HT FXO Gateways

GXW4104 & GXW4108 — connect 4 or 8 PSTN landlines to 3CX via SIP. Ideal for businesses retaining their existing PTCL or landline numbers.

📡

DINSTAR GSM Gateways

UC2000 series — 1 to 32 GSM channels in one unit. Cut mobile call costs dramatically by routing calls over SIM cards via 3CX outbound rules.

🖥️

3CX Licences (All Editions)

Startup, SMB, Professional, and Enterprise editions available. TekkPak is an authorised 3CX reseller — get genuine licences with local warranty and support.

🔊

Grandstream GVC Conference Units

GVC3200/3210 video conferencing endpoints and GVC3220/UCM-integrated audio conferencing for boardrooms and huddle spaces.

⚙️

Grandstream UCM6300 IP PBX

Prefer hardware-based PBX? The UCM6300 series bundles 3CX-alternative features in a dedicated appliance — also supported and sold by TekkPak.

📞 Speak to a 3CX Engineer

Prefer talking to a human? Our certified 3CX engineers are ready to walk through your requirements, design your architecture, and get your system live fast.

Call +92-300-8450437

TekkPak Technologies is Pakistan's certified 3CX Partner and Grandstream Authorised Reseller — delivering IP Telephony, VoIP, Call Center, and Business Automation solutions to enterprises across Pakistan. From 3CX installation and Grandstream phone provisioning to AI WhatsApp Agents and Odoo ERP, we are your single technology partner for communication and automation. Every solution comes with professional implementation, staff training, and ongoing support.