<p><a href="https://gerrit.asterisk.org/10510">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/10510/1/funcs/func_callerid.c">File funcs/func_callerid.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10510/1/funcs/func_callerid.c@a166">Patch Set #1, Line 166:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">IIRC this was the *only* place these enum values were ever documented.  They now need to be documented in the other places where the presentation enum values are accessed.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10510/1/funcs/func_callerid.c@1742">Patch Set #1, Line 1742:</a> <code style="font-family:monospace,monospace">     return res;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">It would be better if this function always returned 0.  It is rather silly to complain about trying to unregister a function that wasn't registered.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10510/1/funcs/func_callerid.c@1759">Patch Set #1, Line 1759:</a> <code style="font-family:monospace,monospace">       return res ? AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Heh.  If we decline we need to call unload_module() to unregister any successfully registered functions.  Otherwise we couldn't load the module again.  Or do anything else with the module until we restart asterisk.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10510">change 10510</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/10510"/><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: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia1b2b386505b3102136dab02c45eaaf09f0f89c5 </div>
<div style="display:none"> Gerrit-Change-Number: 10510 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 18 Oct 2018 20:58:35 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>