Codebase list asterisk-opus / c4427e7
Merge remote-tracking branch 'origin/asterisk-13.3' into asterisk-13.7 Alexander Traud 7 years ago
2 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
44 * [Asterisk 11](https://github.com/seanbright/asterisk-opus/tree/asterisk-11)
55 * [Asterisk 12](https://github.com/seanbright/asterisk-opus/tree/asterisk-12)
66
7 Since Opus and VP8 cannot, as of now, be integrated into the main Asterisk repositories (learn why [in this thread](http://lists.digium.com/pipermail/asterisk-dev/2013-May/060356.html)), we prepared a patch that adds support for both codecs (Opus transcoding, VP8 passthrough) to [Asterisk 13 SVN](http://svn.digium.com/view/asterisk/branches/13/):
7 Since Opus and VP8 cannot, as of now, be integrated into the main Asterisk repositories (learn why [in this thread](http://lists.digium.com/pipermail/asterisk-dev/2013-May/060356.html)), we prepared a patch that adds support for both codecs (Opus transcoding, VP8 passthrough) to [Asterisk 13 from Git](https://github.com/asterisk/asterisk):
88
9 svn checkout http://svn.digium.com/svn/asterisk/branches/13/ asterisk-13-svn
9 git clone -b 13 https://github.com/asterisk/asterisk.git asterisk-13-git
1010
1111 ## Installing the patch
1212 To support Opus, you'll need to install [libopus](http://www.opus-codec.org/downloads/) first. No library is needed for VP8, as its support is passthrough only.
1313
14 The patch was built on top of Asterisk 13 SVN r431089: applying it on different versions may or may not work out of the box, but solving conflicts shouldn't be too hard anyway:
14 The patch was built on top of Asterisk 13 from Git: applying it on different versions may or may not work out of the box, but solving conflicts shouldn't be too hard anyway:
1515
16 cd asterisk-13-svn
16 cd asterisk-13-git
1717 cp /path/to/asterisk-opus/codecs/* codecs/
1818 cp /path/to/asterisk-opus/formats/* formats/
1919 patch -p1 < /path/to/asterisk-opus/asterisk.patch
525525
526526 /* Translators */
527527 static struct ast_translator opustolin = {
528 .table_cost = AST_TRANS_COST_LY_LL_ORIGSAMP,
528529 .name = "opustolin",
529530 .src_codec = {
530531 .name = "opus",
548549 };
549550
550551 static struct ast_translator lintoopus = {
552 .table_cost = AST_TRANS_COST_LL_LY_ORIGSAMP,
551553 .name = "lintoopus",
552554 .src_codec = {
553555 .name = "slin",
571573 };
572574
573575 static struct ast_translator opustolin12 = {
576 .table_cost = AST_TRANS_COST_LY_LL_ORIGSAMP - 1,
574577 .name = "opustolin12",
575578 .src_codec = {
576579 .name = "opus",
594597 };
595598
596599 static struct ast_translator lin12toopus = {
600 .table_cost = AST_TRANS_COST_LL_LY_ORIGSAMP - 1,
597601 .name = "lin12toopus",
598602 .src_codec = {
599603 .name = "slin",
616620 };
617621
618622 static struct ast_translator opustolin16 = {
623 .table_cost = AST_TRANS_COST_LY_LL_ORIGSAMP - 2,
619624 .name = "opustolin16",
620625 .src_codec = {
621626 .name = "opus",
639644 };
640645
641646 static struct ast_translator lin16toopus = {
647 .table_cost = AST_TRANS_COST_LL_LY_ORIGSAMP - 2,
642648 .name = "lin16toopus",
643649 .src_codec = {
644650 .name = "slin",
662668 };
663669
664670 static struct ast_translator opustolin24 = {
671 .table_cost = AST_TRANS_COST_LY_LL_ORIGSAMP - 4,
665672 .name = "opustolin24",
666673 .src_codec = {
667674 .name = "opus",
685692 };
686693
687694 static struct ast_translator lin24toopus = {
695 .table_cost = AST_TRANS_COST_LL_LY_ORIGSAMP - 4,
688696 .name = "lin24toopus",
689697 .src_codec = {
690698 .name = "slin",
707715 };
708716
709717 static struct ast_translator opustolin48 = {
718 .table_cost = AST_TRANS_COST_LY_LL_ORIGSAMP - 8,
710719 .name = "opustolin48",
711720 .src_codec = {
712721 .name = "opus",
730739 };
731740
732741 static struct ast_translator lin48toopus = {
742 .table_cost = AST_TRANS_COST_LL_LY_ORIGSAMP - 8,
733743 .name = "lin48toopus",
734744 .src_codec = {
735745 .name = "slin",