<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7595">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_hep: hepv3_is_loaded() should check if we are enabled<br><br>res_hep_pjsip.so and res_hep_rtcp.so will still load and do a lot of<br>unnecessary work even if 'enabled' is set to 'no' in hep.conf.<br><br>Change-Id: I3eddfeea09c6b5bc7c641952ee0ae487fd09b64b<br>---<br>M res/res_hep.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/95/7595/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_hep.c b/res/res_hep.c<br>index 25b4d13..ba036d7 100644<br>--- a/res/res_hep.c<br>+++ b/res/res_hep.c<br>@@ -421,7 +421,7 @@<br> {<br> RAII_VAR(struct module_config *, config, ao2_global_obj_ref(global_config), ao2_cleanup);<br> <br>- return (config != NULL) ? 1 : 0;<br>+ return config && config->general->enabled;<br> }<br> <br> struct hepv3_capture_info *hepv3_create_capture_info(const void *payload, size_t len)<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7595">change 7595</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7595"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I3eddfeea09c6b5bc7c641952ee0ae487fd09b64b </div>
<div style="display:none"> Gerrit-Change-Number: 7595 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>