Skip to end of metadata
Go to start of metadata

In this article:

Tip

The configuration steps described in this article are examples.

Ribbon recommends referring to the SBC and PSX product documentation for detailed information on the commands, parameters, and flags used in the configuration examples of this guide.

Execute the steps in the same order as described in this article.

Note

This article is OPTIONAL. Skip this article if you use the external PSX for routing.


This article describes configuring the SBC for basic ERE or Advanced ERE routing.

LRBT Profile

  1. Create a Local Ring Back Tone (LRBT) profile that is attached to the ACS side and the PSTN side.

  2. Enable Dynamic LRBT. 

    set profiles media toneAndAnnouncementProfile LRBT_PROF
    set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone signalingTonePackageState enable 
    set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone precedence lower
    set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone makeInbandToneAvailable enable
    set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone flags useThisLrbtForEgress enable
    set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone flags useThisLrbtForIngress enable
    set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone flags dynamicLRBT enable
    commit
Note

If DSP cards/licenses are not available, set the flag announcementBasedTones to enable:

% set profiles media toneAndAnnouncementProfile LRBT_PROF localRingBackTone flags announcementBasedTones enable

% commit


Ensure that you perform the configuration described in the section "Ring Back Tone (without DSP)" of the page Ribbon Configurations with ACS Direct Routing - Common SBC Configuration.


Codec Entry

Create a Codec Entry (G711 Silence Suppression used for reference here) with the supported codec and packet size of 20.

set profiles media codecEntry G711SS codec g711ss
set profiles media codecEntry G711SS packetSize 20
set profiles media codecEntry G711SS law ULaw
set profiles media codecEntry G711SS dtmf relay none
set profiles media codecEntry G711SS dtmf removeDigits enable
commit

Element Routing Priority

 Create an Element Routing Priority profile by assigning the highest priority to the 'Entity Type' Trunk Group for all required Call Types.

set profiles callRouting elementRoutingPriority TEAMS entry _private 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry nationalOperator 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry localOperator 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry nationalType 1 entityType trunkGroup
set profiles callRouting elementRoutingPriority TEAMS entry nationalType 2 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry internationalType 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry internationalOperator 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry longDistanceOperator 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry ipVpnService 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry test 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry transit 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry otherCarrierChosen 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry carrierCutThrough 1 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry userName 1 entityType trunkGroup
set profiles callRouting elementRoutingPriority TEAMS entry userName 2 entityType none
set profiles callRouting elementRoutingPriority TEAMS entry mobile 1 entityType none
commit


Packet Service Profile (PSP) 
towards ACS direct routing

Create a Packet Service Profile (PSP) for the ACS side. The PSP is specified within the SIP Trunk Group configuration.

This configuration is for the pass-thru calls. If call transcoding is required, add the required codecs under thisLeg, otherLeg along with codecEntry2, codecEntry3 so on.


set profiles media packetServiceProfile TEAMS_PSP
set profiles media packetServiceProfile TEAMS_PSP codec codecEntry1 G711SS
set profiles media packetServiceProfile TEAMS_PSP packetToPacketControl transcode conditional
set profiles media packetServiceProfile TEAMS_PSP packetToPacketControl codecsAllowedForTranscoding thisLeg ""
set profiles media packetServiceProfile TEAMS_PSP packetToPacketControl codecsAllowedForTranscoding otherLeg ""
set profiles media packetServiceProfile TEAMS_PSP rtcpOptions rtcp enable terminationForPassthrough enable
set profiles media packetServiceProfile TEAMS_PSP preferredRtpPayloadTypeForDtmfRelay 101
set profiles media packetServiceProfile TEAMS_PSP silenceInsertionDescriptor g711SidRtpPayloadType 13 heartbeat enable
set profiles media packetServiceProfile TEAMS_PSP rtcpOptions rtcp enable
set profiles media packetServiceProfile TEAMS_PSP rtcpOptions rtcpMux enable
set profiles media packetServiceProfile TEAMS_PSP secureRtpRtcp flags enableSrtp enable
set profiles media packetServiceProfile TEAMS_PSP secureRtpRtcp flags allowFallback enable
set profiles media packetServiceProfile TEAMS_PSP secureRtpRtcp cryptoSuiteProfile DEFAULT
commit


IP Signaling Profile 
towards ACS direct routing

Create an IP Signaling Profile (IPSP) for the ACS side. The IPSP is specified within the SIP trunk group configuration.

set profiles signaling ipSignalingProfile TEAMS_IPSP ipProtocolType sipOnly
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags includeReasonHeader enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags includeTransportTypeInContactHeader enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags routeUsingRecvdFqdn enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags sendPtimeInSdp enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags sendRtcpPortInSdp enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags storePChargingVector enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags publishIPInHoldSDP enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes relayFlags statusCode4xx6xx enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags minimizeRelayingOfMediaChangesFromOtherCallLegAll enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes flags relayDataPathModeChangeFromOtherCallLeg enable
set profiles signaling ipSignalingProfile TEAMS_IPSP commonIpAttributes optionTagInRequireHeader suppressReplaceTag enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes numberGlobalizationProfile DEFAULT_IP
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes flags disable2806Compliance enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes domainName useIpSignalingPeerDomainInRequestUri enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes domainName useSipDomainInPAIHeader enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes domainName useSipDomainNameInFromField enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes domainName useZoneLevelDomainNameInContact enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes privacy transparency disable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes privacy privacyInformation pPreferredId
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes privacy flags includePrivacy enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes privacy flags privacyRequiredByProxy disable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes privacy flags msLyncPrivacySupport enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes redirect flags forceRequeryForRedirection enable
set profiles signaling ipSignalingProfile TEAMS_IPSP egressIpAttributes transport type1 tlsOverTcp 
set profiles signaling ipSignalingProfile TEAMS_IPSP ingressIpAttributes flags sendSdpIn200OkIf18xReliable enable
commit

SIP Trunk Group towards ACS direct routing

Configure the SIP Trunk Group with additional configurations like LRBT, ERPDM/PM Rule, PSP, and IPSP created in the previous steps. 

Warning

Mandatory! You must capitalize SIP Trunk Group names.

Note

This configuration applies only to Advanced ERE routing.

set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG mode outOfService state disabled
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy carrier 0000
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy country 1
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy localizationVariant northAmerica
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy tgIPVersionPreference both-ipv4-and-ipv6
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy preferredIdentity disable
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy digitParameterHandling numberingPlan NANP_ACCESS
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy callRouting elementRoutingPriority TEAMS
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy media packetServiceProfile TEAMS_PSP
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy media toneAndAnnouncementProfile LRBT_PROF
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy services classOfService DEFAULT_IP
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy signaling ipSignalingProfile TEAMS_IPSP
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy featureControlProfile DEFAULT_IP
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG policy sipDomain SIP.PSTNHUB.MICROSOFT.COM
set addressContext default zone TEAMS_ZONE sipTrunkGroup TEAMS_TG mode inService state enabled
commit


Packet Service Profile towards PSTN

Create a Packet Service Profile for PSTN and attach it to the PSTN Trunk Group.

This configuration is for the pass-thru calls. If call transcoding is required, add the required codecs under thisLeg, otherLeg along with codecEntry2, codecEntry3 so on.

set profiles media packetServiceProfile PSTN_PSP rtcpOptions rtcp disable
set profiles media packetServiceProfile PSTN_PSP peerAbsenceAction none
set profiles media packetServiceProfile PSTN_PSP silenceInsertionDescriptor g711SidRtpPayloadType 13
set profiles media packetServiceProfile PSTN_PSP silenceInsertionDescriptor heartbeat enable
set profiles media packetServiceProfile PSTN_PSP aal1PayloadSize 47
set profiles media packetServiceProfile PSTN_PSP codec codecEntry1 G711SS
set profiles media packetServiceProfile PSTN_PSP packetToPacketControl transcode conditional
set profiles media packetServiceProfile PSTN_PSP packetToPacketControl codecsAllowedForTranscoding thisLeg ""
set profiles media packetServiceProfile PSTN_PSP packetToPacketControl codecsAllowedForTranscoding otherLeg ""
set profiles media packetServiceProfile PSTN_PSP flags digitDetectSendEnabled disable
set profiles media packetServiceProfile PSTN_PSP flags useDirectMedia disable
set profiles media packetServiceProfile PSTN_PSP secureRtpRtcp flags allowFallback disable
set profiles media packetServiceProfile PSTN_PSP secureRtpRtcp flags enableSrtp disable
set profiles media packetServiceProfile PSTN_PSP secureRtpRtcp flags resetROCOnKeyChange disable
set profiles media packetServiceProfile PSTN_PSP secureRtpRtcp flags resetEncDecROCOnDecKeyChange disable
set profiles media packetServiceProfile PSTN_PSP secureRtpRtcp flags updateCryptoKeysOnModify disable
set profiles media packetServiceProfile PSTN_PSP secureRtpRtcp flags allowPassthru disable
set profiles media packetServiceProfile PSTN_PSP preferredRtpPayloadTypeForDtmfRelay 101
set profiles media packetServiceProfile PSTN_PSP honorRemotePrecedence disable
set profiles media packetServiceProfile PSTN_PSP sendRoutePSPPrecedence disable
commit

IP Signaling Profile (IPSP) towards PSTN

Create an IP Signaling Profile for the PSTN side. The IPSP is specified within the SIP Trunk Group configuration.

set profiles signaling ipSignalingProfile PSTN_IPSP ipProtocolType sipOnly
set profiles signaling ipSignalingProfile PSTN_IPSP commonIpAttributes flags includeReasonHeader enable
set profiles signaling ipSignalingProfile PSTN_IPSP commonIpAttributes flags includeTransportTypeInContactHeader enable
set profiles signaling ipSignalingProfile PSTN_IPSP commonIpAttributes flags minimizeRelayingOfMediaChangesFromOtherCallLegAll enable
set profiles signaling ipSignalingProfile PSTN_IPSP commonIpAttributes flags relayDataPathModeChangeFromOtherCallLeg enable
set profiles signaling ipSignalingProfile PSTN_IPSP commonIpAttributes flags sendPtimeInSdp enable
set profiles signaling ipSignalingProfile PSTN_IPSP commonIpAttributes flags lockDownPreferredCodec enable
set profiles signaling ipSignalingProfile PSTN_IPSP egressIpAttributes flags disable2806Compliance enable
commit

SIP Trunk Group towards PSTN

Configure the SIP Trunk Group with additional configurations like LRBTERPDM/PM Rule, PSP, and IPSP created in the previous steps. 

Warning

Mandatory! You must capitalize SIP Trunk Group names.

set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG mode outOfService state disabled
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy carrier 0000
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy country 1
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy localizationVariant northAmerica
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy tgIPVersionPreference both-ipv4-and-ipv6
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy digitParameterHandling numberingPlan NANP_ACCESS
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy callRouting elementRoutingPriority TEAMS
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy media packetServiceProfile PSTN_PSP
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy media toneAndAnnouncementProfile LRBT_PROF
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy services classOfService DEFAULT_IP
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy signaling ipSignalingProfile PSTN_IPSP
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG policy featureControlProfile DEFAULT_IP
set addressContext default zone PSTN_ZONE sipTrunkGroup PSTN_TG mode inService state enabled
commit

IP Peer towards PSTN

Create an IP Peer towards PSTN.

set addressContext default zone PSTN_ZONE ipPeer PSTN_IPP ipAddress x.x.x.x ipPort yyyy
commit

Routing Label towards PSTN

Create a Routing Label with a single Routing Label Route to bind the PSTN Trunk Group with the PSTN IP Peer.

set global callRouting routingLabel PSTN_RL routingLabelRoute 1 trunkGroup PSTN_TG ipPeer PSTN_IPP inService inService
commit

Call Routing  

Standard Route 1

Use this entry to allow the SBC to route all calls coming from ACS towards PSTN endpoints (irrespective of digits or FQDN).

set global callRouting route trunkGroup TEAMS_TG <sbcname> standard Sonus_NULL 1 all all ALL none Sonus_NULL routingLabel PSTN_RL
commit

Use this entry to allow the SBC to route the calls coming from ACS towards PSTN endpoints based on the called number (for example 666777xxxx).

set global callRouting route none Sonus_NULL Sonus_NULL standard 666777 1 all all ALL none Sonus_NULL routingLabel PSTN_RL
commit

  • No labels