diff options
author | Mark Spencer <markster@digium.com> | 2003-04-28 01:13:19 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-04-28 01:13:19 +0000 |
commit | 29ac09a2aa1b75ae9e11c14da944f840f37a0735 (patch) | |
tree | a658737825ee5a175bc1c415cd61baea9cd128aa /rtp.c | |
parent | 59488458b0ef186f8f779eb4e636e33cfd21ebc1 (diff) |
Fix CNG issues in G.723.1
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-x | rtp.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -33,9 +33,10 @@ #include <asterisk/acl.h> #include <asterisk/channel_pvt.h> -#define TYPE_SILENCE 0x2 #define TYPE_HIGH 0x0 #define TYPE_LOW 0x1 +#define TYPE_SILENCE 0x2 +#define TYPE_DONTSEND 0x3 #define TYPE_MASK 0x3 static int dtmftimeout = 300; /* 300 samples */ @@ -88,7 +89,9 @@ int ast_rtp_fd(struct ast_rtp *rtp) static int g723_len(unsigned char buf) { switch(buf & TYPE_MASK) { - case TYPE_MASK: + case TYPE_DONTSEND: + return 0; + break; case TYPE_SILENCE: return 4; break; |