<p>Kevin Harwell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6833">View Change</a></p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p>(2 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/6833/1/res/res_pjsip_pubsub.c">File res/res_pjsip_pubsub.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6833/1/res/res_pjsip_pubsub.c@5418">Patch Set #1, Line 5418:</a> <code style="font-family:monospace,monospace"> if (ast_sip_register_service(&pubsub_module)) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I'm fairly confident it's safe to move this registration to occur after sor</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">From what I can tell calling this first appears to be okay. Except maybe for the one caveat I'll mention below.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/6833/1/res/res_pjsip_pubsub.c@5428">Patch Set #1, Line 5428:</a> <code style="font-family:monospace,monospace">   pjsip_evsub_init_module(ast_sip_get_pjsip_endpoint());</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">After looking into your other question (I took a peek at the pjsip source) I noticed a call to pjsip_evsub_init_module can return failure. For instance if it fails to register its own module. I know we were not doing it before, but we probably want to check this functions return as well.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe put it just before or after ast_sip_register_service (before teh call to shutdown_ref)? Or check them in the same "if"?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6833">change 6833</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/6833"/><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: Iee900f20bdd6ee1bfe23efdec0d87765eadce8a7 </div>
<div style="display:none"> Gerrit-Change-Number: 6833 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </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: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 19 Oct 2017 14:50:33 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>