Create a SIP Peer Trunk

This topic gives a configuration example to describe how to create a general SIP Peer Trunk, which can be applied to all kinds of SIP Peer Trunk.

Background information

Assume that you have bought a SIP account from the ITSP ABC, and the trunk information is displayed as below.

  • Provider domain: abc.provider.com
  • Protocol: SIP
  • Registration Port: 5060
  • Transport: UDP

Prerequisites

  • You have purchased a SIP account from an ITSP and no username and password is offered but only a domain name or IP address.
  • Your PBX can connect to the ITSP.
  • You have the permission to add trunks on the PBX.
    Note: If the Add button in Extension and Trunk > Trunk is greyed out, you do not have permission to add trunks. To obtain the permission, contact your service provider.

Procedure

  1. Log in to PBX web portal, go to Extension and Trunk > Trunk, click Add.
  2. In the Basic section, configure the following settings:
    • Name: Enter a name to help you identify it.
    • Trunk Status: Select Enabled.
    • Select ITSP Template: Select General.
  3. In the Detailed Configuration section, select the trunk type and enter the SIP information that is provided by the ITSP.
    • Trunk Type: Select the desired type of Peer Trunk.
      • Peer Trunk (DID Based): If the ITSP routes calls based on the DID number, choose this option.
        Note: If this trunk type is selected, it requires at least one DID rule.
      • Peer Trunk (Port Based): If the ITSP routes calls based on the SIP registration port, choose this option.
      • Peer Trunk (Private Network): If the ITSP and the PBX are in the same private network, choose this option.

      The Static IP Address and Port of the PBX will be displayed on the web page.

    • Transport: Select the transport provided by the ITSP. In this scenario, select UDP.
    • Hostname/IP: Enter the domain name or IP address of the ITSP. In this scenario, enter abc.provider.com.
    • Port: Enter the provided registration port. In this scenario, enter 5060.
    • Domain: Enter the domain in SIP URI of a specific header like From, To header. In this example, enter abc.provider.com.
      Note: If the domain is not provided by ITSP, enter the same value as Hostname/IP.
  4. Optional: If you have purchased DID numbers from the ITSP, click DIDs/DDIs tab to configure the DID numbers for the trunk.
    Note: If the selected trunk type is Peer Trunk (DID Based), this procedure is necessary.
    1. Click Add, then add DID number(s) according to your need.
      • To add a single DID number, do as follows:
        1. In the Create Method drop-down list, select Single DID.
        2. Configure the following settings:
        • DID/DDI: Enter the provided DID number.
        • DID/DDI Name: Optional. Enter a name to distinguish inbound calls by DID numbers.

          When the DID number is dialed, the name will be displayed on the called party's device.

      • To add a range of DID numbers, do as follows:
        1. In the Create Method drop-down list, select DID Range.
        2. Configure the following settings:
        • DID Range: Enter the start number and the end number of the DID range.
        • DID/DDI Name: Optional. Enter a name to distinguish inbound calls by DID numbers.

          When the DID number is dialed, the name will be displayed on the called party's device.

    2. Click Confirm.
    Note: For more information of DID configurations, see Configure DID Numbers on a Trunk.
  5. Click Save and Apply.

Result

Go to Extension and Trunk > Trunk to check the trunk status on the trunk list page.

If the status shows , the trunk is registered successfully.

For more information of SIP trunk status, see SIP Trunk status.

What to do next

  • To receive inbound calls through the trunk, you need to select this trunk to one or more inbound routes. For more information, see Set up an Inbound Route.
  • To make outbound calls through the trunk, you need to select this trunk to one or more outbound routes. For more information, see Set up an Outbound Route.