Set up IP-to-IP authentication
Wholesale partners rarely register with a username and password. They exchange IP addresses instead: the customer’s switch sends calls from a fixed IP, and the vendor accepts calls from yours. This tutorial sets up both sides. It covers authentication only; tariffs, termination routes and the routing group are in Quickstart: wholesale. Allow about 15 minutes.
The example customer sends calls from 203.0.113.10 and 203.0.113.11; the vendor’s gateway is 192.0.2.50.
Before you start
Section titled “Before you start”- The vendor exists under Vendors → Vendors, and the customer’s account exists with a service plan and a routing group. See Vendors and Accounts.
- You have the customer’s source IP addresses and the vendor’s gateway address.
Step 1: Give your IP address to both partners
Section titled “Step 1: Give your IP address to both partners”- Open System Management → Environments. Assigned IPs lists the signalling addresses of your environment.
- Send the address to the vendor, to add to their allowed list, and to the customer, as the destination of their calls.
- If the environment has several addresses and the vendor allows only one, remember it for step 2.
Result: both partners know where your calls come from and where theirs must go.
Step 2: Add the vendor connection
Section titled “Step 2: Add the vendor connection”- Open Vendors → Vendors and click Connections in the row of the vendor.
- Click Add Connection.
- Enter Connection Name:
Example Carrier IP. - Select Protocol SIP/UDP and enter Destination:
192.0.2.50. Add:portif the gateway does not listen on5060. - Leave Username and Password empty. Without them the switch sends calls without digest credentials, and the vendor recognises you by your IP.
- If the vendor allows only one of your addresses, select it as Outbound IP under Advanced Parameters.
- Click Save & Close.
Result: the list shows the connection with Destination SIP/UDP:192.0.2.50. Add it to a routing group to use it. See Connections.
Step 3: Add the customer’s IP addresses
Section titled “Step 3: Add the customer’s IP addresses”- Open My Customers → Accounts, then Actions → Authentication Rules for the customer’s account.
- Click Add.
- Enter Remote IP Address:
203.0.113.10. Leave the other fields empty to accept any number from this address. - Click Save & Close.
- Repeat for
203.0.113.11. A rule holds one IPv4 address; ranges and subnets are not accepted, so every source address needs its own rule.
Result: the account’s Authentication Rules list both addresses. Calls from them are authenticated to the account without a password.
Step 4: Test it
Section titled “Step 4: Test it”- Open Tools & Debugs → Test Dialplan.
- Select Mode Not Authenticated Call and enter Remote Address[:Port]
203.0.113.10, a CLI and a CLD (destination) the customer would send. - Click Proceed. The result shows the customer’s account under Authenticated as and the vendor’s connection in Routing Entries.
- Ask the customer to send a test call, then check it under Reports → Call Records (CDRs).
If the test shows no account, check the address for typos; if the call reaches the vendor but fails with 403, the vendor has not yet allowed your IP.
What’s next
Section titled “What’s next”- Authentication: how the switch chooses between rules when one IP carries several customers.
- Route and price calls by CLI or CLD: different tariffs for traffic from the same IP.
- Quickstart: wholesale: the full setup with rates and routing.