<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/10525">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Corey Farrell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">modules.conf.sample: Update preload usage documentation.<br><br>Change-Id: Id449d4435c38148b56ac4cfd61ae4d90ac66bb90<br>---<br>M configs/samples/modules.conf.sample<br>1 file changed, 12 insertions(+), 12 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configs/samples/modules.conf.sample b/configs/samples/modules.conf.sample</span><br><span>index 179e9ef..c6c0dbc 100644</span><br><span>--- a/configs/samples/modules.conf.sample</span><br><span>+++ b/configs/samples/modules.conf.sample</span><br><span>@@ -8,26 +8,26 @@</span><br><span> autoload=yes</span><br><span> ;</span><br><span> ; Any modules that need to be loaded before the Asterisk core has been</span><br><span style="color: hsl(0, 100%, 40%);">-; initialized (just after the logger has been initialized) can be loaded</span><br><span style="color: hsl(0, 100%, 40%);">-; using 'preload'. This will frequently be needed if you wish to map all</span><br><span style="color: hsl(0, 100%, 40%);">-; module configuration files into Realtime storage, since the Realtime</span><br><span style="color: hsl(0, 100%, 40%);">-; driver will need to be loaded before the modules using those configuration</span><br><span style="color: hsl(0, 100%, 40%);">-; files are initialized.</span><br><span style="color: hsl(120, 100%, 40%);">+; initialized (just after the logger initialization) can be loaded</span><br><span style="color: hsl(120, 100%, 40%);">+; using 'preload'.  'preload' forces a module and the modules it</span><br><span style="color: hsl(120, 100%, 40%);">+; is known to depend upon to be loaded earlier than they normally get</span><br><span style="color: hsl(120, 100%, 40%);">+; loaded.</span><br><span> ;</span><br><span style="color: hsl(0, 100%, 40%);">-; An example of loading ODBC support would be:</span><br><span style="color: hsl(0, 100%, 40%);">-;preload => res_odbc.so</span><br><span style="color: hsl(0, 100%, 40%);">-;preload => res_config_odbc.so</span><br><span style="color: hsl(120, 100%, 40%);">+; NOTE: There is no good reason left to use 'preload' anymore.  It was</span><br><span style="color: hsl(120, 100%, 40%);">+; historically required to preload realtime driver modules so you could</span><br><span style="color: hsl(120, 100%, 40%);">+; map Asterisk core configuration files to Realtime storage.</span><br><span style="color: hsl(120, 100%, 40%);">+; This is no longer needed.</span><br><span> ;</span><br><span style="color: hsl(0, 100%, 40%);">-; Uncomment the following if you wish to use the Speech Recognition API</span><br><span style="color: hsl(0, 100%, 40%);">-;preload => res_speech.so</span><br><span style="color: hsl(120, 100%, 40%);">+;preload => your_special_module.so</span><br><span> ;</span><br><span> ; If you want Asterisk to fail if a module does not load, then use</span><br><span> ; the "require" keyword. Asterisk will exit with a status code of 2</span><br><span> ; if a required module does not load.</span><br><span> ;</span><br><span style="color: hsl(0, 100%, 40%);">-; require = chan_sip.so</span><br><span style="color: hsl(120, 100%, 40%);">+; require = chan_pjsip.so</span><br><span style="color: hsl(120, 100%, 40%);">+;</span><br><span> ; If you want you can combine with preload</span><br><span style="color: hsl(0, 100%, 40%);">-; preload-require = res_odbc.so</span><br><span style="color: hsl(120, 100%, 40%);">+; preload-require = your_special_module.so</span><br><span> ;</span><br><span> ;load => res_musiconhold.so</span><br><span> ;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10525">change 10525</a>. To unsubscribe, or for help writing mail filters, 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/10525"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Id449d4435c38148b56ac4cfd61ae4d90ac66bb90 </div>
<div style="display:none"> Gerrit-Change-Number: 10525 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>