[Asterisk-code-review] res parking: Make load pri explicit. (asterisk[13])

Corey Farrell asteriskteam at digium.com
Mon Nov 20 13:20:16 CST 2017


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/7312


Change subject: res_parking: Make load_pri explicit.
......................................................................

res_parking: Make load_pri explicit.

I'm unsure this is correct but res_parking has a load_pri of 0, meaning
it's one of the very first modules loaded after modules with global
symbols.  I suspect it should be AST_MODPRI_CHANNEL_DEPEND but for now
just update the code to make it clear the priority is 0, not
AST_MODPRI_DEFAULT.

Change-Id: I297b6fb3ff6993ec004e667b22a74f5925906259
---
M res/res_parking.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/12/7312/1

diff --git a/res/res_parking.c b/res/res_parking.c
index fbe256c..593134b 100644
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -1300,4 +1300,5 @@
 	.load = load_module,
 	.unload = unload_module,
 	.reload = reload_module,
+	.load_pri = 0,
 );

-- 
To view, visit https://gerrit.asterisk.org/7312
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I297b6fb3ff6993ec004e667b22a74f5925906259
Gerrit-Change-Number: 7312
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171120/e340a8e6/attachment.html>


More information about the asterisk-code-review mailing list