<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/12791">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/12791/1/res/res_pjsip_mwi.c">File res/res_pjsip_mwi.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/12791/1/res/res_pjsip_mwi.c@725">Patch Set #1, Line 725:</a> <code style="font-family:monospace,monospace">        * an unsolicited subscription for any of them.</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Since we have endpoint, can't we just get the list of mailboxes from it?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12791/1/res/res_pjsip_mwi.c@841">Patch Set #1, Line 841:</a> <code style="font-family:monospace,monospace">static int is_solicited_allowed(struct ast_sip_endpoint *endpoint, const char *mailbox)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Does this also need to check that the mailbox is configured in any of the endpoint's aors?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12791/1/res/res_pjsip_mwi.c@892">Patch Set #1, Line 892:</a> <code style="font-family:monospace,monospace">static int is_unsolicited_allowed(struct ast_sip_endpoint *endpoint, const char *mailbox)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Does this also need to check that the mailbox is actually currently configured in endpoint->subscription.mwi.mailboxes?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12791/1/res/res_pjsip_mwi.c@967">Patch Set #1, Line 967:</a> <code style="font-family:monospace,monospace">       ao2_lock(unsolicited_mwi);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">A full lock of the container seems like overkill on the off chance a reload is taking place.  How about making the container lock an RW lock so you only need a read lock here?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12791">change 12791</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/c/asterisk/+/12791"/><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-Change-Id: Iec2ec12d9431097e97ed5f37119963aee41af7b1 </div>
<div style="display:none"> Gerrit-Change-Number: 12791 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 26 Aug 2019 12:38:04 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>