Configuring your organization's PSTN gateway
Your organization's PSTN gateway must be able to perform the following actions:
- Read DTMF from an incoming media stream
- Remove DTMF from the media stream
- Using out of band signaling (MGCP Notify or SIP Notify), notify the Cisco Unified Communications Manager that it has detected DTMF
- Receive out of band signaling (MGCP Notify or SIP Notify) requests from the Cisco Unified Communications Manager to generate DTMF
- Inject the requested DTMF into a media stream
MGCP configuration to enable out of band DTMF relay
To configure the use of out of band DTMF signaling on a MGCP gateway, use the following IOS command:
mgcp dtmf-relay voip codec all mode out-of-band
SIP Configuration to enable out of band DTMF relay
When using unsolicited SIP Notify on the PSTN gateway, in the Cisco Unified Communications Manager UI, you must configure the SIP trunk security profile to accept unsolicited notification. Changes to an existing SIP trunk require you to reset the trunk which can be service affecting. Make sure you take appropriate measures before a reset.
- In the Cisco Unified Communications Manager UI, click System > Security Profile > SIP trunk security profile.
- Select the SIP Trunk Security Profile that the SIP Trunk to the PSTN gateway uses for outgoing calls from BlackBerry Mobile Voice System users and the BlackBerry MVS Server.
- Select Accept Unsolicited Notification.
- Click Save.
- Reset the SIP trunk.
On a Cisco IOS gateway configured for SIP, DTMF negotiation is performed based on the matching inbound dial-peer configuration.
For SIP calls from the Cisco Unified Communications Manager to the PSTN, the incoming dial-peer is not usually explicitly defined and a default DTMF relay method is used. You must therefore explicitly define an incoming dial-peer to apply the required non-default DTMF-relay preferences.
Example
In this example:
- Telco sends last 4 digits of the DID.
- 4 digit extension range starts with 1.
- 10 digit DID range starts with 2125551.
- 2 Cisco Unified Communications Manager servers configured for redundancy.
dial-peer voice 500 voip
description Calls to CUCM Extensions
preference 1
destination-pattern 1...
session protocol sipv2
session target ipv4:10.10.100.100
dtmf-relay sip-kpml rtp-nte
codec g711ulaw
no vad
!
dial-peer voice 501 voip
description Calls to CUCM Extensions
preference 2
destination-pattern 1...
session protocol sipv2
session target ipv4:10.10.100.101
dtmf-relay sip-kpml rtp-nte
codec g711ulaw
no vad
!
!
dial-peer voice 502 voip
description MVS ANI DTMF Relay
answer-address 2125551...
session protocol sipv2
dtmf-relay sip-kpml rtp-nte
codec g711ulaw
no vad
!
H.323 gateway Configuration to Enable Out of Band DTMF Relay
If the organization is using an H.323 gateway you must enable Inbound and Outbound FastStart in the Cisco Unified Communications Manager. Changes to an H.323 gateway require you to reset the gateway which can be service affecting. Make sure you take appropriate measures before a reset.
- In the Cisco Unified Communications Manager UI, click Device > Gateway > Find.
- Click the H.323 gateway.
- Select Media Termination Point Required.
- Under Call Routing Information – Inbound Calls, select Enable Inbound FastStart.
- Under Call Routing Information – Outbound Calls, select Enable Outbound FastStart.
- Click Save.
To configure the use of out of band DTMF signaling on an H.323 gateway use the following IOS command:
dtmf-relay h245- alphanumeric
On a Cisco IOS gateway configured for H.323, DTMF negotiation is performed based on the matching inbound dial-peer configuration.
For H.323 calls from the Cisco Unified Communications Manager to the PSTN, the incoming dial-peer is not usually explicitly defined and a default DTMF relay method is used. You must therefore explicitly define an incoming dial-peer to apply the required non-default DTMF-relay preferences.
Example
In this example:
- Telco sends last 4 digits of the DID.
- 4 digit extension range starts with 1.
- 10 digit DID range starts with 2125551.
- 2 Cisco Unified Communications Manager servers configured for redundancy.
dial-peer voice 500 voip
description Calls to CUCM Extensions
preference 1
destination-pattern 1...
session target ipv4:10.10.100.100
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
!
dial-peer voice 501 voip
description Calls to CUCM Extensions
preference 2
destination-pattern 1...
session target ipv4:10.10.100.101
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
!
!
dial-peer voice 502 voip
description MVS ANI DTMF Relay
answer-address 2125551...
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
!