2 # Copyright (C) 2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=asterisk-opus
13 PKG_SOURCE_URL
:=https
://github.com
/traud
/asterisk-opus.git
14 PKG_SOURCE_DATE
:=2017-10-09
15 PKG_SOURCE_VERSION
:=83e1b458c77e0e287adeca494eeb79edb077b0ff
16 PKG_MIRROR_HASH
:=c71b859db7518cdafff1650e629c5901b290fe68f8af54ef1afd57bc9f15b122
20 PKG_LICENSE_FILES
:=LICENSE
21 PKG_MAINTAINER
:=Jiri Slachta
<jiri@slachta.eu
>
23 include $(INCLUDE_DIR
)/package.mk
26 -DAST_MODULE_SELF_SYM
=__internal_codec_opus_open_source_self \
29 define Package
/asterisk-codec-opus
33 TITLE
:=Opus codec support
34 URL
:=https
://github.com
/traud
/asterisk-opus
35 DEPENDS
:=asterisk
+libopus
38 define Package
/asterisk-codec-opus
/description
39 Opus is the default audio codec in WebRTC. WebRTC is available in
40 Asterisk via SIP over WebSockets
(WSS
). Nevertheless
, Opus can be used
41 for other transports
(UDP
, TCP
, TLS
) as well. Opus supersedes previous
42 codecs like CELT and SiLK. Furthermore
, in favor of Opus
, other
43 open-source audio codecs are no longer developed
, like Speex
, iSAC
,
44 iLBC
, and Siren. If you use your Asterisk
as a back-to-back user agent
45 (B2BUA
) and you transcode between various audio codecs
, one should
46 enable Opus for future compatibility.
48 Opus is not only supported for pass-through but can be transcoded
as
52 define Package
/asterisk-codec-opus
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
/asterisk
/modules
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/codecs
/codec_opus_open_source.so \
55 $(1)/usr
/lib
/asterisk
/modules
58 define Build
/Configure
61 $(eval
$(call BuildPackage
,asterisk-codec-opus
))