aboutsummaryrefslogtreecommitdiffstats
path: root/formats/format_g726.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-08 18:00:16 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-08 18:00:16 +0000
commit084197df39e3ebd29a88e8bef0a16141b8f32423 (patch)
tree4d17dd655c71395da6e0a73ed5fc84e347ac6f97 /formats/format_g726.c
parent8bfdf4873b216dc0704d94c21d8a479b19786d7a (diff)
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: http://svn.digium.com/svn/asterisk/trunk@233692 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'formats/format_g726.c')
-rw-r--r--formats/format_g726.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/formats/format_g726.c b/formats/format_g726.c
index 4394328fb..d519fa46d 100644
--- a/formats/format_g726.c
+++ b/formats/format_g726.c
@@ -258,4 +258,8 @@ static int unload_module(void)
return(0);
}
-AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "Raw G.726 (16/24/32/40kbps) data");
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_LOAD_ORDER, "Raw G.726 (16/24/32/40kbps) data",
+ .load = load_module,
+ .unload = unload_module,
+ .load_pri = 10,
+);