[Freeswitch-users] G722 8000 vs 16000
Anthony Minessale
anthmct at yahoo.com
Tue Mar 20 16:18:29 PDT 2007
I fixed it the best I could (At least for SIP)
The stupid thing here is that there really is an 8khz g722
and the moronic lemmings who would implement the *wideband* version
to say 8000 despite the fact that they *know* it is 16000
and are too stupid to realize should be the ones to suffer not us.
sigh,
I moved actual 8k g722 to payload 109 name G722_8
and put 16k g722 on payload 9 by itself and added a hack to the
sdp generator in mod_sofia to display 8000
This makes my stomach turn but I guess we must do whatever it takes
to preserve stupidity. This makes me wonder if more of the SIP and SDP RFC's are just typo's which would explain a lot....
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale at hotmail.com
JABBER:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400
----- Original Message ----
From: "Sluschny, Thomas" <Thomas.Sluschny at siemens.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Tuesday, March 20, 2007 11:42:17 AM
Subject: [Freeswitch-users] G722 8000 vs 16000
Hi,
i want to use G.722 with its wide audio bandwith of 7kHz.
But i have found that FreeSwitch resamples always from 16000 to 8000
Samples/s if i connect a "standard device", i. e. a SIP device with a
"G722:9/8000" in its SDP.
On the other side it is possible to use full bandwith if there is a
"G722:9/16000" in SDP.
I think this is not correct!
FreeSwitch should always use 16000S/s and also use "G722:9/8000" in SDP!
Read RFC3551, 4.5.2:
...Even though the actual sampling rate for G.722 audio is 16,000 Hz,
the RTP clock rate for the G722 payload format is 8,000 Hz because
that value was erroneously assigned in RFC 1890 and must remain
unchanged for backward compatibility.
...
I tried the 16kHz-implementation with a SIP phone (siemens optipoint 410
with "G722:9/8000") and it seems to work.
In the g722.h file is mentioned that the 8k option is used for fast and
flexible interworking with narrow band telephony. I think this is a
special case (we also support G711 for this). Our default should be
16000S/s and "G722:9/8000".
What do u think?
Thomas
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20070320/524e6b65/attachment-0002.html
More information about the FreeSWITCH-users
mailing list