<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8052">View Change</a></p><p>Patch set 3:</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not sure how much we care.</p><p style="white-space: pre-wrap; word-wrap: break-word;">This patch eliminates the ability to load modules that are in<br>subdirectories of ast_config_AST_MODULE_DIR.  The previous code<br>would add matching directories to the completion list:</p><p style="white-space: pre-wrap; word-wrap: break-word;">chan_pjsip.so<br>subdir_modules/<br>chan_iax2.so</p><p style="white-space: pre-wrap; word-wrap: break-word;">Then if you selected subdir_modules/ completion would search the<br>subdir_module directory.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If you selected a file in subdir_modules the resource name loaded<br>would be:<br>subdir_modules/my_module.so</p><p style="white-space: pre-wrap; word-wrap: break-word;">The only way to load the modules in the subdirectory is to<br>explicitly request them in modules.conf "load = subdir_modules/my_module.so"<br>or explicitly via cli that we are filling in completion for in this<br>patch.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Worth note, loading with absolute directories never worked. load_dynamic_module always prepends ast_config_AST_MODULE_DIR to the resource name.  So only relative paths are supported.  I think your example my_module.so would need to be compiled with:<br>#define AST_MODULE "subdir_modules/my_module"</p><p style="white-space: pre-wrap; word-wrap: break-word;">Otherwise you would get inconsistent use of subdir_modules/my_module vs just my_module.  Either way we're not actual eliminating the ability to load those modules, just the ability to list them in 'module load' completion.</p><p style="white-space: pre-wrap; word-wrap: break-word;">My vote is for this patch to remain as is.  I can change it if someone says they do care.</p><ul style="list-style: none; padding-left: 20px;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8052">change 8052</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/8052"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I8bf51ffaa7ef1606f3bd1b5bb13f1905d72c6134 </div>
<div style="display:none"> Gerrit-Change-Number: 8052 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 27 Jan 2018 01:29:28 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>