Skip to main content
A Dinstar gateway lets your existing phone lines reach VoiceInfra without changing carriers. The gateway bridges your FXO/FXS ports to VoiceInfra over SIP, so an AI agent can answer incoming calls and place outgoing ones. This guide covers two-way calling — inbound and outbound.
Menu names vary by Dinstar model and firmware. DAG, MTG, UC, and C60 series all label things slightly differently. The steps below follow the common pattern; if a menu name differs, look for the nearest equivalent.

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.
Copy these from the portal, not from this page. The SIP host and whitelist IP are region-scoped — they differ depending on which region your workspace lives in. The authoritative values are shown in your portal on Phone Numbers → your number → Connection details, and each row has a copy button.
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
Outbound — VoiceInfra → Dinstar → PSTN Go to Call & Routing → IP → Tel Routing and create a rule:
  • 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)
Your choice here must match the routing rules you configured in step 1.4. If you picked Both, you need both rules.
3

Enter the basic details

4

Configure inbound

Shown when you chose Inbound Only or Both.
The username and password here are the same ones you entered on the Dinstar in step 1.2. If they do not match exactly, the trunk will not register.
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.
Recordings, transcripts, and AI summaries work on gateway calls exactly as on any other channel, so they appear in Call Logs alongside everything else.

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