]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Set a module load priority for format modules.
authorRussell Bryant <russell@russellbryant.com>
Wed, 9 Dec 2009 15:14:21 +0000 (15:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 9 Dec 2009 15:14:21 +0000 (15:14 +0000)
commit4dfd9d4800cdd961b4e3b45e3d98aef584b49e2b
tree8ce320876e92387b42556b037f1896f243cc0204
parenta52e3024278286ea3eabb812358a184871fe86be
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 version of the patch is specific to Asterisk 1.4 and 1.6.0.  These versions
did not already support module load priority in the module API.  This adds a
trivial version of this which is just a module flag to include it in a pass before
loading "everything".

Thanks to mmichelson for the review!

(closes issue #16412)
Reported by: jiddings
Tested by: russell

Review: https://reviewboard.asterisk.org/r/445/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@233782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
16 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_sln.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c
include/asterisk/module.h
main/loader.c