Re: [rtcweb] Support DTMF "codec" or expose DTMF in signaling? (Re: DTMF usecase before DTMF API)

Roman Shpount <roman@telurix.com> Sat, 19 November 2011 02:56 UTC

Return-Path: <roman@telurix.com>
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 763AE11E809B for <rtcweb@ietfa.amsl.com>; Fri, 18 Nov 2011 18:56:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.906
X-Spam-Level:
X-Spam-Status: No, score=-2.906 tagged_above=-999 required=5 tests=[AWL=0.070, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
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 7-qyTcLGQCaG for <rtcweb@ietfa.amsl.com>; Fri, 18 Nov 2011 18:56:00 -0800 (PST)
Received: from mail-yx0-f172.google.com (mail-yx0-f172.google.com [209.85.213.172]) by ietfa.amsl.com (Postfix) with ESMTP id B3C6A11E8080 for <rtcweb@ietf.org>; Fri, 18 Nov 2011 18:56:00 -0800 (PST)
Received: by yenm7 with SMTP id m7so628758yen.31 for <rtcweb@ietf.org>; Fri, 18 Nov 2011 18:56:00 -0800 (PST)
Received: by 10.236.73.166 with SMTP id v26mr9113193yhd.100.1321671360380; Fri, 18 Nov 2011 18:56:00 -0800 (PST)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by mx.google.com with ESMTPS id l27sm7600850ani.21.2011.11.18.18.55.59 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Nov 2011 18:56:00 -0800 (PST)
Received: by ywt34 with SMTP id 34so3775425ywt.31 for <rtcweb@ietf.org>; Fri, 18 Nov 2011 18:55:59 -0800 (PST)
MIME-Version: 1.0
Received: by 10.68.65.166 with SMTP id y6mr7497776pbs.120.1321671358590; Fri, 18 Nov 2011 18:55:58 -0800 (PST)
Received: by 10.68.7.33 with HTTP; Fri, 18 Nov 2011 18:55:58 -0800 (PST)
In-Reply-To: <CAD5OKxvDCtjtD4S9LjLb6SZ9QErsNCXCAKAXhr1cNJ=oBSY7jA@mail.gmail.com>
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> <9A05449A-C0FB-4548-AA80-728EC82218BB@acmepacket.com> <387F9047F55E8C42850AD6B3A7A03C6C01CE9B22@inba-mail01.sonusnet.com> <4EC5C6FB.4040804@alvestrand.no> <6725A83E-0BB0-4F86-AB27-75027E317710@acmepacket.com> <4EC60963.8060508@alvestrand.no> <CALiegfmFizZ7zC55MCHVs_w6EO-FHfn2fSH4+yqCD5O82T3MTw@mail.gmail.com> <4EC63561.10909@skype.net> <CALiegfnraby3e_TKMj95VUvaEyg3deomL=yciw0EW13O5q9w5w@mail.gmail.com> <4EC6480D.7080505@skype.net> <CALiegfnCZMJ0GYpehD3XGsN=cGHHXMA1FFD5PfKSVRc7SYE+4w@mail.gmail.com> <4134053A-A1D9-4E52-9A53-3F5790A2F405@acmepacket.com> <CALiegfmm8HFO+ODU3RxCznam1512UdQnzW6iQrXKFCNWV73RPQ@mail.gmail.com> <CAD5OKxtQTgT5W4mECdc-O_ST7XFgjUmy_K-GxEJ27Jw-_2z9vw@mail.gmail.com> <CAOJ7v-3gYPjAKST_K9tvU4DAGHyyapujf8t9KeDMKE3geutQ=Q@mail.gmail.com> <CAD5OKxvDCtjtD4S9LjLb6SZ9QErsNCXCAKAXhr1cNJ=oBSY7jA@mail.gmail.com>
Date: Fri, 18 Nov 2011 21:55:58 -0500
Message-ID: <CAD5OKxvQE=OJYS1+ACuaJjW4kGhxqON0agG24vpLKW9_iFj=5g@mail.gmail.com>
From: Roman Shpount <roman@telurix.com>
To: Justin Uberti <juberti@google.com>
Content-Type: multipart/alternative; boundary="bcaec54309b8d6b08304b20d97f6"
Cc: "<rtcweb@ietf.org>" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Support DTMF "codec" or expose DTMF in signaling? (Re: DTMF usecase before DTMF API)
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: Sat, 19 Nov 2011 02:56:01 -0000

On Fri, Nov 18, 2011 at 3:56 PM, Roman Shpount <roman@telurix.com> wrote:

>
>
> On Fri, Nov 18, 2011 at 3:02 PM, Justin Uberti <juberti@google.com> wrote:
>
>> Can you make a proposal for what you'd like to see here? My view is that
>> DTMF is a special case already, so the most pragmatic approach is a special
>> case DTMF API.
>>
>
> DTMF is somewhat a special case due to fast payload switching. So, it
> might need its own specific API.
>
> What I was thinking is something a long the line of
> sendCodecCommand(payloadType, JSONObject). In case of DTMF the JSON object
> should have digitString and digitDuration parameters (maybe more, but this
> is up for the group to decide if we want to specify pause duration and
> volume). Having a CODEC specific command is helpful, since this will allow
> control of codec specific options that can be changed without offer/answer,
> such as encoder complexity or enabling decoder post processing filters,
> without polluting the API.
>

Since my proposal caused some confusion I wanted to clarify it a bit. I do
want WebRTC to support RFC 4733. What I meant in the previous email was
that it might be be better to implement payload specific type features
through some sort of generic codec control API. So, instead of using
sendDTMF command on peer connection, we could do
sendCodecCommand('telephone-event', 'digitstring: "1234"') to implement the
same thing. This will also be useful for other codecs like
sendCodecCommand('ilbc', 'enhancer: true') or sendCodecCommand('silk',
'red: true, redPercent:10') without defining a new ilbc or silk specific
API.
_____________
Roman Shpount