Skip to content

Basic PBX Configuration

Post-Installation Steps

After completing the VoIPSUN PBX installation, perform these basic configuration steps:

1. System Settings

  1. Log in to the web interface as administrator
  2. Navigate to Settings → System Configuration
  3. Verify and modify the PBX IP address
  4. Set the PBX name and domain
  5. Save changes and generate configuration

2. SIP Trunk Configuration

A SIP trunk connects the PBX to a voice service provider (e.g., VoIPSUN SIP trunk).

  1. Navigate to SIP Channels → New Channel
  2. Enter the details from your provider:
    • Channel name
    • SIP server address (proxy)
    • Username and password
    • Registration (if required by the provider)
  3. Save and generate configuration

3. Creating Internal Extensions

  1. Navigate to Phone Lines → New Line
  2. Set up:
    • Internal number (extension, e.g., 100)
    • Public number (DID, if assigned)
    • User name
    • SIP password for phone registration
  3. Repeat for each extension

4. Inbound Routing Setup

Inbound routing determines where incoming calls from the public network are directed.

  1. Navigate to Routing → Inbound Routing → New Rule
  2. Select the SIP channel (trunk)
  3. Enter the dialed number (DID) or leave empty for default routing
  4. Set the destination: specific extension, IVR, queue, ring group
  5. Save the rule

5. Outbound Routing Setup

Outbound routing determines which trunk is used for outgoing calls.

  1. Navigate to Routing → Outbound Routing → New Rule
  2. Enter the dialed number pattern (e.g., 0. for all numbers starting with 0)
  3. Select the SIP trunk for outgoing calls
  4. Set number manipulation (prefix stripping, adding area code)
  5. Save the rule

6. Generating Configuration

After making changes, always:

  1. Navigate to Settings → Generate Configuration
  2. Click Generate
  3. Verify that the configuration completed without errors
  4. Restart Asterisk if required

Sample Configurations

Simple SIP Trunk

Typical configuration for connecting to a VoIPSUN provider:

  • Type: SIP peer
  • Server: sip.voipsun.cz
  • Transport: UDP or TLS
  • Codec: G.711a (alaw), G.729
  • Registration: yes

Inbound Routing to IVR

  1. Create an IVR menu in IVR → New IVR
  2. Upload a greeting or use text-to-speech
  3. Set up options (e.g., 1 = sales, 2 = support)
  4. In inbound routing, set the destination to the created IVR

Outbound Routing with Number Manipulation

For Czech dialing with the option to dial without a prefix:

  • Pattern: X. (any number)
  • Strip: 0 digits
  • Prefix: empty (numbers are sent as-is)
  • Trunk: your SIP trunk
© 2026 VoIPSUN s.r.o.