Advanced Trunk Settings

The advanced trunk settings require professional knowledge of SIP protocol. Incorrect configurations may cause calling issues. It is wise to leave the default settings provided on the SIP trunk page. However, for a few fields, you need to change them to suit your situation. This topic describes the further settings on a SIP trunk for reference.

Advanced settings

The following settings are included on the Advanced page of the trunk.

Codec Settings

To maximize the quality of calls while optimizing the bandwidth used for calls, you can configure your preferred codec list to match the settings that your ITSP supports.

Codec Type Supported Codecs
Audio codec u-law, a-law, G.729A, G.722, G.726, iLBC, Opus, GSM, SPEEX, ADPCM
Video codec H.264, H.263, H.263P, MPEG4, VP8
VoIP Settings
Setting Description
DTMF Mode Set the default mode for sending DTMF tones.
  • RFC4733 (RFC2833): DTMF will be carried in the RTP stream in different RTP packets than the audio signal.
  • Info: DTMF will be carried in the SIP Info messages.
  • Inband: DTMF will be carried in the audio signal.
  • Auto: The system automatically detects whether the device supports RFC4733 (RFC2833). If it does, DTMF tones are sent using RFC4733; if not, Inband mode is used instead.
Authentication Error SIP Code Specify the SIP error code returned by the ITSP to indicate an authentication error.
Note:
  • This option is only available for register trunk.
  • You can enter up to 10 error codes; Use ; to separate multiple error codes.
Authentication Registration Attempts Set the number of registration attempts for the PBX after receiving the authentication error SIP code from the ITSP.
Note:
  • This option is only available for register trunk.
  • The registration attempts defined here include the initial attempt without authentication information.
Global Registration Retry Interval (s) Set the global interval time (in seconds) for retrying registration after receiving any SIP error code (non-200 status code) from ITSP.
Note: This option is only available for register trunk.
Qualify Enable this option to send SIP OPTION packet to SIP device to check if the device is up.
Enable SRTP Enable or disable SRTP (encrypted RTP) for the trunk.
T.38 Support Enable or disable T.38 fax for this trunk.
Note: Enabling T.38 will add the performance cost. If the system has a large number of concurrent calls, it's recommended to disable this option.
Inband Progress Whether to enable Inband Progress. This setting applies to the extensions which make calls through this trunk.
  • Check this option: PBX will send a 183 Session Progress to the extension when told to indicate ringing and will immediately start sending ringing as audio.
  • Uncheck this option: PBX will send a 180 Ringing to the extension when told to indicate ringing and will NOT send it as audio.
Ignore 183 Message without SDP This option determines the way PBX handles 183 messages without SDP.
  • Check this option: PBX will not forward 183 messages that don't contain SDP.
  • Uncheck this option: PBX will process all the 183 messages without SDP to those with SDP and forward them.
Forward the 180 (SDP) Message Following the Peer's Format This option determines whether the PBX will forward a 180 message with SDP, depending on whether the 180 message received from the other party contains SDP.
  • Check this option: PBX will forward a 180 message if the 180 message received from the other party includes SDP.
    Note: This setting does not take effect when Inband Progress is enabled.
  • Uncheck this option: PBX will not forward a 180 message with SDP even if the 180 message received from the other party contains SDP.
Dedicated Trunk If your SIP trunk provider requires a dedicated internal IP address to connect the service, enable this setting and contact your service provider to handle the network settings for you.
Enable SIP Authentication Cache When enabled, the PBX will cache successful SIP authentication credentials and reuse them for subsequent requests (INVITE and BYE) within the same session or registration cycle.
Note: This option is only for register trunk.
Call Restriction
Setting Description
Call Restriction Type Specify based on which type of calls to restrict the max concurrent call number of this trunk.
  • Outbound Call: Only outbound calls will be restricted.
  • All: Both outbound calls and inbound calls will be restricted.
Maximum Concurrent Calls Specify the maximum number of concurrent calls allowed in this trunk. The default is Unlimited.
STIR/SHAKEN

Yeastar Central Management allows you to configure STIR/SHAKEN for shared trunks, helping verify caller ID authenticity and prevent Caller ID spoofing.

For more information, see STIR/SHAKEN Overview.

Setting Description
STIR/SHAKEN Mode Specify the STIR/SHAKEN operation mode for calls routed through the trunk.
  • Outbound Signing: When selected, the PBX will digitally sign all outbound calls routed through the trunk, excluding emergency and anonymous calls.
  • Inbound Verification: When selected, the PBX will verify all inbound calls routed through the trunk, and reject calls based on the rejection criteria globally configured for all shared trunks in the STIR/SHAKEN module.
  • Signing & Verification:When selected, the PBX will both sign outbound calls and verify inbound calls routed through the trunk.
Upstream Verification Result Handling When enabled, the PBX will solely rely on the verification result provided by the ITSP without performing its own independent verification.
Verification Status Parameter in PAI Header Enter the parameter name in the P-Asserted-Identity (PAI) header where the ITSP includes the signature verification results of inbound calls.
Header Field for SHAKEN Attestation Level Enter the parameter name defined by the ITSP to convey the SHAKEN attestation level of inbound calls.
Enable Call Filtering When enabled, the PBX will use the verification results provided by the ITSP and reject calls based on the rejection criteria configured on the trunk.
Drop Calls by Verification Status Select one or more verification statuses that will trigger call rejection.

SIP headers settings

The following settings are included on the SIP Headers page.

Inbound Parameters
Setting Description
Get Caller ID From Specify from which header field will the trunk retrieve Caller ID.
  • Follow System
    Note: If selected, the trunk will follow the global setting of Get Caller ID From on the Cloud PBX (Path: PBX Settings > SIP Settings > Advanced > Incoming Caller ID/DID Retrieval).
  • From
  • Contact
  • Remote-Party-ID
  • P-Asserted-Identify
  • P-Preferred-Identify
Get DID From Specify from which header field will the trunk retrieve DID.
  • Follow System
    Note: If selected, the trunk will follow the global setting of Get DID From on the Cloud PBX (Path: PBX Settings > SIP Settings > Advanced > Incoming Caller ID/DID Retrieval).
  • To
  • Invite
  • Diversion
  • Remote-Party-ID
    Note: If selected, but the SIP provider doesn't support Remote Party ID, the trunk will retrieve DID from Invite header.
  • P-Asserted-Identify
  • P-Preferred-Identify
  • P-Called-Party-ID
Outbound Parameters
For outbound calls, you can define the parameters included in the following SIP INVITE headers:
Setting Description
From User Part Define the caller ID (user part of the SIP From header) to be used for outbound calls.

For more information, see Options of outbound parameters.

From Display Name Part Define the caller ID name (display name part of the SIP From header) to be used for outbound calls.
  • Default: Display the name associated with the actual outbound caller ID.
  • Extension Caller ID Name: The caller ID name for the extension, composed of the extension’s last name and first name.
  • Trunk Outbound Caller ID Name: The default outbound caller ID name in trunk.
  • Extension's Outbound Caller ID Name in Trunk: The outbound caller ID name configured to associated with extensions in the Trunk.
  • Originator Caller ID Name: The caller ID name of the original caller in the case that the call is transferred.
  • Custom: Custom value.
From Host Part
Important:
  • This parameter is only available for Peer Trunk.
  • Set the parameter according to the requirements of your SIP trunk provider, otherwise, it may cause call issues.
Define the domain or IP address to be used in the From field of a SIP INVITE header.
  • Default: Use the domain or IP address configured in the Domain field when creating the peer trunk.
  • Custom: Use a custom domain or IP address. You can enter the custom value in the field next to the drop-down list.
To Host Part
Important:
  • This parameter is only available for Peer Trunk.
  • Set the parameter according to the requirements of your SIP trunk provider, otherwise, it may cause call issues.

Define the domain or IP address to be used in the To field of a SIP INVITE header.

  • Default: Use the domain or IP address configured in the Domain field when creating the peer trunk.
  • Custom: Use a custom domain or IP address. You can enter the custom value in the field next to the drop-down list.
Diversion Optional: Define other parameters of a SIP INVITE header as needed.

For more information, see Options of outbound parameters.

Remote-Party-ID
P-Asserted-Identity
P-Preferred-Identity
P-Asserted-Identity URI Format
Note: This parameter is available only when P-Asserted-Identify is set to a value other than None.
To assert and verify the identity of the caller, specify the format of P-Asserted-Identity:
  • SIP URI (sip:)
  • TEL URI (tel:)
Refer to the following table for the detailed descriptions of outbound parameter options.
Note: For different types of SIP trunk, the optional items are different.

Options of outbound parameters

Option Description
[Default]
  • For the Diversion outbound parameter, the system uses the original call destination number (DID number) as the parameter value when the call diversion occurs.
  • For the Remote-Party-ID, P-Asserted-Identity and P-Preferred-Identity outbound parameter, the system selects a parameter by the following priority from top to bottom:
    • Outbound Route Outbound Caller ID
    • Extension's Outbound Caller ID in Trunk
    • Trunk Outbound Caller ID
    • Trunk Username
    • Extension Caller ID
    • The Originator Caller ID
[None] Do not send the parameter with the SIP INVITE packet.
Extension Caller ID The caller ID configured on the extension.
Trunk Outbound Caller ID The global outbound caller ID for the trunk (configured on Trunk > Outbound Caller ID > General).
Extension's Outbound Caller ID in Trunk The extension's associated outbound caller ID with the trunk.
  • If the extension selects an associated DOD (configured on Extension and Trunk > Extension > User > Outbound Caller ID (DOD) > Outbound Caller IDs) to call out, the selected DOD number will be taken.
  • If the extension uses the default DOD to call out, the DOD number associated with the extension will be taken. When multiple DOD numbers are associated, the one with the highest priority in the extension's DOD list will be taken (Path: Extension and Trunk > Extension > User > Outbound Caller ID (DOD) > Outbound Caller IDs).
Outbound Route Outbound Caller ID The outbound caller ID configured on the outbound route that is used for the outbound calls.
Originator Caller ID The Caller ID of the call originator (the first caller in the case that the call is transferred).
  • If the call originator is an external number, the external number will be taken.
  • If the call originator is an extension, the priority order will be Extension Outbound Caller ID > [Default].
Trunk Username The username configured on the trunk.
Custom Define a custom value.
Other Settings
Setting Description
User Agent If the ITSP requires User Agent for authentication, enter the User Agent information that is provided by the ITSP.
Realm Specify the username and password that the system needs to use for authentication within a specific domain when connecting to the SIP trunk.
Note: If you are unsure about the information, contact your service provider for guidance.
100rel Configure 100rel for this trunk.
  • Required: 100rel is required for this trunk.
  • Supported: 100rel is supported by this trunk.
  • Disabled: 100rel is disabled for this trunk.
Maxptime Select the value of the maxptime used when the PBX sends the INVITE packet.
Note: If you select [Default], PBX will send a corresponding maxptime value according to the codec that is used for the outbound call.
Send Privacy ID Whether to send the Privacy ID in SIP header or not. The default is unchecked.
User Phone Whether to add the parameter user=phone as a request line in the header field of the SIP INVITE packet.
Note: Enable this option only when the SIP provider requires.
Send X-OpenAPI-Call-ID Set whether to include a X-OpenAPI-Call-ID field in the SIP INVITE packet to carry the Call ID for inbound calls and outbound calls routed through the trunk.
Support P-Early-Media Set whether the P-Early-Media field is included in the INVITE packet.
Send 183 Message with P-Early-Media Header Set whether the PBX will include the P-Early-Media header with the value of sendrecv in the 183 message for inbound calls routed through the trunk.