1 diff -dur asterisk-13.7.2.orig/main/codec_builtin.c asterisk-13.7.2/main/codec_builtin.c
2 --- asterisk-13.7.2.orig/main/codec_builtin.c 2016-02-05 21:32:40.000000000 +0100
3 +++ asterisk-13.7.2/main/codec_builtin.c 2016-03-09 11:55:44.000000000 +0100
5 #include "asterisk/format_cache.h"
6 #include "asterisk/frame.h"
8 +#include <opus/opus.h>
14 .get_length = g719_length,
17 +static int opus_samples(struct ast_frame *frame)
19 + return opus_packet_get_nb_samples(frame->data.ptr, frame->datalen, 48000);
22 static struct ast_codec opus = {
24 .description = "Opus Codec",
29 + .samples_count = opus_samples,
32 static struct ast_codec jpeg = {
33 diff -dur asterisk-13.7.2.orig/main/Makefile asterisk-13.7.2/main/Makefile
34 --- asterisk-13.7.2.orig/main/Makefile 2016-03-09 11:53:45.000000000 +0100
35 +++ asterisk-13.7.2/main/Makefile 2016-03-09 11:55:44.000000000 +0100
37 AST_LIBS+=$(URIPARSER_LIB)
39 AST_LIBS+=$(CRYPT_LIB)
40 +AST_LIBS+=$(OPUS_LIB)
41 AST_LIBS+=$(AST_CLANG_BLOCKS_LIBS)
43 ifneq ($(findstring $(OSARCH), linux-gnu linux-gnux32 uclinux linux-uclibc kfreebsd-gnu),)
45 bucket.o: _ASTCFLAGS+=$(URIPARSER_INCLUDE)
46 crypt.o: _ASTCFLAGS+=$(CRYPT_INCLUDE)
47 uuid.o: _ASTCFLAGS+=$(UUID_INCLUDE)
48 +codec_builtin.o: _ASTCFLAGS+=$(OPUS_INCLUDE)
50 ifneq ($(findstring ENABLE_UPLOADS,$(MENUSELECT_CFLAGS)),)
51 http.o: _ASTCFLAGS+=$(GMIME_INCLUDE)