diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-01 23:08:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-01 23:08:28 +0000 |
commit | 349efdfade7dc782690e9a2c6ffa7fe2f5aa738a (patch) | |
tree | edd9ca95ab75d949336c9d97a0e6e7b7afb8f29c /channels | |
parent | 3b8f849d9f21ea6521b111063f330e463492de91 (diff) |
Merged revisions 101989 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r101989 | russell | 2008-02-01 17:06:32 -0600 (Fri, 01 Feb 2008) | 5 lines
Change the SDP_SAMPLE_RATE macro. It turns out that even though G.722 is 16 kHz,
it is supposed to specified as 8 kHz in the RTP, and RTP timestamps are supposed
to be calculated based on 8 kHz. (Apparently this is due to a bug in a spec, but
people follow it anyway, because it's the spec ...)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101990 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ee9fb337f..1332a8ef5 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7758,7 +7758,12 @@ static void get_our_media_address(struct sip_pvt *p, int needvideo, } -#define SDP_SAMPLE_RATE(x) (x == AST_FORMAT_G722) ? 16000 : 8000 +/*! + * \note G.722 actually is supposed to specified as 8 kHz, even though it is + * really 16 kHz. Update this macro for other formats as they are added in + * the future. + */ +#define SDP_SAMPLE_RATE(x) 8000 /*! \brief Add Session Description Protocol message |