<?xml version="1.0" encoding="UTF-8"?><?rfc linefile="1:/tmp/CGI24820.1"?><?rfc linefile="1:/tmp/CGI24820.1"?><?rfc linefile="1:/tmp/CGI16700.1"?><?rfc linefile="1:/tmp/CGI16700.1"?><?rfc linefile="1:/tmp/CGI20613.1"?><?rfc linefile="1:/tmp/CGI20613.1"?> <?xml version="1.0" encoding="US-ASCII" ?>
<!-- automatically generated by xml2rfc v1.32 on 2008-02-02T00:00:00Z -->
<!-- automatically generated by xml2rfc v1.32 on 2008-02-01T23:59:59Z -->
<!-- automatically generated by xml2rfc v1.32 on 2008-02-01T02:03:02Z -->
<!-- automatically generated by xml2rfc v1.32 on 2008-02-01T02:03:02Z -->
<!-- automatically generated by xml2rfc v1.32 on 2008-02-01T01:44:46Z -->
<!-- automatically generated by xml2rfc v1.32 on 2008-02-01T01:44:46Z -->
 <?rfc rfcedstyle="yes"?>
 <?rfc subcompact="no"?>
 <?rfc symrefs="no"?>
 <?rfc toc="yes"?>
 <!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<rfc number="5188" category="std" updates="4788"> 

    <front>
        <title abbrev='EVRC-WB RTP Payload Format' >RTP Payload Format for Enhanced Variable Rate Wideband Codec (EVRC-WB) and Media Subtype Updates for EVRC-B Codec</title>
        <author initials='H.D.' surname='Desineni'
            fullname='Harikishan Desineni'>
         <organization>Qualcomm</organization>
    <address>
    <postal>
        <street>5775 Morehouse Drive</street>
          <city>San Diego</city> <region>CA</region>
        <code>92126</code>
        <country>USA</country>
    </postal>
    <phone>+1 858 845 8996</phone>
    <email>hd@qualcomm.com</email>
    <uri>http://www.qualcomm.com</uri>
   </address>
  </author>
  
          <author initials='Q.X.' surname='Xie'
            fullname='Qiaobing Xie'>
         <organization>Motorola</organization>
    <address>
    <postal>
        <street>1501 W. Shure Drive, 2-F9 </street>
          <city>Arlington Heights</city> <region>IL</region>
        <code> 60004</code>
        <country>USA</country>
    </postal>
    <phone>+1-847-632-3028</phone>
    <email>Qiaobing.Xie@Motorola.com</email>
    <uri>http://www.motorola.com</uri>
   </address>
   </author>
    <date month='February' year='2008' />
    <keyword>EVRCWB</keyword>
     <abstract>
<t>This document specifies Real-time Transport Protocol (RTP) payload formats to be used for the Enhanced Variable Rate Wideband Codec (EVRC-WB) and updates the media type registrations for EVRC-B codec. Several media type registrations are included for EVRC-WB RTP payload formats. In addition, a file format is specified for transport of EVRC-WB speech data in storage mode applications such as email.
</t>
    </abstract>
    </front>
    <middle>
    <section title="Introduction" toc="default">
 <t>This document specifies the payload formats for packetization of EVRC-WB encoded speech signals into the Real-time Transport Protocol (RTP). It defines support for the header-free, interleaved/bundled, and compact bundle packet formats for the EVRC-WB codec as well as discontinuous transmission (DTX) support for EVRC-WB encoded speech transported via RTP. The EVRC-WB codec offers better speech quality than the EVRC and EVRC-B codecs. EVRC-WB belongs to the EVRC family of codecs. This document also updates the media type registrations for the EVRC-B codec.<t>

</t></t>

 </section>
 <section title="Conventions" toc="default">
 <t>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 <xref target="RFC2119" />.
 </t>
 </section>
 <section title="Background" toc="default">

<t>
EVRC-WB is a wideband extension of the EVRC-B <xref target="evrcb" />
speech codec developed in the Third Generation Partnership Project 2 (3GPP2) with support for discontinuous transmission (DTX). It provides enhanced (wideband) voice quality.
</t>
<t>
The EVRC-WB codec operates on 20-ms frames, and the default sampling
rate is 16 kHz. Input and output at an 8-kHz sampling rate are also
supported. The EVRC-WB codec can operate in three modes (0, 4, and 7)
defined in <xref target="evrcwb" />. EVRC-WB modes 4 and 7 are
interoperable with EVRC-B. EVRC-WB mode 4 uses full-rate, 1/2-rate, and
1/8-rate frames. EVRC-WB mode 7 uses only 1/2 rate and 1/8 rate
frames. Mode change results in codec output bit-rate change but do not
cause any decoding problems at the receiver. For successful decoding,
the decoder does not need to know the encoder's current mode of
operation. EVRC-WB provides a standardized solution for packetized
voice applications that allow transitions between narrowband and
wideband telephony. The most important service addressed is IP
telephony. Target devices can be IP phones or Voice over IP (VoIP) handsets, media gateways, voice messaging servers, etc.
</t>
</section>
<section title='EVRC-WB Codec' anchor="frtab">
<t>
The EVRC-WB codec operates on 20-ms frames. It produces output frames
of one of the three different sizes: 171 bits, 80 bits, or 16 bits. In
addition, there are two zero-bit codec frame types: blank (null)
frames and erasure frames. The default sampling rate is 16 kHz. Input
and output at an 8-kHz sampling rate are also supported.
</t>
<t>
The frame type values and sizes of the associated codec data frames are listed in the table below:
</t>
<artwork>
 Value   Rate      Total codec data frame size in bytes (and in bits)
 --------------------------------------------------------------------
     0     Blank      0     (0 bit)
     1     1/8        2    (16 bits)
     2     1/4        5    (40 bits)
     3     1/2       10    (80 bits)
     4     1         22    (171 bits; 5 bits padded at the end)
     5     Erasure    0    (SHOULD NOT be transmitted by sender)

</artwork>
</section>

<section title="RTP Header Usage" toc="default" anchor="rtphdr">
<t>
The format of the RTP header is specified in RFC 3550 <xref target="RFC3550" />.
The EVRC-WB payload formats (<xref target="pfmt" />) use the fields of the 
RTP header in a manner consistent with RFC 3550 <xref target="RFC3550" />.
</t>
<t>
EVRC-WB also has the capability to operate with 8-kHz sampled
input/output signals. The decoder does not require a priori knowledge
about the sampling rate of the original signal at the input of the
encoder. The decoder output can be at 8 kHz or 16 kHz regardless of
the sampling rate used at the encoder. Therefore, depending on the
implementation and the electro acoustic audio capabilities of the
devices, the input of the encoder and/or the output of the decoder can
be configured at 8 kHz; however, a 16-kHz RTP clock rate MUST always
be used. The RTP timestamp is increased by 320 for each 20
milliseconds. 
</t>
<t>
The RTP header marker bit (M) SHALL be set to 1 if the first frame carried in the packet contains a speech frame that is the first in a talkspurt.  For all other packets, the marker bit SHALL be
   set to zero (M=0).
</t>
     
</section>
   <section title="Payload Format" toc="default" anchor="pfmt">
   <t>
Three RTP packet formats are supported for the EVRC-WB codec -- the interleaved/bundled packet format, the header-free packet format, and the compact bundled packet format. For all these formats, the operational details and capabilities,  such as ToC, interleaving, DTX, and bundling, of EVRC-WB are exactly the same as those of EVRC-B, as defined in <xref target="rtpevrcb" />, except that the mode change request field in the ToC MUST be interpreted according to the definition of the RATE_REDUC parameter as defined in EVRC-WB <xref target="evrcwb" />. The media type audio/EVRCWB maps to the interleaved/bundled packet format, audio/EVRCWB0 maps to the header-free packet format, and audio/EVRCWB1 maps to the compact bundled packet format. 
   </t>
<!-- [rfced] Please provide the correct expansion of ToC. -->
   </section>
      <section title="Congestion Control Considerations" toc="default">
   <t>
Congestion control for RTP SHALL be used in accordance with RFC 3550
   <xref target="RFC3550" />, and with any applicable RTP profile, e.g., RFC 3551
   <xref target="RFC3551" />.</t>

   <t>
 Due to the header overhead, the number of frames encapsulated in each RTP packet influences the
 overall bandwidth of the RTP stream. Packing more frames in each RTP packet can reduce the number of
 packets sent and hence the header overhead, at the expense of increased delay and reduced error robustness.
   </t>
   </section>

   <section title="Storage Format for the EVRC-WB Codec" toc="default" anchor="storage">
    <t>
    The storage format is used for storing EVRC-WB encoded speech frames,
   e.g., as a file or email attachment.
    </t>
    <t>
   The file begins with a magic number to identify the vocoder that is
   used.  The magic number for EVRC-WB corresponds to the ASCII character
   string "#!EVCWB\n", i.e., "0x23 0x21 0x45 0x56 0x43 0x57 0x42 0x0A".</t>
   <t>
   The codec data frames are stored in consecutive order, with a single
   ToC entry field, extended to one octet, prefixing each codec data
   frame.  The ToC field is extended to one octet by setting the four
   most significant bits of the octet to zero. For example, a ToC value
   of 4 (a full-rate frame) is stored as 0x04. See <xref target="frtab" />
   for the mapping from frame type to ToC value.
   </t>
   
   <t>
   Speech frames lost in transmission and non-received frames MUST be
   stored as erasure frames (ToC value of 5) to maintain synchronization with the
   original media.
   </t>
   
</section>
   
<section title="IANA Considerations" anchor="reg">
<t>
This document updates the audio/EVRCB and audio/EVRCB0 media types defined in RFC 4788 <xref target="rtpevrcb" /> and adds new EVRC-WB 'audio' media subtypes.
</t>

<section title="Media Type Registrations">
<t>
Following the guidelines in RFC 4855 <xref target="RFC4855" /> and RFC 4288 <xref target="RFC4288" />, this section registers new 'audio' media subtypes for EVRC-WB and updates the audio/EVRCB and audio/EVRCB0 media type registrations contained in RFC 4788 <xref target="rtpevrcb" />.
</t>

<section title="Registration of Media Type audio/EVRCWB">
<t>
   Type name: audio
</t>
<t>
   Subtype name: EVRCWB
   </t>
  <t>
   Required parameters: None
  </t>
  <t>
  Optional parameters:
  </t>
  <t> These parameters apply to RTP transfer only.</t>
   <t>
 mode-set-recv: A subset of EVRC-WB modes. Possible values are a comma-separated list of modes from the set {0,4,7} (see Table 2.5.1.2-1 in 3GPP2 C.S0014-C). A decoder can use this attribute to inform an encoder of its preference to operate in a specified subset of modes. Absence of this parameter signals the mode set {0,4,7}. 
  </t>

<t>
  sendmode: A mode of the EVRC-WB codec. An encoder can use this to signal its current
  mode of operation. Possible values are 0,4,7 (see Table 2.5.1.2-1 in 3GPP2 C.S0014-C).
  Absence of this parameter signals mode 0.
  
  </t>
   <t>
   ptime: See RFC 4566.
   </t>
   <t>
    maxptime: See RFC 4566.
    </t>
    <t>
      maxinterleave: Maximum number for interleaving length (field LLL
         in the Interleaving Octet)[0..7].  The interleaving lengths used in
         the entire session MUST NOT exceed this maximum value. If not
         signaled, the maxinterleave length MUST be 5.
     </t>
     <t>
      silencesupp: See Section 6.1 in RFC 4788.
     </t>
     <t>
      dtxmax: See Section 6.1 in RFC 4788.
     </t>
     <t>
      dtxmin: See Section 6.1 in RFC 4788.
     </t>
      <t>
      hangover: See Section 6.1 in RFC 4788.
       </t>
       <t>
   Encoding considerations:
           </t>
               <t>
      This media type is framed binary data (see RFC 4288, Section 4.8)
      and is defined for transfer of EVRC-WB encoded data via RTP using
      the interleaved/bundled packet format specified in RFC 3558.
     </t>
     <t>
   Security considerations: See <xref target="secu" /> of RFC 5188.
    </t>
    <t>
   Interoperability considerations: None
    </t>
    <t>
   Published specification:     </t>     <t>
      The EVRC-WB vocoder is specified in 3GPP2 C.S0014-C. The transfer
      method with the interleaved/bundled packet format via RTP is specified
      in RFC 3558 and RFC 5188.
    </t>
        <t> 3GPP2 C.S0050-B, 3GPP2 File Formats for Multimedia Services.
    </t>
    <t> 3GPP2 specifications are publicly accessible at http://www.3gpp2.org </t>

    <t>
   Applications that use this media type:     </t>     <t>
      It is expected that many VoIP applications (as well as mobile
      applications) will use this type.
    </t>
    <t>
   Additional information: </t> <t>
      The following applies to stored-file transfer methods:
    </t>    <t>
      Magic number: #!EVCWB\n (see <xref target="storage" /> of RFC 5188)    </t>
      <t>
      File extensions: evw, EVW </t>
      <t>
      Macintosh file type code: None </t>
      <t>
      Object identifier or OID: None
      </t>
      <t>
       EVRC-WB speech frames may also be stored in the file format
       "3g2" defined in 3GPP2 C.S0050-B, which is identified using
       the media types "audio/3gpp2" or "video/3gpp2" registered
       by RFC 4393.
      </t>

<t>
   Person &amp; email address to contact for further information: </t>
<t>      Harikishan Desineni &lt;hd@qualcomm.com&gt; </t>
  <t>
   Intended usage: COMMON
   </t>
   <t>
   Restrictions on usage: </t> <t>
   When this media type is used in the context of transfer over RTP, the RTP
    payload format specified in Section 4.1 of RFC 3558 SHALL be used. In all other contexts,
     the file format defined in Section 8 of RFC 5188 SHALL be used.
   </t>
   <t>
   Author: </t>
   <t>
      Harikishan Desineni </t>
>
   <t>
   Change controller: </t>
<t>   IETF Audio/Video Transport working group delegated from the IESG.
      </t>

</section>

<section title="Registration of Media Type audio/EVRCWB0">
<t>
   Type name: audio
</t>
<t>
   Subtype name: EVRCWB0
   </t>
  <t>
   Required parameters:
  </t>
<!-- [rfced] should this be "Required parameters: None" or is there something else missing? -->  

 <t>
   Optional parameters:
   </t>
     <t> These parameters apply to RTP transfer only.</t>
  <t>
   mode-set-recv: A subset of EVRC-WB modes. Possible values are a comma-separated list of modes from the set {0,4,7} (see Table 2.5.1.2-1 in 3GPP2 C.S0014-C). A decoder can use this attribute to inform an encoder of its preference to operate in a specified subset of modes. Absence of this parameter signals the mode set {0,4,7}.
  </t>
  
  <t>
  sendmode: A mode of the EVRC-WB codec. An encoder can use this to signal its current
  mode of operation. Possible values are 0,4,7 (see Table 2.5.1.2-1 in 3GPP2 C.S0014-C).
  Absence of this parameter signals mode 0.
</t>
  
 <t>
   ptime: See RFC 4566.
   </t>
     <t>
      silencesupp: See Section 6.1 in RFC 4788.
     </t>
     <t>
      dtxmax: See Section 6.1 in RFC 4788.
     </t>
     <t>
      dtxmin: See Section 6.1 in RFC 4788.
     </t>
      <t>
      hangover: See Section 6.1 in RFC 4788.
       </t>
       <t>
   Encoding considerations:
           </t>
               <t>
      This media type is framed binary data (see RFC 4288, Section 4.8)
      and is defined for transfer of EVRC-WB encoded data via RTP using
      the header-free packet format specified in RFC 3558.
     </t>
     <t>
   Security considerations: See <xref target="secu" /> of RFC 5188.
    </t>
    <t>
   Interoperability considerations: None
    </t>
    <t>
   Published specification:     </t>     <t>
      The EVRC-WB vocoder is specified in 3GPP2 C.S0014-C. The transfer
      method with the header-free packet format via RTP is specified
      in RFC 3558 and RFC 5188.
    </t>
        <t> 3GPP2 C.S0050-B, 3GPP2 File Formats for Multimedia Services.
    </t>
    <t> 3GPP2 specifications are publicly accessible at http://www.3gpp2.org </t>

    <t>
   Applications that use this media type:     </t>     <t>
      It is expected that many VoIP applications (as well as mobile
      applications) will use this type.
    </t>
    <t>
   Additional information: None</t> 
      
    <t>
   Person &amp; email address to contact for further information: </t>
<t>      Harikishan Desineni &lt;hd@qualcomm.com&gt; </t>
  <t>
   Intended usage: COMMON
   </t>
   <t>
   Restrictions on usage: </t> <t>
        This media type depends on RTP framing and hence is only defined for
   transfer via RTP [6]; the RTP payload format specified in
   Section 4.2 of RFC 3558 SHALL be used. This media type SHALL NOT be
   used for storage or file transfer using the file format defined in
   Section 8 of RFC 5188; instead, audio/EVRCWB SHALL be used.
 </t>
   <t>
   Author: </t>
   <t>
      Harikishan Desineni </t>
>
   <t>
   Change controller: </t>
<t>   IETF Audio/Video Transport working group delegated from the IESG.
      </t>

</section>

<section title="Registration of Media Type audio/EVRCWB1">
<t>
   Type name: audio
</t>
<t>
   Subtype name: EVRCWB1
   </t>
  <t>
   Required parameters:
  </t>
<!-- [rfced] should this be "Required parameters: None" or is there something else missing? -->     
<t>
   Optional parameters:
   </t>
     <t> These parameters apply to RTP transfer only.</t>
    <t>
   mode-set-recv: A subset of EVRC-WB modes. Possible values are a
   comma-separated list of modes from the set {0,4,7} (see Table
   2.5.1.2-1 in 3GPP2 C.S0014-C). A decoder can use this attribute to
   inform an encoder of its preference to operate in a specified
   subset of modes. A value of 0 signals the support for wideband
   fixed rate (full or half rate, depending on the value of the 'fixedrate' parameter). A value of 4 signals narrowband fixed full rate. A value of 7 signals narrowband fixed half rate. Absence of this parameter signals mode 0.
      </t>
  <t>
  sendmode: A mode of the EVRC-WB codec. An encoder can use this to signal its current
  mode of operation. Possible values are 0,4,7 (see Table 2.5.1.2-1 in 3GPP2 C.S0014-C).      'sendmode' with value 0 signals wideband fixed-rate operation (full or half rate, depending on the value of the 'fixedrate' parameter).
  'sendmode' with value 4 signals narrowband fixed full-rate operation. 'sendmode' 
  with value 7 signals narrowband fixed half-rate operation. The 'fixedrate' parameter
  MUST NOT be present when the 'sendmode' value is 4 or 7. Absence of this parameter signals mode 0.
   </t>
   <t>
   ptime: See RFC 4566.
   </t>
   <t>
     maxptime: See RFC 4566.
      </t>
      <t>
      fixedrate: Indicates the EVRC-WB rate of the session while in
         single-rate operation. Valid values include 0.5 and 1, where
         a value of 0.5 indicates the 1/2 rate while a value of 1
         indicates the full rate. If this parameter is not present, 1/2
         rate is assumed.
       </t>

     <t>
      silencesupp: See Section 6.1 in RFC 4788.
     </t>
     <t>
      dtxmax: See Section 6.1 in RFC 4788.
     </t>
     <t>
      dtxmin: See Section 6.1 in RFC 4788.
     </t>
      <t>
      hangover: See Section 6.1 in RFC 4788.
       </t>
      <t>
   Encoding considerations:
      </t>
      <t>
      This media type is framed binary data (see RFC 4288, Section 4.8)
      and is defined for transfer of EVRC-WB encoded data via RTP using
      the compact bundle packet format specified in RFC 4788.
     </t>
     <t>
   Security considerations: See <xref target="secu" /> of RFC 5188.
    </t>
    <t>
   Interoperability considerations: None
    </t>
    <t>
   Published specification:     </t>     <t>
      The EVRC-WB vocoder is specified in 3GPP2 C.S0014-C. The transfer method with
      the compact bundled packet format via RTP is specified in RFC 4788
      and RFC 5188.
    </t>
    <t> 3GPP2 C.S0050-B, 3GPP2 File Formats for Multimedia Services.
    </t>
    <t> 3GPP2 specifications are publicly accessible at http://www.3gpp2.org </t>
    <t>
   Applications that use this media type:     </t>     <t>
      It is expected that many VoIP applications (as well as mobile
      applications) will use this type.
    </t>
    <t>
   Additional information: None</t>  
<t>
   Person &amp; email address to contact for further information: </t>
<t>      Harikishan Desineni &lt;hd@qualcomm.com&gt; </t>
  <t>
   Intended usage: COMMON
   </t>
   <t>
   Restrictions on usage: </t> <t>
        This media type depends on RTP framing and hence is only defined for
   transfer via RTP [6]; the RTP payload format specified in
   Section 4 of RFC 4788 SHALL be used. This media type SHALL NOT be
   used for storage or file transfer using the file format defined in
   Section 8 of RFC 5188; instead, audio/EVRCWB SHALL be used.
</t>
   <t>
   Author: </t>
   <t>
      Harikishan Desineni </t>
   <t>
   Change controller: </t>
<t>   IETF Audio/Video Transport working group delegated from the IESG.
      </t>

</section>

<section title="Updated Registration of Media Type audio/EVRCB" anchor="evbud">
<t>
    Type name: audio
</t>
<t>
    Subtype name: EVRCB
</t>
<t>
    Required parameters: None
</t>

<t>
    Optional parameters:
</t>
<t> These parameters apply to RTP transfer only.</t>
<t> recvmode: A mode of the EVRC-B codec. A decoder can use this attribute to inform an encoder of its preference to operate in a specified mode. Possible values are 0..7 (see the encoder operating point column in Table 2-6 of 3GPP2 C.S0014-B).
</t>
<t>
  sendmode: A mode of the EVRC-B codec. An encoder can use this to signal its current
  mode of operation. Possible values are 0..7 (see encoder operating point column in Table 2-6 of 3GPP2 C.S0014-B).

</t>
<t>
ptime: See RFC 4566.
</t>
<t>
maxptime: See RFC 4566.
</t>

<t>
maxinterleave: Maximum number for interleaving length (field LLL in the
Interleaving Octet). The interleaving lengths used in the entire session
MUST NOT exceed this maximum value. If not signaled, the maxinterleave length MUST be 5.

</t>
<t> silencesupp: See Section 6.1 of RFC 4788 for a definition. If this parameter is
    not present, the default value 1 MUST be assumed.
</t>
<t>
    dtxmax: See Section 6.1 of RFC 4788.
</t>
<t>
    dtxmin: See Section 6.1 of RFC 4788.
</t>
<t>
    hangover: See Section 6.1 of RFC 4788.
</t>
<t>
   Encoding considerations:
</t>
<t>   This media type is framed binary data (see RFC 4288, Section 4.8)
      and is defined for transfer of EVRC-B encoded data via RTP using
      the interleaved/bundled packet format specified in RFC 3558.
</t>
<t>
   Security considerations: See Section 9 of RFC 4788.
</t>
<t>
   Interoperability considerations: None
</t>
<t>
   Published specification:
</t>
<t>
      The EVRC-B vocoder is specified in 3GPP2 C.S0014-B. The transfer
      method with the interleaved/bundled packet format via RTP is specified in RFC
      3558, RFC 4788, and RFC 5188.
</t>

<t>
 Applications that use this media type:
</t>
<t>
      It is expected that many VoIP applications (as well as mobile
      applications) will use this type.
</t>
<t>
   Additional information:
      The following information applies for the storage format only.
      <t>
      Magic number: #!EVRC-B\n (see Section 5 of RFC 4788)
      </t>
      <t>
      File extensions: evb, EVB
      </t>
      <t>
      Macintosh file type code: None
      </t>
      <t>
      Object identifier or OID: None
      </t>
</t>
<t>
   Person &amp; email address to contact for further information:
</t>
<t>
      Harikishan Desineni &lt;hd@qualcomm.com&gt;
 </t>
 <t>
 Intended usage: COMMON
 </t>
<t>
   Restrictions on usage:
</t>
<t>
    When this media type is used in the context of transfer over RTP, the RTP
    payload format specified in Section 4.1 of RFC 3558 SHALL be used. In all other contexts,
     the file format defined in Section 5 of RFC 4788 SHALL be used.
</t>
<t>
   Author:
</t>
<t>
      Qiaobing Xie / Harikishan Desineni
</t>
<t>
   Change controller:
</t>
<t>
      IETF Audio/Video Transport working group delegated from the IESG.
</t>

</section>

<section title="Updated Registration of Media Type audio/EVRCB0" anchor="evbud0">
<t>
Type name: audio
</t>
<t>
Subtype name: EVRCB0
</t>
<t>
Required parameters: None
</t>
<t>
   Optional parameters:
</t>
<t> These parameters apply to RTP transfer only.</t>

<t> recvmode: A mode of the EVRC-B codec. A decoder can use this attribute to inform an encoder of its preference to operate in a specified mode. Possible values are 0..7 (see the encoder operating point column in Table 2-6 of 3GPP2 C.S0014-B).
</t>
<t>
  sendmode: A mode of the EVRC-B codec. An encoder can use this to signal its current
  mode of operation. Possible values are 0..7 (see the encoder operating point column in Table 2-6 of 3GPP2 C.S0014-B).
</t>

<t> silencesupp: See Section 6.1 of RFC 4788 for a definition. If this parameter is
    not present, the default value 1 MUST be assumed.
</t>
<t>
    dtxmax: see Section 6.1 of RFC 4788.
</t>
<t>
    dtxmin: see Section 6.1 of RFC 4788.
</t>
<t>
    hangover: see Section 6.1 of RFC 4788.
</t>
<t>
   Encoding considerations:
</t>
<t>   This media type is framed binary data (see RFC 4288, Section 4.8)
      and is defined for transfer of EVRC-B encoded data via RTP using
      the header-free packet format specified in RFC 3558.
</t>
<t>
   Security considerations: See Section 9 of RFC 4788.
</t>
<t>
   Interoperability considerations: None
</t>
<t>
   Published specification:
</t>
<t>
      The EVRC-B vocoder is specified in 3GPP2 C.S0014-B. The transfer
      method with the header-free packet format via RTP is specified in RFC
      3558, RFC 4788, and RFC 5188.
</t>

<t>
 Applications that use this media type:
</t>
<t>
      It is expected that many VoIP applications (as well as mobile
      applications) will use this type.
</t>
<t>
   Additional information: None
</t>
<t>
   Person &amp; email address to contact for further information:
</t>
<t>
      Harikishan Desineni &lt;hd@qualcomm.com&gt;
 </t>
 <t>
 Intended usage: COMMON
 </t>
<t>
   Restrictions on usage:
</t>
<t>
   When this media type is used in the context of transfer over RTP, the
   RTP payload format specified in Section 4.2 of RFC 3558 SHALL be
   used.
</t>
<t>
This media type depends on RTP framing and hence is only defined for
   transfer via RTP [6]; the RTP payload format specified in
   Section 4.2 of RFC 3558 SHALL be used. This media type SHALL NOT be
   used for storage or file transfer using the file format defined in
   Section 5 of RFC 4788; instead, audio/EVRCB SHALL be used.

</t>
<t>
   Author:
</t>
<t>
      Qiaobing Xie / Harikishan Desineni
</t>
<t>
   Change controller:
</t>
<t>
      IETF Audio/Video Transport working group delegated from the IESG.
</t>
</section>
</section>
</section>

<section title="SDP Mode Attributes for EVRC-WB and EVRC-B"  anchor="">
<t>
'sendmode' can be used by a sender (EVRC-WB or EVRC-B) to announce its encoder's current mode of operation. A sender can change its mode anytime, and this does not cause any decoding problems at the receiver.
</t>
<t>
'recvmode' is defined for use with EVRC-B. A decoder can use this attribute to inform an encoder of its preference to operate in a specified mode. The receiver will continue to decode properly even if the sender does not operate in the preferred mode.
</t>
<t>
'mode-set-recv' is defined for use with EVRC-WB. A decoder can use this attribute to inform an encoder of its preference to operate in a specified subset of modes. The receiver will continue to decode properly even if the sender does not operate in one of the preferred modes. A set has been defined so that several modes can be expressed as a preference in one attempt. For instance, the set {4,7} signals that the receiver prefers the sender to operate in narrowband modes of EVRC-WB.
</t>
</section>


<section title="EVRC-B Interoperability with Legacy Implementations (RFC 4788)"
toc="default" anchor="bwc2" >
<t>
This document adds new optional parameters "recvmode" and "sendmode" to the original EVRC-B
media types "audio/EVRCB" and "audio/EVRCB0" defined in RFC 4788 <xref target="rtpevrcb" />. Existing RFC 4788 <xref target="rtpevrcb" /> implementations
will not send these parameters in the Session Description Protocol (SDP) and will ignore them if they are received. This will
allow interoperability between RFC 4788 <xref target="rtpevrcb" /> and RFC 5188 implementations of EVRC-B.
For an example offer-and-answer exchange, see <xref target="ex" />.
</t>
</section>




<section title="Mapping EVRC-WB Media Type Parameters into SDP" anchor="mime">
<t>
Information carried in the media type specification has a
   specific mapping to fields in the Session Description Protocol (SDP)
   <xref target="RFC4566" />, which is commonly used to describe RTP sessions. When SDP is
   used to specify sessions employing EVRC-WB encoded speech, the mapping is as follows.
</t>

<list style="symbols">

<t>
The media type ("audio") goes in SDP "m=" as the media name.
</t>
 <t>
     The media subtype ("EVRCWB", "EVRCWB0", or "EVRCWB1") goes in SDP "a=rtpmap" as the encoding name.
   </t>
  
    <t>
     The optional parameters 'ptime' and 'maxptime' (for subtypes EVRCWB,
      EVRCWB1) go in the SDP "a=ptime" and "a=maxptime"
      attributes, respectively. </t>

      <t>
   Any remaining parameters (for subtypes EVRCWB, EVRCWB0, and EVRCWB1) go
   in the SDP "a=fmtp" attribute by copying them from the media type string as a semicolon-separated list of parameter=value pairs.
   </t>
</list>
</section>
<section title="Mapping EVRC-B Media Type Parameters into SDP" anchor="bmime">

<t>The new optional parameters 'recvmode' and 'sendmode' (for 'audio' subtypes
  EVRCB and EVRCB0) go in the SDP "a=fmtp" attribute by copying them
  directly from the media type string.
  
</t>
<t> For all other media type parameters, the specification in Section 6.7 of RFC 4788 <xref target="rtpevrcb"/> still applies.
</t>
</section>

<section title="Offer-Answer Model Considerations for EVRC-WB" anchor="oa">
<t>
The following considerations apply when using the SDP offer-answer procedures of RFC 3264 <xref target="RFC3264"/> to negotiate the use of EVRC-WB payload in RTP:
</t>
<list style="symbols">
<t>
Since EVRC-WB is an extension of EVRC-B, the offerer SHOULD announce EVRC-B support in its "m=audio" line, with EVRC-WB as the preferred codec. This will allow interoperability with an answerer that supports only EVRC-B.

<artwork>
Below is an example of such an offer:

       m=audio 55954 RTP/AVP 98 99
       a=rtpmap:98 EVRCWB0/16000
       a=rtpmap:99 EVRCB0/8000
       a=fmtp:98 mode-set-recv=0,4;sendmode=0
       a=fmtp:99 recvmode=0 sendmode=4
</artwork>



      If the answerer supports EVRC-WB, then the answerer can keep the payload type 98
      in its answer and the conversation can be done using EVRC-WB.
      Else, if the answerer supports only EVRC-B, then the answerer will leave only the
      payload type 99 in its answer and the conversation will be done using EVRC-B.

<artwork>
An example answer for the above offer is the following:

       m=audio 55954 RTP/AVP 98
       a=rtpmap:98 EVRCWB0/16000
       a=fmtp:98 mode-set-recv=4;sendmode=4
</artwork>
</t>
<t>
'mode-set-recv' is a unidirectional receive-only parameter.
</t>
<t>'sendmode' is a unidirectional send-only parameter.
</t>
<t>
Using 'sendmode', a sender can signal its current mode of operation. Note that a
receiver may receive RTP media well before the arrival of SDP with a (first-time, or updated) 'sendmode' parameter.

</t>
<t>
An offerer can use 'mode-set-recv' to request that the remote sender's encoder
be limited to the list of modes signaled in 'mode-set-recv'. A remote sender
MAY ignore 'mode-set-recv' requests.
</t>

<t>
The parameters 'maxptime' and 'ptime' will in most cases
             not affect interoperability; however, the setting of the
             parameters can affect the performance of the application.
             The SDP offer-answer handling of the 'ptime' parameter is
             described in RFC 3264 <xref target="RFC3264" />. The 'maxptime' parameter MUST be handled in the same way.

</t>

<t>
For a sendonly stream, the 'mode-set-recv' parameter is not useful and SHOULD NOT be used.
</t>
<t>
For a recvonly stream, the 'sendmode' parameter is not useful and SHOULD NOT be used.
</t>
<t>
When using EVRCWB1, the entire session MUST use the same fixed
rate and mode (0-Wideband or 4,7-Narrowband).
</t>
<t>
For additional rules that MUST be followed while negotiating DTX parameters, see Section 6.8 in <xref target="rtpevrcb" />.
</t>

<t>
Any unknown parameter in an SDP offer MUST be ignored by the receiver and MUST NOT
be included in the SDP answer.
</t>
</list>

</section>
<section title="Offer-Answer Model Considerations for EVRC-B" anchor="oa1">
<t> See Section 6.8 of <xref target="rtpevrcb" /> for offer-answer usage of EVRC-B.
The following are several additional considerations for EVRC-B.
</t>
<list style="symbols">
<t>'recvmode' is a unidirectional receive-only parameter.
</t>
<t>'sendmode' is a unidirectional send-only parameter.
</t>

<t> Using 'recvmode', a receiver can signal the remote sender to operate its encoder in
 the specified mode. A remote sender MAY ignore 'recvmode' requests.
</t>
<t>
Using 'sendmode', a sender can signal its current mode of operation. Note that a
receiver may receive RTP media well before the arrival of SDP with a
(first-time, or updated) 'sendmode' parameter.
</t>
<t>
For a sendonly stream, the 'recvmode' parameter is not useful and SHOULD NOT be used.
</t>
<t>
For a recvonly stream, the 'sendmode' parameter is not useful and SHOULD NOT be used.
</t>

</list>
</section>

<section title="Declarative SDP Considerations" anchor="ds">
<t>
For declarative use of SDP in the Session Announcement Protocol (SAP)
<xref target="sap" /> and the Real Time Streaming Protocol (RTSP) <xref target="rtsp" />, the following considerations apply:
</t>

<list style="symbols">

<t>
Any 'maxptime' and 'ptime' values should be selected with care to
       ensure that the session's participants can achieve reasonable
       performance.

</t>
<t>
The payload format configuration parameters are all declarative, and a participant MUST use the configuration(s) that is provided for the session. More than one configuration may be provided if necessary by
declaring multiple RTP payload types; however, the number of types should be kept
small. For declarative examples, see <xref target="ex" />.
</t>
</list>
</section>
<section title="Examples" anchor="ex">
<t>
Some example SDP session descriptions utilizing EVRC-WB and EVRC-B
encodings follow. In these examples, long a=fmtp lines are folded
to meet the column width constraints of this document. The backslash
("\") at the end of a line and the carriage return that follows it
should be ignored. Note that media subtype names are case-insensitive. Parameter
names are case-insensitive both in media types and in the mapping to the SDP
a=fmtp attribute.
</t>

<t>
<artwork>
  Example usage of EVRCWB:

     m=audio 49120 RTP/AVP 97 98
     a=rtpmap:97 EVRCWB/16000
     a=rtpmap:98 EVRCB0/8000
     a=fmtp:97 mode-set-recv=0,4;sendmode=0
     a=fmtp:98 recvmode=0 sendmode=0
     a=maxptime:120

     </artwork>
</t>
 <t>
 <artwork>
  Example usage of EVRCWB0:

     m=audio 49120 RTP/AVP 97 98
     a=rtpmap:97 EVRCWB0/16000
     a=rtpmap:98 EVRCB0/8000
     a=fmtp:97 mode-set-recv=0,4;sendmode=0
     a=fmtp:98 recvmode=0 sendmode=0

          </artwork>
 </t>

  <t>
 <artwork>
  Example SDP answer from a media gateway requesting a terminal to
  limit its encoder operation to EVRC-WB mode 4:

     m=audio 49120 RTP/AVP 97
     a=rtpmap:97 EVRCWB0/16000
     a=fmtp:97 mode-set-recv=4;sendmode=4
          </artwork>
 </t>


 <t>
 <artwork>
  Example usage of EVRCWB1:

    m=audio 49120 RTP/AVP 97 98
    a=rtpmap:97 EVRCWB1/16000
    a=fmtp:97 mode-set-recv=4;sendmode=4
    a=maxptime:100

     </artwork>
 </t>

 <t>
  <artwork>
  Example usage of EVRCWB with DTX with silencesupp=1:

     m=audio 49120 RTP/AVP 97 98
     a=rtpmap:97 EVRCWB/16000
     a=rtpmap:98 EVRCB0/8000
     a=fmtp:97 silencesupp=1;dtxmax=32;dtxmin=12;hangover=1 \
     mode-set-recv=0,4; sendmode=0
     a=fmtp:98 recvmode=0 sendmode=0
     a=maxptime:120
              </artwork>
 </t>

 <t>
   <artwork>
  Example usage of EVRCWB with DTX with silencesupp=0:

     m=audio 49120 RTP/AVP 97 98
     a=rtpmap:97 EVRCWB/16000
     a=rtpmap:98 EVRCB0/8000
     a=fmtp:97 silencesupp=0;dtxmax=32;dtxmin=12;hangover=1 \
     mode-set-recv=0,4;sendmode=0
     a=fmtp:98 recvmode=0 sendmode=0
     a=maxptime:120
          </artwork>
 </t>
 <t>
<artwork>
  Example usage of EVRCB:

     m=audio 49120 RTP/AVP 97
     a=rtpmap:97 EVRCB/8000
     a=fmtp:97 recvmode=0 sendmode=4
     a=maxptime:120
     </artwork>
</t>

<t>
<artwork>
  Example usage of EVRCB0:

     m=audio 49120 RTP/AVP 97
     a=rtpmap:97 EVRCB0/8000
     a=fmtp:97 recvmode=0 sendmode=4
     </artwork>
</t>

<t>
<artwork>
  Example offer-answer exchange between EVRC-WB and
  legacy EVRC-B (RFC 4788):

   Offer:

     m=audio 55954 RTP/AVP 98 99
     a=rtpmap:98 EVRCWB0/16000
     a=rtpmap:99 EVRCB0/8000
     a=fmtp:98 mode-set-recv=0,4;sendmode=0
     a=fmtp:99 recvmode=0 sendmode=0

   Answer:

     m=audio 55954 RTP/AVP 99
     a=rtpmap:99 EVRCB0/8000

     </artwork>
</t>


<t>
<artwork>

  Example offer-answer exchange between EVRC-WB and
  updated EVRC-B (RFC 5188):

   Offer:

     m=audio 55954 RTP/AVP 98 99
     a=rtpmap:98 EVRCWB0/16000
     a=rtpmap:99 EVRCB0/8000
     a=fmtp:98 mode-set-recv=0,4; sendmode=0
     a=fmtp:99 recvmode=0 sendmode=0

   Answer:

     m=audio 55954 RTP/AVP 99
     a=rtpmap:99 EVRCB0/8000
     a=fmtp:99 recvmode=0 sendmode=4

  In the above example, note that the answerer has chosen
  to send in mode 4 even though the offerer was willing to
  receive in mode 0. 'recvmode' is a receiver's preference,
  but the sender can send in a different mode.
     </artwork>
</t>


<t>
<artwork>

  Example offer-answer exchanges for interoperability between
  legacy (RFC 4788) and updated EVRC-B (RFC 5188) implementations:

     Offer from an offerer that supports updated EVRC-B (RFC 5188)
     implementation:

       m=audio 55954 RTP/AVP 99
       a=rtpmap:99 EVRCB0/8000
       a=fmtp:99 recvmode=0 sendmode=4

     Answer from an answerer that supports only
     legacy EVRC-B (RFC 4788) implementation:

       m=audio 55954 RTP/AVP 99
       a=rtpmap:99 EVRCB0/8000

     Offer from an offerer that supports only
     legacy EVRC-B (RFC 4788) implementation:

       m=audio 55954 RTP/AVP  99
       a=rtpmap:99 EVRCB0/8000

     Answer from an answerer that supports updated
     EVRC-B (RFC 5188) implementation:

       m=audio 55954 RTP/AVP 99
       a=rtpmap:99 EVRCB0/8000
       a=fmtp:99 recvmode=0 sendmode=4

   </artwork> 
   
</t>
</section>

<section title="Security Considerations" anchor="secu">
<t>
Since compression is applied to the payload formats end-to-end, and the encodings do not exhibit significant non-uniformity, implementations of this specification are subject to all the security considerations specified in RFC 3558 <xref target="RFC3558" />. Implementations using the payload defined in this specification are subject to the security considerations discussed in RFC 3558 <xref target="RFC3558" />, RFC 3550 <xref target="RFC3550" />, and any appropriate profile (for example, RFC 3551 <xref target="RFC3551" />).
</t>
</section>

<section title="Changes to RFC 4788" anchor="chgs">
<t>This document updates RFC 4788 <xref target="rtpevrcb" />, and the updates are summarized below: </t>
<list style="symbols">
<t>
Added new media type attribute "sendmode" to media subtypes EVRCB and EVRCB0.
This attribute can be used to signal the EVRC-B encoder's current mode of operation.
</t>
<t>
Added new media type attribute "recvmode" to media subtypes EVRCB and EVRCB0.
This attribute can be used to signal the EVRC-B decoder's preferred operating mode to a remote sender.
</t>
</list>
</section>


 </middle>
    <back>
    <references title="Normative References">
     <reference anchor="RFC2119">
        <front>
            <title>Key words for use in RFCs to Indicate
            Requirement Levels
            </title>
            <author initials='S.B' surname='Bradner'
                    fullname='Bradner Scott'>
            </author>
            <date month='March' year='1997' />
        </front>
        <seriesInfo name='BCP' value='14'/>
        <seriesInfo name='RFC' value='2119' />
     </reference>
     
         <reference anchor="RFC3558">
        <front>
            <title>RTP Payload Format for Enhanced Variable Rate Codecs (EVRC)
                   and Selectable Mode Vocoders (SMV)
            </title>
            <author initials='A' surname='Li'
                    fullname='Adam H Li '>
            </author>
            <date month='July' year='2003' />
        </front>
        <seriesInfo name='RFC' value='3558' />
     </reference>
     
     
                  
    <reference anchor="rtpevrcb">
        <front>
            <title> Enhancements to RTP Payload Formats for EVRC Family Codecs
            </title>
            <author initials='Q' surname='Xie'
                    fullname='Qiaobing Xie'>
            </author>
            <author initials='R.K' surname='Kapoor'>
            </author>
            <date month='January' year='2007' />
        </front>
        <seriesInfo name='RFC' value='4788' />
     </reference>
                   
                   
   
      <reference anchor="evrcb">
        <front>
            <title>Enhanced Variable Rate Codec, Speech Service Option 3 and 68 for Wideband Spread Spectrum Digital Systems
            </title>
              <date month='May' year='2006' />
        </front>
         <seriesInfo name='3GPP2 C.S0014-B v1.0' value='' />

     </reference>
     
           <reference anchor="evrcwb">
        <front>
            <title>Enhanced Variable Rate Codec, Speech Service Option 3,68 and 70 for Wideband Spread Spectrum Digital Systems
            </title>
              <date month='October' year='2006' />
        </front>
         <seriesInfo name='3GPP2 C.S0014-C v1.0' value='' />

     </reference>

       <reference anchor="RFC3550">
        <front>
            <title>RTP: A Transport Protocol for Real-Time
            Applications
            </title>
            <author initials='H.S' surname='Schulzrinne'
                    fullname='Henning Schulzrinne '>
            </author>
            <author initials='S.C' surname='Casner'>
            </author>
            <author initials='R.F' surname='Frederick'>
            </author>
            <author initials='V.J' surname='Jacobson'>
            </author>
            <date month='March' year='1997' />
        </front>
        <seriesInfo name='STD' value='64'/>
        <seriesInfo name='RFC' value='3550' />
     </reference>
     
      <reference anchor="RFC3264">
        <front>
            <title>An Offer/Answer Model
            with Session Description Protocol (SDP)
            </title>
            <author initials='J.R' surname='Rosenberg'
                    fullname='Jonathan Rosenberg '>
            </author>
            <author initials='H.S' surname='Schulzrinne'>
            </author>
            <date month='June' year='2002' />
        </front>
        <seriesInfo name='RFC' value='3264' />
     </reference>

        
      <reference anchor="RFC4566">
        <front>
            <title> SDP: Session Description Protocol
            </title>
            <author initials='M.H' surname='Handley'
                    fullname='Handley Mark'>
            </author>
            <author initials='V.J' surname='Jacobson'>
            </author>
            <author initials='C.P' surname='Perkins'>
            </author>
            <date month='July' year='2006' />
        </front>
        <seriesInfo name='RFC' value='4566' />
     </reference>

     <reference anchor="RFC4855">
        <front>
            <title>Media Type Specifications and Registration Procedures
            </title>
            <author initials='S.C' surname='Casner'
                    fullname='Stephen Casner'>
            </author>
            <date month='February' year='2007' />
        </front>
        <seriesInfo name='RFC' value='4855' />
     </reference>

     <reference anchor="RFC4288">
        <front>
            <title>Media Type Specifications and Registration Procedures
            </title>
            <author initials='N.F' surname='Freed'
                    fullname='Ned Freed '>
            </author>
            <author initials='J.K' surname='Klensin'>
            </author> 
            <date month='December' year='2005' />
        </front>
        <seriesInfo name='BCP' value='13'/>
        <seriesInfo name='RFC' value='4288' />
     </reference>
        

    </references>
 <references title="Informative References">
 
 <reference anchor="RFC3551">
        <front>
            <title>RTP Profile for Audio and
            Video Conferences with Minimal Control
            </title>
            <author initials='H.S' surname='Schulzrinne'
                    fullname='Henning Schulzrinne '>
            </author>
            <author initials='S.C' surname='Casner'>
            </author>
            <date month='July' year='2003' />
        </front>
        <seriesInfo name='STD' value='65'/>
        <seriesInfo name='RFC' value='3551' />
     </reference>       
     
<? rfc needLines="10" ?>
     <reference anchor="sap">
        <front>
            <title>Session Announcement Protocol
            </title>
            <author initials='M.H' surname='Handley'
                    fullname='Handley Mark'>
            </author>
            <author initials='C.P' surname='Perkins'>
            </author>
            <author initials='E.W' surname='Whelan'>
            </author>
            <date month='October' year='2000' />
        </front>
        <seriesInfo name='RFC' value='2974' />
     </reference>
     
     <reference anchor="rtsp">
        <front>
            <title>Real Time Streaming Protocol (RTSP)
            </title>
            <author initials='H.S' surname='Schulzrinne'
                    fullname='Henning Schulzrinne'>
            </author>
            <author initials='A.R' surname='Rao'>
            </author>
            <author initials='R.L' surname='Lanphier'>
            </author>
            <date month='April' year='1998' />
        </front>
        <seriesInfo name='RFC' value='2326' />
     </reference>

     
     
 </references>
  </back>
 </rfc>



