Prerequisites
Before you configure either side
You will need three values that VoiceInfra provides: the SIP host, the firewall whitelist IP, and the recommended codecs. There is more detail on this in PBX Extensions.Step 1: Configure your Dinstar
1.1 Set the routing parameter
Go to Call & Routing → Routing Parameter and set:- Calls from IP → Route before manipulation
- Calls from Tel → Route before manipulation
1.2 Create an IP trunk
Go to Call & Routing → IP Trunk and click Add:If your Dinstar sits behind NAT, also enable NAT Traversal and set External IP to the gateway’s public IP. Skipping this is the most common cause of one-way audio.
1.3 Set codecs
Set the codec priority for this trunk, under IP Profile or Codec Settings:1.4 Configure call routing
You need one rule in each direction. Inbound — PSTN → Dinstar → VoiceInfra Go to Call & Routing → Tel → IP/Tel Routing and create a rule:- Calls From — your FXO port or port group (where the PSTN lines connect)
- Calls To — the VoiceInfra IP trunk you just created
- Caller/Called Prefix — any, or restrict by prefix if you need to
- Calls From — the VoiceInfra IP trunk
- Calls To — your FXO port or port group
- Caller/Called Prefix — any
A lower index number means higher priority, so priority 0 runs first.
1.5 Save and verify
Click OK or Apply, then check Status → SIP Trunk. The VoiceInfra trunk should show Registered. If it shows unregistered, jump to Troubleshooting before continuing — nothing downstream will work until registration succeeds.Step 2: Configure VoiceInfra
1
Add a custom SIP number
Go to Phone Numbers → Add Phone Number and select Custom SIP Number from the wizard.
2
Choose the trunk type
- Inbound Only — receive calls from Dinstar only
- Outbound Only — place calls through Dinstar only
- Both — full two-way calling (recommended)
3
Enter the basic details
4
Configure inbound
Shown when you chose Inbound Only or Both.
5
Configure outbound
Shown when you chose Outbound Only or Both.
6
Set media encryption
Leave Disabled unless your Dinstar supports SRTP. Require rejects any call that cannot be encrypted, so only select it if both sides are configured for it.
7
Create and assign
Click Create. Then select the new number in the list and assign an Inbound AI Assistant and/or an Outbound AI Assistant. A number with no assistant assigned will connect but nothing will answer.
Step 3: Test
A number with no assistant assigned will connect but nothing will answer. If calls reach VoiceInfra and then go silent, that is the first thing to check.
Troubleshooting
Quick reference
VoiceInfra
Dinstar
Setup checklist
- Dinstar trunk created, pointing at
sip.voiceinfra.ai - Codecs set to G.722, G.711 A-law, G.711 μ-law
- Routing rules configured in both directions
- Custom SIP number created on VoiceInfra with matching credentials
- AI assistant assigned for inbound and/or outbound
- Dinstar shows Registered
- Inbound and outbound test calls both succeed