<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name="Microsoft Theme 2.00" content="blank 011"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        margin-top:24.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:bold;}
h2
        {mso-style-priority:9;
        mso-style-link:"Heading 2 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:normal;}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:normal;}
h4
        {mso-style-priority:9;
        mso-style-link:"Heading 4 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:normal;}
h5
        {mso-style-priority:9;
        mso-style-link:"Heading 5 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:normal;}
h6
        {mso-style-priority:9;
        mso-style-link:"Heading 6 Char";
        margin-top:10.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        font-weight:normal;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#999999;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#990000;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Arial","sans-serif";
        color:black;
        font-weight:bold;}
span.Heading2Char
        {mso-style-name:"Heading 2 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 2";
        font-family:"Arial","sans-serif";
        color:black;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Arial","sans-serif";
        color:black;}
span.Heading4Char
        {mso-style-name:"Heading 4 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 4";
        font-family:"Arial","sans-serif";
        color:black;}
span.Heading5Char
        {mso-style-name:"Heading 5 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 5";
        font-family:"Arial","sans-serif";
        color:black;}
span.Heading6Char
        {mso-style-name:"Heading 6 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 6";
        font-family:"Arial","sans-serif";
        color:black;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white background="cid:image002.gif@01CCF218.5E178B80" lang=EN-US link="#999999" vlink="#990000"><img src="cid:image002.gif@01CCF218.5E178B80" v:src="cid:image002.gif@01CCF218.5E178B80" v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'><!--[if gte mso 9]><xml>
<v:background id="_x0000_s1025" o:bwmode="white" o:targetscreensize="800,600">
<v:fill src="cid:image002.gif@01CCF218.5E178B80" o:title="blbkgnd" type="frame" />
</v:background></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Think I found my answer&#8230;..<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><p><span lang=EN>G.722 VoIP is typically carried in <a href="http://en.wikipedia.org/wiki/Real-time_Transport_Protocol" title="Real-time Transport Protocol">RTP</a> payload type 9.<sup id="cite_ref-1"><a href="http://en.wikipedia.org/wiki/G.722#cite_note-1"><span style='color:blue'>[2]</span></a></sup> Note that <a href="http://en.wikipedia.org/wiki/Internet_Assigned_Numbers_Authority" title="Internet Assigned Numbers Authority">IANA</a> records the clock rate for type 9 G.722 as 8 kHz (instead of 16 kHz), RFC3551<sup id="cite_ref-2"><a href="http://en.wikipedia.org/wiki/G.722#cite_note-2"><span style='color:blue'>[3]</span></a></sup> clarifies that this is due to a historical error and is retained in order to maintain backward compatibility. Consequently correct implementations represent the value 8,000 where required but encode and decode audio at 16 kHz.<o:p></o:p></span></p><p><span lang=EN>Whilst G.722 allows for bitrates of 64, 56 and 48 kbit/s, in practice, data is encoded at 64 kbit/s, with bits from the lower sub-band being used to encode auxiliary data. The greater the number of bits allocated to aux data, the lower the bit rate.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'>Stephen<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Stephen Dame<br><b>Sent:</b> Thursday, February 23, 2012 10:35 AM<br><b>To:</b> 'FreeSWITCH Users Help'<br><b>Subject:</b> [Freeswitch-users] G722 16k or 8k?<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN>Question on G722,&nbsp;&nbsp; trying to see if the quality of basic g.722 is much better than the standard g729 or g711.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN>Looking at wiki docs.&nbsp; &#8220;G722 - G722 16kHz using default 20ms ptime. (multiples of 10)&#8221;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN>However, when I connect to freeswitch using blink client I see&nbsp; G722/8000?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I thought this would be 16000.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I know when I connect using speex wb, it shows 16000.</span><span style='font-size:11.0pt;color:windowtext'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>2012-02-23 10:20:07.116606 [DEBUG] mod_sofia.c:750 Local SDP sofia/internal/1004@107.XX.XX.XX:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>v=0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>o=FreeSWITCH 1329993171 1329993172 IN IP4 107.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>s=FreeSWITCH<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>c=IN IP4 107.XX.XXX.XXX<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>t=0 0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>m=audio 17236 RTP/AVP 9 101<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:14.0pt;color:windowtext'>a=rtpmap:9 G722/8000<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>a=rtpmap:101 telephone-event/8000<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>a=fmtp:101 0-16<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>a=silenceSupp:off - - - -<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>a=ptime:20<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'>a=sendrecv<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;color:windowtext'>Shouldn&#8217;t this be 16000?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;color:windowtext'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;color:windowtext'>Stephen<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:16.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;color:windowtext'><o:p>&nbsp;</o:p></span></p></div></body></html>