Set a module load priority for format modules.
authorRussell Bryant <russell@russellbryant.com>
Tue, 8 Dec 2009 18:00:16 +0000 (18:00 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 8 Dec 2009 18:00:16 +0000 (18:00 +0000)
commit8ab22f5dd04eb9c38deec9f9fef2086897d33080
tree4d17dd655c71395da6e0a73ed5fc84e347ac6f97
parent2cc499708ce12825f618bd16ce5e885ab0a66cfd
Set a module load priority for format modules.

A recent change to app_voicemail made it such that the module now assumes that
all format modules are available while processing voicemail configuration.
However, when autoloading modules, it was possible that app_voicemail was
loaded before the format modules.  Since format modules don't depend on
anything, set a module load priority on them to ensure that they get loaded
first when autoloading.

This fix applies to trunk, 1.6.1, and 1.6.2.  The fix for 1.4 and 1.6.0 will
require a different approach since the module load priority functionality is
not present in the module API.

(issue #16412)
Reported by: jiddings

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
17 files changed:
formats/format_g723.c
formats/format_g726.c
formats/format_g729.c
formats/format_gsm.c
formats/format_h263.c
formats/format_h264.c
formats/format_ilbc.c
formats/format_jpeg.c
formats/format_ogg_vorbis.c
formats/format_pcm.c
formats/format_siren14.c
formats/format_siren7.c
formats/format_sln.c
formats/format_sln16.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c