![]() |
SIP Configuration Guide, Cisco IOS Release 12.4T
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configuring SIP DTMF Features
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contents
Configuring SIP DTMF FeaturesLast Updated: September 28, 2012
This chapter describes the following SIP features that support dual-tone multifrequency (DTMF) signaling:
Finding Feature InformationYour software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Restrictions for SIP DTMFRFC 2833 DTMF MTP Passthrough Feature
DTMF Events Through SIP Signaling Feature
DTMF Relay for SIP Calls Using NTEs Feature
SIP INFO Method for DTMF Tone Generation Feature
SIP NOTIFY-Based Out-of-Band DTMF Relay Support Feature
SIP KPML-Based Out-of-Band DTMF Relay Support Feature
<regex>x</regex>--Matches any digit 0 through 9 <regex>1</regex>--Matches digit 1 <regex>[x#*ABCD]</regex>--Matches to any digit 0 through 9, # (the pound sign), * (an asterisk), or A, B, C, or D <regex>[24]</regex>--Matches digits 2 or 4 <regex>[2-9]</regex>--Matches on any digit 2 through 9 <regex>[^2-9]</regex>--Matches digits 0 or 1
Information About SIP DTMFTo configure SIP DTMF support, you should understand the following concepts:
RFC 2833 DTMF MTP PassthroughThe RFC 2833 DTMF Media Termination Point (MTP) Passthrough feature passes DTMF tones transparently between Session Initiation Protocol (SIP) endpoints that require either transcoding or use of the RSVP Agent feature. (An RSVP agent is a Cisco IOS-based Resource Reservation Protocol [RSVP] proxy server that registers with the call manager--Cisco Unified CallManager or Cisco Unified CallManager Express--as a media-termination point or a transcoder device.) The MTP or transcoding module on a gateway detects RFC 2833 (DTMF) packets from an IP endpoint. You can configure whether it should do either or both of the following:
You can configure this instruction from the call manager, from the gateway, or both. The gateway can itself contain a call manager with an MTP or transcoder, or it can connect to another gateway that contains a call manager with an MTP or transcoder. Configuration on the call manager takes precedence over configuration on the gateway. DTMF Events Through SIP SignalingThe DTMF Events Through SIP Signaling feature provides the following benefits:
The DTMF Events Through SIP Signaling feature allows telephone event notifications to be sent through SIP NOTIFY messages, using the SIP SUBSCRIBE/NOTIFY method as defined in the Internet Engineering Task Force (IETF) draft, SIP-Specific Event Notification . The feature also supports sending DTMF notifications based on the IETF draft, draft-mahy-sip-signaled-digits-01.txt, Signaled Telephony Events in the Session Initiation Protocol (SIP) . DTMF DialingDTMF dialing consists of simultaneous voice-band tones generated when a button is pressed on a telephone. The use of DTMF signaling for this feature enables support for advanced telephony services. Currently there are a number of application servers and service creation platforms that do not support media connections. To provide value-added services to the network, these servers and platforms need to be aware of signaling events from a specific participant in the call. Once the server or platform is aware of the DTMF events that are being signaled, it can use third-party call control, or other signaling mechanisms, to provide enhanced services. Examples of the types of services and platforms that are supported by this feature are various voice web browser services, Centrex switches or business service platforms, calling card services, and unified message servers. All of these applications require a method for the user to communicate with the application outside of the media connection. The DTMF Events Through SIP Signaling feature provides this signaling capability. This feature is related to the SIP INFO Method for DTMF Tone Generation feature, which adds support for out-of-band DTMF tone generation using the SIP INFO method. Together the two features provide a mechanism to both send and receive DTMF digits along the signaling path. NOTIFY MessagesThe SIP event notification mechanism uses NOTIFY messages to signal when certain telephony events take place. In order to send DTMF signals through NOTIFY messages, the gateway notifies the subscriber when DTMF digits are signaled by the originator. The notification contains a message body with a SIP response status line. The following sample message shows a NOTIFY message from the Notifier letting the Subscriber know that the subscription is completed. The combination of the From, To, and Call-ID headers identifies the call leg. The Events header specifies the event type being signaled, and the Content-Type specifies the Internet media type. The Content-Length header indicates the number of octets in the message body. NOTIFY sip:subscriber@example1.com SIP/2.0 Via: SIP/2.0/UDP example2.com:5060 From: Notifier <sip:notifier@example2.com>;tag=5678-EFGH To: Subscriber <sip:subscriber@example1.com>;tag=1234-ABCD Call-ID: 12345@example2.com CSeq: 104 NOTIFY Contact: Notifier <sip:notifier@example2.com> Events: telephone-event;rate=1000 Content-Type: audio/telephone-event Content-Length: 4 DTMF Relay for SIP Calls Using NTEsFeature benefits include the following:
The SIP NTE DTMF relay feature is used for the following applications:
Reliable DTMF RelayThe SIP NTE DTMF relay feature provides reliable digit relay between Cisco VoIP gateways when a low-bandwidth codec is used. Using NTE to relay DTMF tones provides a standardized means of transporting DTMF tones in Real-Time Transport Protocol (RTP) packets according to section 3 of RFC 2833, RTP Payload for DTMF Digits, Telephony Tones and Telephony Signals , developed by the Internet Engineering Task Force (IETF) Audio/Video Transport (AVT) working group. RFC 2833 defines formats of NTE RTP packets used to transport DTMF digits, hookflash, and other telephony events between two peer endpoints. DTMF tones are generated when a button on a touch-tone phone is pressed. When the tone is generated, it is compressed, transported to the other party, and decompressed. If a low-bandwidth codec, such as a G.729 or G.723 is used without a DTMF relay method, the tone may be distorted during compression and decompression. With the SIP NTE DTMF relay feature, the endpoints perform per-call negotiation of the DTMF relay method. They also negotiate to determine the payload type value for the NTE RTP packets. In a SIP call, the gateway forms a Session Description Protocol (SDP) message that indicates the following:
The SIP NTE DTMF relay feature can relay hookflash events in the RTP stream using NTP packets.
SIP IP Phone SupportThe SIP NTE DTMF relay feature adds SIP phone support. When SIP IP phones are running software that does not have the capability to generate DTMF tones, the phones use NTE packets to indicate DTMF digits. With the SIP NTE DTMF relay feature, Cisco VoIP gateways can communicate with SIP phones that use NTE packets to indicate DTMF digits. The Cisco VoIP gateways can relay the digits to other endpoints. SIP INFO Method for DTMF Tone GenerationThis section describes the SIP INFO Method for DTMF Tone Generation feature, which uses the SIP INFO method to generate dual-tone multifrequency (DTMF) tones on the telephony call leg. SIP methods or request message types, request a specific action be taken by another user agent or proxy server. The SIP INFO message is sent along the signaling path of the call. With the feature, upon receipt of a SIP INFO message with DTMF relay content, the gateway generates the specified DTMF tone on the telephony end of the call. The SIP INFO Method for DTMF Tone Generation feature is always enabled, and is invoked when a SIP INFO message is received with DTMF relay content. This feature is related to the SIP NOTIFY-Basec Out-of-Band DTMF Relay Support feature, which provides the ability for an application to be notified about DTMF events using SIP NOTIFY messages. Together, the two features provide a mechanism to both send and receive DTMF digits along the signaling path.
SIP INFO MessagesThe SIP INFO method is used by a user agent to send call signaling information to another user agent with which it has an established media session. The following example shows a SIP INFO message with DTMF content: INFO sip:2143302100@172.17.2.33 SIP/2.0 Via: SIP/2.0/UDP 172.80.2.100:5060 From: <sip:9724401003@172.80.2.100>;tag=43 To: <sip:2143302100@172.17.2.33>;tag=9753.0207 Call-ID: 984072_15401962@172.80.2.100 CSeq: 25634 INFO Supported: 100rel Supported: timer Content-Length: 26 Content-Type: application/dtmf-relay Signal= 1 Duration= 160 This sample message shows a SIP INFO message received by the gateway with specifics about the DTMF tone to be generated. The combination of the From, To, and Call-ID headers identifies the call leg. The signal and duration headers specify the digit, in this case 1, and duration, 160 milliseconds in the example, for DTMF tone play. SIP NOTIFY-Based Out-of-Band DTMF RelaySCCP IP phones do not support in-band DTMF digits; they are capable of sending only out-of-band DTMF digits. To support SCCP devices, originating and terminating SIP gateways can use Cisco proprietary NOTIFY-based out-of-band DTMF relay. In addition, NOTIFY-based out-of-band DTMF relay can also be used by analog phones attached to analog voice ports (FXS) on the router. NOTIFY-based out-of-band DTMF relay sends messages bidirectionally between the originating and terminating gateways for a DTMF event during a call. If multiple DTMF relay mechanisms are enabled on a SIP dial peer and are negotiated successfully, NOTIFY-based out-of-band DTMF relay takes precedence. The originating gateway sends an Invite message with a SIP Call-Info header to indicate the use of NOTIFY-based out-of-band DTMF relay. The terminating gateway acknowledges the message with an 18x or 200 Response message, also using the Call-Info header. The Call-Info header for NOTIFY-based out-of-band relay appears as follows: Call-Info: <sip: address>; method="NOTIFY;Event=telephone-event;Duration=msec"
First, the NOTIFY-based out-of-band DTMF relay mechanism is negotiated by the SIP Invite and 18x/200 Response messages. Then, when a DTMF event occurs, the gateway sends a SIP NOTIFY message for that event. In response, the gateway expects to receive a 200 OK message. The NOTIFY-based out-of-band DTMF relay mechanism is similar to the DTMF message format described in RFC 2833. NOTIFY-based out-of-band DTMF relay consists of 4 bytes in a binary encoded format. The message format is shown in the figure below; field descriptions are listed in the table below.
Sending NOTIFY MessagesAs soon as the DTMF event is recognized, the gateway sends out an initial NOTIFY message for this event with the duration negotiated in the Invite's Call-Info header. For the initial NOTIFY message, the end bit is set to zero. Afterward, one of the following actions can occur:
For example, if the negotiated duration is 600 ms, as soon as a DTMF event occurs, the initial NOTIFY message is sent with duration as 600 ms. Then a timer starts for this duration.
Every DTMF event corresponds to at least two NOTIFYs: an initial NOTIFY message and an end NOTIFY message. There might also be some update NOTIFYs involved, if the total duration of the event is greater than the negotiated max-duration interval. Because DTMF events generally last for less than 1000 ms, setting the duration using notify telephone-event command to more than 1000 ms reduces the total number of NOTIFY messages sent. The default value of notify telephone-event command is 2000 ms. Receiving NOTIFY MessagesOnce a NOTIFY message is received by the terminating gateway, the DTMF tone plays and a timer is set for the value in the duration field. Afterward, one of the following actions can occur:
Two commands allow you to enable or disable NOTIFY-based out-of-band DTMF relay on a dial peer. The functionality is advertised to the other end using Invite messages if it is enabled by the commands, and must be configured on both the originating and terminating SIP gateways. A third command allows you to verify DTMF relay status.
SIP KPML-Based Out-of-Band DTMF RelayKPML support is required on SIP gateways for non-conferencing calls, and for interoperability between SIP products and SIP phones. If you configure KPML on the dial peer, the gateway sends INVITE messages with "kpml" in the Allow-Events header. Currently, all configured DTMF methods are recognized and sent in the outgoing INVITE. If you configure rtp-nte (RFC 2833), sip-notify, and sip-kpml, the outgoing INVITE contains a call-info header, an Allow-Events header with KPML, and an sdp with rtp-nte payload. DTMF negotiation is performed based on the matching inbound dial-peer configuration. The gateway negotiates to either just cisco-rtp, just rtp-nte, rtp-nte + kpml, just kpml, or just sip-notify. If you configure more than one out-of-band DTMF method, preference goes from highest to lowest in the order they were configured. Whichever DTMF negotiation method you configure first takes precedence. A gateway negotiates both rtp-nte and KPML if both are supported and advertised in the incoming INVITE. However, in this case, the gateway relies on the rtp-nte DTMF method to receive digits and a SUBSCRIBE for KPML is not initiated, however the gateway still accepts SUBSCRIBEs for KPML. This prevents double-digit reporting problems at the gateway. The following example shows the INVITE and SUBSCRIBE sequence for KPML. Sent: INVITE sip:8888@172.18.193.250:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bKC1ECC From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250> Date: Fri, 01 Mar 2002 00:15:59 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 Supported: 100rel,timer,resource-priority,replaces Min-SE: 1800 Cisco-Guid: 1424162198-736104918-2148455531-3036263926 User-Agent: Cisco-SIPGateway/IOS-12.x Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER CSeq: 101 INVITE Max-Forwards: 70 Timestamp: 1014941759 Contact: <sip:172.18.193.251:5060> Expires: 180 Allow-Events: kpml , telephone-event Content-Type: application/sdp Content-Disposition: session;handling=required Content-Length: 221 v=0 o=CiscoSystemsSIP-GW-UserAgent 1438 8538 IN IP4 172.18.193.251 s=SIP Call c=IN IP4 172.18.193.251 t=0 0 m=audio 17576 RTP/AVP 0 19 c=IN IP4 172.18.193.251 a=rtpmap:0 PCMU/8000 a=rtpmap:19 CN/8000 a=ptime:20 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 183 Session Progress Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bKC1ECC From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Date: Fri, 01 Mar 2002 01:02:34 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 Timestamp: 1014941759 Server: Cisco-SIPGateway/IOS-12.x CSeq: 101 INVITE Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER Require: 100rel RSeq: 3482 Allow-Events: kpml , telephone-event Contact: <sip:8888@172.18.193.250:5060> Content-Type: application/sdp Content-Disposition: session;handling=required Content-Length: 221 v=0 o=CiscoSystemsSIP-GW-UserAgent 9384 6237 IN IP4 172.18.193.250 s=SIP Call c=IN IP4 172.18.193.250 t=0 0 m=audio 17468 RTP/AVP 0 19 c=IN IP4 172.18.193.250 a=rtpmap:0 PCMU/8000 a=rtpmap:19 CN/8000 a=ptime:20 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 200 OK Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bKC1ECC From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Date: Fri, 01 Mar 2002 01:02:38 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 Timestamp: 1014941759 Server: Cisco-SIPGateway/IOS-12.x CSeq: 101 INVITE Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER Allow-Events: kpml, telephone-event Contact: <sip:8888@172.18.193.250:5060> Content-Type: application/sdp Content-Disposition: session;handling=required Content-Length: 221 v=0 o=CiscoSystemsSIP-GW-UserAgent 9384 6237 IN IP4 172.18.193.250 s=SIP Call c=IN IP4 172.18.193.250 t=0 0 m=audio 17468 RTP/AVP 0 19 c=IN IP4 172.18.193.250 a=rtpmap:0 PCMU/8000 a=rtpmap:19 CN/8000 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: ACK sip:8888@172.18.193.250:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bKEB8B From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Date: Fri, 01 Mar 2002 00:16:00 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 Max-Forwards: 70 CSeq: 101 ACK Allow-Events: kpml, telephone-event Content-Length: 0 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: SUBSCRIBE sip:8888@172.18.193.250:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bKFF36 From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 103 SUBSCRIBE Max-Forwards: 70 Date: Fri, 01 Mar 2002 00:16:15 GMT User-Agent: Cisco-SIPGateway/IOS-12.x Event: kpml Expires: 7200 Contact: <sip:172.18.193.251:5060> Content-Type: application/kpml-request+xml Content-Length: 327 <?xml version="1.0" encoding="UTF-8"?><kpml-request xmlns="urn:ietf:params:xml:ns:kpml-request" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:kpml-request kpml-request.xsd" version="1.0"><pattern persist="persist"><regex tag="dtmf">[x*#ABCD]</regex></pattern></kpml-request> //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SUBSCRIBE sip:172.18.193.251:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.250:5060;branch=z9hG4bK5FE3 From: <sip:8888@172.18.193.250>;tag=39497C-2EA To: <sip:172.18.193.251>;tag=EA330-F6 Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 101 SUBSCRIBE Max-Forwards: 70 Date: Fri, 01 Mar 2002 01:02:46 GMT User-Agent: Cisco-SIPGateway/IOS-12.x Event: kpml Expires: 7200 Contact: <sip:172.18.193.250:5060> Content-Type: application/kpml-request+xml Content-Length: 327 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 200 OK Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bKFF36 From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Date: Fri, 01 Mar 2002 01:02:51 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 103 SUBSCRIBE Content-Length: 0 Contact: <sip:172.18.193.250:5060> Expires: 7200 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: SIP/2.0 200 OK Via: SIP/2.0/UDP 172.18.193.250:5060;branch=z9hG4bK5FE3 From: <sip:8888@172.18.193.250>;tag=39497C-2EA To: <sip:172.18.193.251>;tag=EA330-F6 Date: Fri, 01 Mar 2002 00:16:24 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 101 SUBSCRIBE Content-Length: 0 Contact: <sip:172.18.193.251:5060> Expires: 7200 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: NOTIFY sip:172.18.193.250:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bK101EA4 From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 104 NOTIFY Max-Forwards: 70 Date: Fri, 01 Mar 2002 00:16:24 GMT User-Agent: Cisco-SIPGateway/IOS-12.x Event: kpml Subscription-State: active Contact: <sip:172.18.193.251:5060> Content-Length: 0 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: NOTIFY sip:172.18.193.251:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.250:5060;branch=z9hG4bK6111 From: <sip:8888@172.18.193.250>;tag=39497C-2EA To: <sip:172.18.193.251>;tag=EA330-F6 Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 102 NOTIFY Max-Forwards: 70 Date: Fri, 01 Mar 2002 01:02:51 GMT User-Agent: Cisco-SIPGateway/IOS-12.x Event: kpml Subscription-State: active Contact: <sip:172.18.193.250:5060> Content-Length: 0 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: SIP/2.0 200 OK Via: SIP/2.0/UDP 172.18.193.250:5060;branch=z9hG4bK6111 From: <sip:8888@172.18.193.250>;tag=39497C-2EA To: <sip:172.18.193.251>;tag=EA330-F6 Date: Fri, 01 Mar 2002 00:16:32 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 102 NOTIFY Content-Length: 0 //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: NOTIFY sip:172.18.193.250:5060 SIP/2.0 Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bK1117DE From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 105 NOTIFY Max-Forwards: 70 Date: Fri, 01 Mar 2002 00:37:33 GMT User-Agent: Cisco-SIPGateway/IOS-12.x Event: kpml Subscription-State: active Contact: <sip:172.18.193.251:5060> Content-Type: application/kpml-response+xml Content-Length: 113 <?xml version="1.0" encoding="UTF-8"?><kpml-response version="1.0" code="200" text="OK" digits="1" tag="dtmf"/> /-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Received: SIP/2.0 200 OK Via: SIP/2.0/UDP 172.18.193.251:5060;branch=z9hG4bK1117DE From: <sip:172.18.193.251>;tag=EA330-F6 To: <sip:8888@172.18.193.250>;tag=39497C-2EA Date: Fri, 01 Mar 2002 01:24:08 GMT Call-ID: 57633F68-2BE011D6-8013D46B-B4F9B5F6@172.18.193.251 CSeq: 105 NOTIFY Content-Length: 0 ... SIP Support for Asymmetric SDPThe SIP Support for Asymmetric SDP feature allows a SIP gateway to receive an offer or answer with a different payload than it prefers, and treat the payloads as asymmetric, as long as both the payloads are not in use. The gateway interprets the payload that it receives and generates RTP packets for DTMF events and dynamic codecs. The gateway expects to receive the DTMF events and dynamic codec payload value it originally sent in the request/response message. In this way, the gateway advertises its preferred payload in the answer to the offer that it receives. For delayed media cases, if the gateway receives an INVITE message with no SDP, the corresponding response or offer carries the preferred payload in the SDP. The gateway expects that the remote end will use the payload offered in RTP packets that it receives. The gateway uses the payload type received in the answer in all the RTP packets that it generates, as long as this payload is not in use. The following sections describe the behavior of a Universal Agent Client (UAC) and Universal Agent Server (UAS) gateway for asymmetric payload handling:
UAC Behavior for Asymmetric DTMF PayloadsWhen a UAC gateway originates an INVITE message, it advertises the preferred DTMF relay payload and method. However, when the gateway receives an 18x/2xx response with a different DTMF payload, the gateway first checks if the associated DTMF relay method can successfully negotiate with it. If negotiation is successful, the gateway checks if the new payload is available for use. If it is available, the gateway uses the received payload in all RTP (RFC 2833) events packets it generates. At the same time, the gateway expects the remote end to send packets with the preferred payload that the gateway advertised in its original request. If the gateway is unable to use the new payload that the remote end requests in the answer, then DTMF relay negotiation fails for the requested DTMF relay method. The figure below summarizes the call behavior for a Universal Access Controller (UAC) when using asymmetric DTMF payloads. UAS Behavior for Asymmetric DTMF PayloadsWhen a gateway receives an INVITE message that has a preferred DTMF relay method and payload, and the requested DTMF relay is negotiated successfully, the gateway checks if the requested DTMF payload is available for use. If it is available, the gateway checks if you configured a preferred payload at the matching dial peer. If you did not configure a preferred payload, the gateway uses its default value for that particular DTMF relay method. If the preferred payload is different from the one in the original request, the payload in the original request is used in all RTP (RFC 2833) events packets that the gateway generates. The gateway responds with the preferred payload in the SDP in the response to the original request. The gateway expects the remote end to send packets with the preferred payload that the gateway advertised in its response. When the gateway receives a delayed media request, the gateway offers the preferred DTMF relay and payload in its response. If the remote end responds with the same DTMF relay and different payload, this new payload is used to generate RTP RFC 2833 events packets. The gateway expects the remote end to send packets with the preferred payload that the gateway advertised in its response. The figure below summarizes the call behavior for a Universal Access Server (UAS) when using asymmetric DTMF payloads. UAC Behavior for Asymmetric Dynamic Codec PayloadsWhen the gateway originates an INVITE message, the gateway advertises the preferred dynamic codec. However, when the gateway receive an 18x/2xx response with a different dynamic payload, the gateway first checks whether the new payload, in the answer SDP message, is being used for the same dynamic codec that was advertised. If the new payload is the same codec, and if the dynamic payload is available for use, the received payload is used in all RTP dynamic codec packets that are generated by the gateway. At the same time, the gateway expects the remote end to send packets with the preferred payload that the gateway advertised in its original request. If the gateway is unable to use the new payload that the remote end requests in the answer, then codec negotiation for that particular dynamic codec fails. The figure below summarizes the call behavior for a UAC when using asymmetric dynamic codec payloads. UAS Behavior for Asymmetric Dynamic Codec PayloadsWhen a gateway receives an INVITE message which has a dynamic codec and payload, and the requested dynamic codec and payload is negotiated successfully, the gateway uses the same payload in its response to the INVITE message. The gateway cannot generate a different dynamic payload in a response message. Beginning with Cisco IOS Release 12.4(15)T, when a gateway receives a delayed media request, you can configure the gateway to offer the preferred dynamic codec and payload in its response. If the remote end responds with the same dynamic codec and a different payload, this new payload is used to generate the codec RTP packets. The gateway expects the remote end to send packets with the preferred payload that the gateway advertised in its response. The figure below summarizes the call behavior for UAS when using asymmetric dynamic codec payloads. How to Configure SIP DTMF FeaturesThis section contains the following procedures:
Configuring Passthrough on a Gateway that Connects to an MTP or Transcoder GatewayTo configure RFC 2833 DTMF MTP Passthrough on a gateway that does not itself contain an MTP or transcoder but connects to another gateway that does, perform the following steps. DETAILED STEPS
To configure a gateway to use a different payload type, use the rtp payload-typecommand as in the following example:
Router(config-dial-peer)# rtp payload-type nte 105
Configuring DTMF Events Through SIP Signaling
SUMMARY STEPS
DETAILED STEPS Configuring DTMF Relay for SIP Calls Using NTEsConfigure DTMF Relay for SIP Calls Using NTEs
SUMMARY STEPS
DETAILED STEPS Configuring SIP INFO Method for DTMF Tone GenerationYou cannot configure, enable, or disable this feature. You can display SIP statistics, including SIP INFO method statistics, by using the show sip-ua statistics and show sip-ua status commands in privileged EXEC mode. See the following fields for SIP INFO method statistics:
Configuring SIP NOTIFY-Based Out-of-Band DTMF RelayDETAILED STEPS Configuring SIP KPML-Based Out-of-Band DTMF Relay
SUMMARY STEPS
DETAILED STEPS Verifying SIP DTMF SupportTo verify SIP DTMF support, perform the following steps as appropriate (commands are listed in alphabetical order). DETAILED STEPS Configuring SIP Support for SDPThis section describes the procedures for configuring and associating the SIP Support for Asymmetric SDP feature. These procedures include the following: How to Configure a SIP Support for Asymmetric SDP Globally for a Gateway
SUMMARY STEPS
DETAILED STEPS
How to Configure SIP Support for Asymmetric SDP on a Dial Peer
SUMMARY STEPS
DETAILED STEPS
Troubleshooting Tips
Configuration Examples for SIP DTMF Features
DTMF Relay for SIP Calls Using NTEs ExamplesSIP NOTIFY-Based Out-of-Band DTMF Relay ExampleCurrent configuration : 3394 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption service internal memory-size iomem 15 ip subnet-zero ! no ip domain lookup ! voice service voip redirect ip2ip sip redirect contact order best-match ip dhcp pool vespa network 192.0.2.0 255.255.255.0 option 150 ip 192.0.2.2 default-router 192.0.2.3 ! voice call carrier capacity active ! voice class codec 1 codec preference 2 g711ulaw ! no voice hpi capture buffer no voice hpi capture destination ! fax interface-type fax-mail mta receive maximum-recipients 0 ! interface Ethernet0/0 ip address 192.0.2.4 255.255.0.0 half-duplex ! interface FastEthernet0/0 ip address 192.0.2.5 255.255.255.0 speed auto no cdp enable h323-gateway voip interface h323-gateway voip id vespa2 ipaddr 192.0.2.6 ! router rip network 192.0.2.0 network 209.165.201.0 ! ip default-gateway 192.0.2.9 ip classless ip route 0.0.0.0 0.0.0.0 192.0.2.10 no ip http server ip pim bidir-enable ! tftp-server flash:SEPDEFAULT.cnf tftp-server flash:P005B302.bin call fallback active ! call application global default.new call rsvp-sync ! voice-port 1/0 ! voice-port 1/1 ! mgcp profile default ! dial-peer voice 1 pots destination-pattern 5100 port 1/0 ! dial-peer voice 2 pots destination-pattern 9998 port 1/1 ! dial-peer voice 123 voip destination-pattern [12]... session protocol sipv2 session target ipv4:10.8.17.42 dtmf-relay sip-notify ! gateway ! sip-ua retry invite 3 retry register 3 timers register 150 registrar dns:myhost3.example.com expires 3600 registrar ipv4:192.0.2.11 expires 3600 secondary ! telephony-service max-dn 10 max-conferences 4 ! ephone-dn 1 number 4001 ! ephone-dn 2 number 4002 ! line con 0 exec-timeout 0 0 line aux 0 line vty 0 4 login line vty 5 15 login ! no scheduler allocate end SIP KPML-Based Out-of-Band DTMF Relay Examplerouter(config-dial-peer)# dtmf router(config-dial-peer)# dtmf-relay ? cisco-rtp Cisco Proprietary RTP h245-alphanumeric DTMF Relay via H245 Alphanumeric IE h245-signal DTMF Relay via H245 Signal IE rtp-nte RTP Named Telephone Event RFC 2833 sip-kpml DTMF Relay via KPML over SIP SUBCRIBE/NOTIFY sip-notify DTMF Relay via SIP NOTIFY messages router(config-dial-peer)# dtmf-relay sip-kpml router(config-dial-peer)# end %SYS-5-CONFIG_I: Configured from console by console router#sh run Building configuration...Current configuration : 2430 bytes ! version 12.4 no service pad service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname mahoney ! boot-start-marker boot-end-marker ! logging buffered 5000000 debugging ! no aaa new-model ! resource policy ! clock timezone EST 0 ip cef ip name-server 192.0.2.21 ip name-server 192.0.2.22 ! voice-card 0 ! voice service voip sip min-se 90 registrar server ! voice class codec 1 codec preference 1 g711ulaw codec preference 2 g729r8 codec preference 3 g729br8 codec preference 4 g711alaw codec preference 5 g726r16 codec preference 6 g726r24 codec preference 7 g726r32 codec preference 8 g723ar53 codec preference 9 g723ar63 ! ! voice register pool 1 id ip 192.0.2.168 mask 0.0.0.0 dtmf-relay rtp-nte ! ! interface FastEthernet0/0 ip address 192.0.2.1 255.255.255.0 no ip proxy-arp no ip mroute-cache duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! ip default-gateway 192.0.2.200 ip route 0.0.0.0 0.0.0.0 192.0.2.1 ip route 0.0.0.0 0.0.0.0 192.0.2.225 ! ip http server ! control-plane ! voice-port 2/0 ! voice-port 2/1 ! voice-port 2/2 . . . voice-port 2/22 ! voice-port 2/23 ! ! dial-peer voice 1 pots destination-pattern 8888 port 2/1 ! dial-peer voice 9999 voip destination-pattern 9999 session protocol sipv2 session target ipv4:192.0.2.228 dtmf-relay sip-kpml codec g711ulaw ! dial-peer voice 5555555 voip destination-pattern 5555555 session protocol sipv2 session target ipv4:192.0.2.230 codec g711ulaw ! dial-peer voice 36 voip destination-pattern 36601 session protocol sipv2 session target ipv4:192.0.2.235 codec g711ulaw ! dial-peer voice 444 voip destination-pattern 444 session protocol sipv2 session target ipv4:192.0.2.140 codec g711ulaw ! dial-peer voice 333 voip destination-pattern 333 session protocol sipv2 session target ipv4:192.0.2.200 ! ! sip-ua retry invite 3 ! ! line con 0 exec-timeout 0 0 line aux 0 line vty 0 4 login ! end ExampleThe following example shows a sample configuration of the RFC 2833 DTMF MTP Passthrough feature on a SIP gateway. dial-peer voice 1000 voip destination-pattern .T session protocol sipv2 session target ipv4:10.120.70.10 incoming called-number .T dtmf-relay rtp-nte ! sip-ua ! ! line con 0 exec-timeout 0 0 line aux 0 line vty 0 4 login ! ! end SIP Support for Asymmetric SDP Example
Additional ReferencesRelated DocumentsMIBsTechnical Assistance
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. © 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|