This specification defines an XML format for encapsulating Dual Tone Multi-Frequency (DTMF) data in informational messages sent within the context of Jingle audio sessions, e.g. to be used in the context of Interactive Voice Response (IVR) systems.
NOTICE: This document is currently within Last Call or under consideration by the XMPP Council for advancement to the next stage in the XSF standards process.
Series: XEP
Number: 0181
Publisher: XMPP Standards Foundation
Status:
Proposed
Type:
Standards Track
Version: 0.7
Last Updated: 2007-11-27
Approving Body: XMPP Council
Dependencies: XMPP Core, XEP-0166
Supersedes: None
Superseded By: None
Short Name: TO BE ASSIGNED
Wiki Page: <http://wiki.jabber.org/index.php/Jingle DTMF (XEP-0181)>
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
Email:
seanegan@google.com
JabberID:
seanegan@google.com
The preferred venue for discussion of this document is the Standards discussion list: <http://mail.jabber.org/mailman/listinfo/standards>.
Errata may be sent to <editor@xmpp.org>.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The following keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. Introduction
2. Tone Format
3. Negotiating Use of the RFC 4733 Format
4. Determining Support
5. Security Considerations
6. IANA Considerations
7. XMPP Registrar Considerations
7.1. Protocol Namespaces
7.2. Service Discovery Features
8. XML Schema
8.1. DTMF
8.2. DTMF Errors
Notes
Revision History
Traditional telephony systems use Dual Tone Multi-Frequency (DTMF) for dialing and to issue commands such as those used in Interactive Voice Response (IVR) applications. Internet telephony systems also use DTMF tones for interoperability with the public switched telephone network (PSTN).
XMPP clients that use Jingle [1] for voice chat (see Jingle Audio via RTP [2]) MUST support the protocol described in this document to exchange DTMF information, although they MAY also support other methods of communicating DTMF information.
The format for the XML DTMF representation is as follows (see Protocol Namespaces regarding issuance of one or more permanent namespaces):
<dtmf xmlns='urn:xmpp:tmp:jingle:dtmf' action='[button-down|button-up]' code='integer'/>
The <dtmf/> element SHOULD possess an 'action' attribute, the value of which MUST be either "button-up" or "button-down" (specifying whether the button is being depressed or released). This enables DTMF tones to be reconstructed in real time. If the 'action' attribute is not included, the recipient MUST assume that the action is a "button-down" event and act as if a "button-up" event occurs after a reasonable timeout (100 milliseconds is RECOMMENDED) or when another DMTF event is received.
Unless the 'action' attribute has a value of "button-up", the <dmtf/> element MUST possess a 'code' attribute that specifies the tone to be generated. The value of the 'code' attribute SHOULD be one the following characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, #, and * -- however, the characters A, B, C, and D MAY be sent as well. [3]
The <dtmf> element SHOULD be sent as the payload of a Jingle session-info message as illustrated in the following example (see Protocol Namespaces regarding issuance of one or more permanent namespaces).
<iq from='juliet@capulet.com/balcony' id='dtmf1' to='ivr.shakespeare.lit' type='set'> <jingle xmlns='urn:xmpp:tmp:jingle' action='session-info' initiator='juliet@capulet.com/balcony' sid='a73sjjvkla37jfea'> <dtmf xmlns='urn:xmpp:tmp:jingle:dtmf' action='button-down' code='7'/> </jingle> </iq>
The receiving entity MUST send an IQ result if it can process the DTMF:
<iq from='ivr.shakespeare.lit' id='dtmf1' to='juliet@capulet.com/balcony' type='result'/>
If the receiving entity does not understand or cannot process the payload, it MUST return a <feature-not-implemented/> stanza error, which SHOULD include a Jingle-specific error condition of <unsupported-info/>.
<iq from='ivr.shakespeare.lit' id='dtmf1' to='juliet@capulet.com/balcony' type='error'> <error type='cancel'> <feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <unsupported-info xmlns='urn:xmpp:tmp:jingle:errors'/> </error> </iq>
Some applications may want to stream Jingle voice RTP directly to a non-XMPP entity, such as a SIP phone (see RFC 3261 [4]). In this scenario, DTMF needs to be sent in the content channel. Jingle DTMF enables Jingle entities to negotiate whether to send RTP over the XMPP signalling channel as described above, or over the content channel using RFC 4733 [5].
To request that the voice session will switch to use of the RFC 4733 format for communicating DTMF, a client sends a <dtmf-method/> element, qualified by the 'urn:xmpp:tmp:jingle:dtmf' namespace as the payload of a Jingle session-info message:
<iq from='juliet@capulet.com/balcony' id='dtmf2' to='ivr.shakespeare.lit' type='set'> <jingle xmlns='urn:xmpp:tmp:jingle' action='session-info' initiator='juliet@capulet.com/balcony' sid='a73sjjvkla37jfea'> <dtmf-method xmlns='urn:xmpp:tmp:jingle:dtmf' method='rtp'> </jingle> </iq>
The dtmf-method element MUST contain one 'method' attribute, the value of which SHOULD be either 'rtp' or 'xmpp'.
If the recipient supports the requested DTMF method and wishes to use that method, it MUST send an empty IQ result:
<iq from='ivr.shakespeare.lit' to='juliet@capulet.com/balcony' id='dtmf2' type='result'/>
If the recipient does not support the requested DTMF method, it MUST return a <feature-not-implemented/> stanza error, which SHOULD include a DTMF-specific error condition of <unsupported-dtmf-method/>:
<iq from='ivr.shakespeare.lit' to='juliet@capulet.com/balcony' id='dtmf2' type='error'> <error type='cancel'> <feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <unsupported-dtmf-method xmlns='urn:xmpp:tmp:jingle:dtmf:errors'/> </error> </iq>
If an entity supports Jingle DTMF (which natively includes sending of DTMF in the XMPP signalling channel), it MUST return a Service Discovery [6] feature of "urn:xmpp:tmp:jingle:dtmf" in response to service discovery information requests.
If an entity also supports sending of DTMF in the content channel, it MUST also return a service discovery feature of "urn:xmpp:jingle:dtmf:rtp" in response to service discovery information requests.
Naturally, support MAY also be determined via the dynamic, presence-based profile of Service Discovery defined in Entity Capabilities [7].
This document introduces no known security vulnerabilities.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [8].
Until this specification advances to a status of Draft, its associated namespaces shall be:
Upon advancement of this specification, the XMPP Registrar [9] shall issue permanent namespaces in accordance with the process defined in Section 4 of XMPP Registrar Function [10].
The following namespaces are requested, and are thought to be unique per the XMPP Registrar's requirements:
The XMPP Registrar shall include "urn:xmpp:jingle:dtmf:rtp" in its registry of service discovery features (see <http://www.xmpp.org/registrar/disco-features.html>).
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:xmpp:tmp:jingle:dtmf' xmlns='urn:xmpp:tmp:jingle:dtmf' elementFormDefault='qualified'> <xs:element name='dtmf'> <xs:complexType> <xs:simpleContent> <xs:extension base='empty'> <xs:attribute name='action' use='optional' default='button-down'> <xs:simpleType> <xs:restriction base='xs:NCName'> <xs:enumeration value='button-down'/> <xs:enumeration value='button-up'/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name='code' type='DTMFString' use='required'/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element name='dtmf-method'> <xs:complexType> <xs:simpleContent> <xs:extension base='empty'> <xs:attribute name='role' use='optional' default='xmpp'> <xs:simpleType> <xs:restriction base='xs:NCName'> <xs:enumeration value='rtp'/> <xs:enumeration value='xmpp'/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:simpleType name="DTMFString"> <xs:restriction base="xs:string"> <xs:pattern value="(#|\*|0|1|2|3|4|5|6|7|8|9|A|B|C|D)*" /> </xs:restriction> </xs:simpleType> <xs:simpleType name='empty'> <xs:restriction base='xs:string'> <xs:enumeration value=''/> </xs:restriction> </xs:simpleType> </xs:schema>
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:xmpp:tmp:jingle:dtmf:errors' xmlns='urn:xmpp:tmp:jingle:dtmf:errors' elementFormDefault='qualified'> <xs:element name='unsupported-dtmf-method' type='empty'/> <xs:simpleType name='empty'> <xs:restriction base='xs:string'> <xs:enumeration value=''/> </xs:restriction> </xs:simpleType> </xs:schema>
1. XEP-0166: Jingle <http://www.xmpp.org/extensions/xep-0166.html>.
2. XEP-0167: Jingle Audio via RTP <http://www.xmpp.org/extensions/xep-0167.html>.
3. Although A, B, C, and D were originally defined as part of DTMF, they were never deployed to telephony consumers and were used only for control purposes at private branch exchanges (PBXs) and central office operator stations; however, they are used in certain non-telephony applications of DTMF, such as ham radio.
4. RFC 3261: Session Initiation Protocol (SIP) <http://tools.ietf.org/html/rfc3261>.
5. RFC 4733: RTP Payload for DTMF Digits, Telephony Tones, and Telephony Signals <http://tools.ietf.org/html/rfc4733>.
6. XEP-0030: Service Discovery <http://www.xmpp.org/extensions/xep-0030.html>.
7. XEP-0115: Entity Capabilities <http://www.xmpp.org/extensions/xep-0115.html>.
8. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
9. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <http://www.xmpp.org/registrar/>.
10. XEP-0053: XMPP Registrar Function <http://www.xmpp.org/extensions/xep-0053.html>.
Editorial review and consistency check; corrected the schema.
(psa)Corrected several errors and updated to reflect changes to core Jingle spec.
(psa)Defined schema for error namespace; modified spec to use provisional namespace before advancement to Draft (per XEP-0053).
(psa)Specified error handling and service discovery.
(se/psa)Updated syntax to use action and code attributes rather than tone element in order to provide real-time interaction; specified how to negotiate use of the RFC 4733 format via content-info messages.
(se/psa)Allowed characters A, B, C, and D; updated schema.
(psa)Initial version.
(psa)END