Re: [rtcweb] The DTMF API [Was: Traffic should be encrypted. (Re: Let's define the purpose of WebRTC)]

Randell Jesup <randell-ietf@jesup.org> Wed, 16 November 2011 07:47 UTC

Return-Path: <randell-ietf@jesup.org>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1A2BE11E811F for <rtcweb@ietfa.amsl.com>; Tue, 15 Nov 2011 23:47:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.563
X-Spam-Level:
X-Spam-Status: No, score=-2.563 tagged_above=-999 required=5 tests=[AWL=0.036, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wdbe2ndacPXP for <rtcweb@ietfa.amsl.com>; Tue, 15 Nov 2011 23:47:17 -0800 (PST)
Received: from r2-chicago.webserversystems.com (r2-chicago.webserversystems.com [173.236.101.58]) by ietfa.amsl.com (Postfix) with ESMTP id 0AC1B11E8110 for <rtcweb@ietf.org>; Tue, 15 Nov 2011 23:47:16 -0800 (PST)
Received: from pool-173-49-135-74.phlapa.fios.verizon.net ([173.49.135.74] helo=[192.168.1.12]) by r2-chicago.webserversystems.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <randell-ietf@jesup.org>) id 1RQaDD-0002xQ-Tf for rtcweb@ietf.org; Wed, 16 Nov 2011 01:47:15 -0600
Message-ID: <4EC36A4F.6010407@jesup.org>
Date: Wed, 16 Nov 2011 02:46:23 -0500
From: Randell Jesup <randell-ietf@jesup.org>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: rtcweb@ietf.org
References: <CAOJ7v-18cNX8xussOPXSEoFxAARu8WriL8XgxPVUXBrWhz=FFg@mail.gmail.com> <4EC28CF5.6000109@jesup.org> <D666B5A5-BF2E-46B7-B97F-06C3736E8357@acmepacket.com> <CAOJ7v-3v5Zu9ZOuL3Qqu+aEDJ4a3cqH+oJ2yj_ewOpxKe=jA_g@mail.gmail.com> <733D6CE2-2360-4688-8268-3503F7E2460C@acmepacket.com>
In-Reply-To: <733D6CE2-2360-4688-8268-3503F7E2460C@acmepacket.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - r2-chicago.webserversystems.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - jesup.org
X-Source:
X-Source-Args:
X-Source-Dir:
Subject: Re: [rtcweb] The DTMF API [Was: Traffic should be encrypted. (Re: Let's define the purpose of WebRTC)]
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Nov 2011 07:47:21 -0000

On 11/16/2011 1:38 AM, Hadriel Kaplan wrote:
> On Nov 16, 2011, at 1:13 AM, Justin Uberti wrote:
>
>> [Local]MediaStreamTrack.sendDTMF(in DOMString tones, in optional long duration)
>>
>> ex:
>> sendDTMF("1")  // plays tone 1 for 50 ms
>> sendDTMF("2", 200)  // plays tone 2 for 200 ms
>> sendDTMF("123")  // plays tones 1, 2, 3 in succession, each for 50 ms
>> sendDTMF("456", 200)  // plays tones 4, 5, 6 in succession, each for 200 ms
> Sounds good to me, but supporting a multi-digit-string as you did above reminds me that I'll have to check with some experts if this is ok - it reminded me there have been issues with DTMFs being too close to each other in time, but I am not an expert in that and it may not be an issue at all.  (there were issues in PSTN when multiple DTMFs were generated back-to-back from a saved address-book contact-entry type thing, but it may have only been a problem for using in-band DTMF which won't be an issue here)

Typically you need an on-time and an off-time when sending a stream.  I 
think typical minimums are around 70ms on, 40ms off, but that's 
off-the-cuff from old neurons.  I think the minimum is around 45ms on, 
but that will see problems with decoders.

http://nemesis.lonestar.org/reference/telecom/signaling/dtmf.html
indicates 50ms min on, 45ms min off, 100ms min cycle duration. I 
wouldn't want to run too close to those numbers, though.

"It should be mentioned that Radio Shack, one of the worlds largest 
retailers of consumer telephone equipment, requires that all telephone 
devices it sells generate DTMF tones of no less than 70 msec of 
duration. Radio Shack developed this number based on real-life use of 
their equipment on telephone networks throughout North America and the 
finding that shorter tones are more likely to cause dialing troubles."

-- 
Randell Jesup
randell-ietf@jesup.org