<p>Kevin Harwell <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/12792">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_mwi: add better handling of solicited vs unsolicited subscriptions<br><br>res_pjsip_mwi allows both solicited and unsolicited MWI subscription types.<br>While both can be set in the configuration for a given endpoint/aor, only<br>one is allowed. Precedence is given to unsolicited. Meaning if an endpoint/aor<br>is configured to allow both types then the solicited subscription is rejected<br>when it comes in. However, there is a configuration option to override that<br>behavior:<br><br>mwi_subscribe_replaces_unsolicited<br><br>When set to "yes" then when a solicited subscription comes in instead of<br>rejecting it Asterisk is suppose to replace the unsolicited one if it exists.<br>Prior to this patch there was a bug in Asterisk that allowed the solicted one<br>to be added, but did not remove the unsolicited. As a matter of fact a new<br>unsolicited subscription got added everytime a SIP register was received.<br>Over time this eventually could "flood" a phone with SIP notifies.<br><br>This patch fixes that behavior to now make it work as expected. If configured<br>to do so a solicited subscription now properly replaces the unsolicited one.<br>As well when an unsubscribe is received the unsolicited subscription is<br>restored. Logic was also put in to handle reloads, and any configuration changes<br>that might result from that. For instance, if a solicited subscription had<br>previously replaced an unsolicited one, but after reload it was configured to<br>not allow that then the solicited one needs to be shutdown, and the unsolicited<br>one added.<br><br>ASTERISK-28488<br><br>Change-Id: Iec2ec12d9431097e97ed5f37119963aee41af7b1<br>---<br>M res/res_pjsip_mwi.c<br>1 file changed, 236 insertions(+), 39 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/92/12792/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12792">change 12792</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/+/12792"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 17 </div>
<div style="display:none"> Gerrit-Change-Id: Iec2ec12d9431097e97ed5f37119963aee41af7b1 </div>
<div style="display:none"> Gerrit-Change-Number: 12792 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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-MessageType: newpatchset </div>