[Asterisk-code-review] res rtp asterisk.c: Add conditional module dependency to res... (asterisk[16])

Richard Mudgett asteriskteam at digium.com
Wed Oct 17 16:13:38 CDT 2018


Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/10499


Change subject: res_rtp_asterisk.c: Add conditional module dependency to res_pjproject
......................................................................

res_rtp_asterisk.c: Add conditional module dependency to res_pjproject

* The dependency ensures that res_pjproject cannot be manually unloaded
before res_rtp_asterisk.
* The dependency allows startup loading errors to report that
res_rtp_asterisk depends upon res_pjproject.

Change-Id: Icf5e7581f4ddd6189929f6174c74dd951f887377
---
M res/res_rtp_asterisk.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/99/10499/1

diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 4b2a138..465f9bc 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -8330,4 +8330,7 @@
 	.unload = unload_module,
 	.reload = reload_module,
 	.load_pri = AST_MODPRI_CHANNEL_DEPEND,
+#ifdef HAVE_PJPROJECT
+	.requires = "res_pjproject",
+#endif
 );

-- 
To view, visit https://gerrit.asterisk.org/10499
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icf5e7581f4ddd6189929f6174c74dd951f887377
Gerrit-Change-Number: 10499
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181017/2ec3cc26/attachment.html>


More information about the asterisk-code-review mailing list