Skip to content

Outbound Call Routing

Outbound Call Routing allows you to select a carrier (SIP trunk) for outbound calls and configure specific rules for call routing.

How it Works

When a user initiates an outbound call, the Outbound Call Routing feature determines the preferred carrier (SIP trunk) to use based on the following cases:

  • Caller's phone number registered in Voice Gateway. If the caller's phone number is registered in Voice Gateway, the system will automatically use the SIP Trunk linked to that phone number for the outbound call.
  • Caller's phone number matches a created outbound routing rule. If the caller's phone number matches one of the created rules, the system will use the SIP Trunk specified in the rule for the outbound call.
  • Caller's phone number does not match any rule. If the caller's phone number does not match any created outbound routing rules, the system will randomly select one of the available SIP Trunks to route the outbound call.

Configure Outbound Routing Rules

Before configuring the outbound routing rules, ensure that the Outbound option is activated in the SIP Gateways settings of the carrier.

To set up a rule for outbound calls, follow these steps:

  1. Open the Cognigy Voice Gateway Self-Service Portal.
  2. In the left-side menu, select Outbound Call Routing.
  3. On the Outbound Call Routing page, click Add outbound call routes.
  4. On the Add Outbound Call Routing page, in the Name field, specify a unique name that complies with the requirements for your rule.
  5. Enable the Active setting to start applying this rule. If you want to save this rule as a draft, deactivate this setting.
  6. Select a default outbound carrier through which the outbound calls will route when no rules are applied.
  7. Select accounts to which the rule should belong from the Used by list. By default, All accounts are selected.
  8. In the Route based on first match section, configure a set of rules:
    • Digit pattern โ€” specify a code number of the country, for example, 49 for Germany, 46 for Sweden, or 1 for the United States.
      If you need to capture a specific area, you can also use a regular expression (regex). For example, ^\d{2}41\d{8} maps only Brazilian numbers with the country code 55 and area code 41, which covers several cities in Brazil. Alternatively, using the digit combination 5541 gives the same mapping result.
    • Carrier โ€” select a carrier from the list.
  9. Click Save.

The rule will be applied.

You create multiple rules and assign the same carrier to several of them. These rules are applied in the sequence they are listed. The rule positioned at the top takes precedence, followed by the subsequent ones in order. To modify the order of the rules, hover over a rule, hold it, and move it to the desired position.