diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2016-07-19 20:39:38 +0200 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2016-07-22 10:09:08 +0200 |
commit | 8fb807009f2e19349be778fc78be110f72ccc2f8 (patch) | |
tree | 46c2a4a11d15b7c4702a241e36fd32921a8fa2fa /codecs/ex_ilbc.h | |
parent | 943bb48b59435e00131cbd56b075f73f57d10e87 (diff) |
codecs: Add iLBC 20.
Asterisk already supported iLBC 30. This change adds iLBC 20. Now, Asterisk
defaults to iLBC 20 but falls back to iLBC 30, when the remote party requests
this.
ASTERISK-26218 #close
ASTERISK-26221 #close
Reported by: Aaron Meriwether
Change-Id: I07f523a3aa1338bb5217a1bf69c1eeb92adedffa
Diffstat (limited to 'codecs/ex_ilbc.h')
-rw-r--r-- | codecs/ex_ilbc.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/codecs/ex_ilbc.h b/codecs/ex_ilbc.h index 3a79b0918..3fe2749dd 100644 --- a/codecs/ex_ilbc.h +++ b/codecs/ex_ilbc.h @@ -7,6 +7,9 @@ * */ +#include "asterisk/format_cache.h" /* for ast_format_ilbc */ +#include "asterisk/frame.h" /* for ast_frame, etc */ + static uint8_t ex_ilbc[] = { 0xff, 0xa0, 0xff, 0xfa, 0x0f, 0x60, 0x12, 0x11, 0xa2, 0x47, 0x22, 0x8c, 0x00, 0x00, 0x01, 0x02, 0x80, 0x43, 0xa0, 0x40, @@ -20,8 +23,8 @@ static struct ast_frame *ilbc_sample(void) static struct ast_frame f = { .frametype = AST_FRAME_VOICE, .datalen = sizeof(ex_ilbc), - /* All frames are 30 ms long */ - .samples = ILBC_SAMPLES, + /* example frames are default long (30 ms) */ + .samples = 240, .mallocd = 0, .offset = 0, .src = __PRETTY_FUNCTION__, |