]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Update support for SILK format. 36/3136/4
authorMark Michelson <mmichelson@digium.com>
Thu, 30 Jun 2016 20:58:53 +0000 (15:58 -0500)
committerMark Michelson <mmichelson@digium.com>
Thu, 14 Jul 2016 20:54:21 +0000 (15:54 -0500)
commit28501051b47e6bb8968bb016abf0b3493c05fa21
tree3d7f0e5fbe9f46e37e3033f7dbc44736e42a32ac
parent43a78100c0e51117e7e5c91ed2800c772f767f8a
Update support for SILK format.

This commit adds scaffolding in order to support the SILK audio format
on calls. Roughly, this is what is added:

* Cached silk formats. One for each possible sample rate.
* ast_codec structures for each possible sample rate.
* RTP payload mappings for "SILK".

In addition, this change overhauls the res_format_attr_silk file in the
following ways:

* The "samplerate" attribute is scrapped. That's native to the format.
* There are far more checks to ensure that attributes have been
  allocated before attempting to reference them.
* We do not SDP fmtp lines for attributes set to 0.

These changes make way to be able to install a codec_silk module and
have it actually work. It also should allow for passthrough silk calls
in Asterisk.

Change-Id: Ieeb39c95a9fecc9246bcfd3c45a6c9b51c59380e
include/asterisk/format_cache.h
main/codec_builtin.c
main/format_cache.c
main/rtp_engine.c
res/res_format_attr_silk.c