Basic PBX Configuration
Post-Installation Steps
After completing the VoIPSUN PBX installation, perform these basic configuration steps:
1. System Settings
- Log in to the web interface as administrator
- Navigate to Settings → System Configuration
- Verify and modify the PBX IP address
- Set the PBX name and domain
- 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).
- Navigate to SIP Channels → New Channel
- Enter the details from your provider:
- Channel name
- SIP server address (proxy)
- Username and password
- Registration (if required by the provider)
- Save and generate configuration
3. Creating Internal Extensions
- Navigate to Phone Lines → New Line
- Set up:
- Internal number (extension, e.g., 100)
- Public number (DID, if assigned)
- User name
- SIP password for phone registration
- Repeat for each extension
4. Inbound Routing Setup
Inbound routing determines where incoming calls from the public network are directed.
- Navigate to Routing → Inbound Routing → New Rule
- Select the SIP channel (trunk)
- Enter the dialed number (DID) or leave empty for default routing
- Set the destination: specific extension, IVR, queue, ring group
- Save the rule
5. Outbound Routing Setup
Outbound routing determines which trunk is used for outgoing calls.
- Navigate to Routing → Outbound Routing → New Rule
- Enter the dialed number pattern (e.g.,
0.for all numbers starting with 0) - Select the SIP trunk for outgoing calls
- Set number manipulation (prefix stripping, adding area code)
- Save the rule
6. Generating Configuration
After making changes, always:
- Navigate to Settings → Generate Configuration
- Click Generate
- Verify that the configuration completed without errors
- 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
- Create an IVR menu in IVR → New IVR
- Upload a greeting or use text-to-speech
- Set up options (e.g., 1 = sales, 2 = support)
- 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