[asterisk-dev] Dynamic Payloads

Kevin Harwell kharwell at digium.com
Wed Mar 15 11:07:20 CDT 2017


Greetings,

Currently, and for the most part, dynamic payload types in Asterisk are
statically declared. This of course is not ideal. Because of that, I have
been working on an issue [1] that makes it so Asterisk no longer statically
declares dynamic payload types, but instead allocates them per RTP instance
as formats are needed.

Due to the nature of the changes I've put in an option that can turn this
behavior 'on' or 'off'. In Asterisk 14 it will default to 'off' meaning
dynamic payload type handling will retain the current behavior (statically
declared). However, in the master branch (what will become Asterisk 15) the
behavior will default to 'on'.

There is one question that merits some discussion though with regards to
the new way of handling the dynamic payloads. Even with a configuration
option available what do people think about having the dynamic payload
types default to the old number originally specified in Asterisk?

So in this case instead of using the first unused dynamic payload number
found it would attempt to use the old number Asterisk used to use when
statically declaring them.

Is there any advantage to falling back to those numbers as defaults for a
given format? Would it lessen the chance of this being a potential breaking
change for people (with the option of course people can always fall back to
the way things used to work if need be)?

[1] https://issues.asterisk.org/jira/browse/ASTERISK-26515

-- 

Kevin Harwell
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20170315/4e8d9ac3/attachment.html>


More information about the asterisk-dev mailing list