<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 22, 2016 at 9:22 AM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On 22 Dec 2016, at 17:14, Matthew Jordan <<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>> wrote:</div><br class="m_503867797432212479Apple-interchange-newline"><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 22, 2016 at 9:32 AM, George Joseph <span dir="ltr"><<a href="mailto:gjoseph@digium.com" target="_blank">gjoseph@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When an incoming registration goes away, either because it expires or it was explicitly expired, what should we do with subscriptions the contact may have?  Right now we do nothing which means that activity for those subscriptions will trigger NOTIFYs which will time out and retry until timer_b expires.  Only then will they be deleted.<div><br></div><div>Should we:</div><div><ul><li>Leave the behavior as is?</li><li>Automatically remove the subscriptions for a contact that has been deleted?</li><li>Create a global option to control auto deletion?</li><li>Create an aor option to control auto deletion?</li></ul><div>Opinions?</div><span class="m_503867797432212479HOEnZb"><font color="#888888"><div><br></div></font></span></div></div></blockquote><div><br></div><div>If an AoR only has dynamic contacts, and those dynamic contacts are no longer valid (or the AoR no longer has any contacts), then at the very least I would think we wouldn't want to send the NOTIFY requests until the AoR has valid contacts. There's certainly no reason to use memory/CPU cycles on something that will never succeed.</div><div><br></div><div>You may or may not want to actually remove the underlying subscription. I could see a scenario in which a phone's REGISTER request goes "missing", and so the registration drops - maybe for just a short period of time. When the new REGISTER request does succeed, the phone may or may not send a new SUBSCRIBE request (which may have a very different timer). If we auto-deleted the underlying subscription, we could have a situation where the phone is re-registered but no longer receives state updates.</div><div><br></div><div>I'll grant the above scenario is pretty unlikely, but it is plausible.</div></div></div></div></div></blockquote><br></div></span><div>Without knowing the details of the PJSIP channel this conversation seems all upside down to me.</div><div>Subscriptions provide their own contact for the NOTIFY and have no relationship to the REGISTER message.</div></div></blockquote><div><br></div><div>There's no protocol level relationship but there is a functional relationship.  If a phone with 15 BLF subscriptions goes missing and we can correlate the expired registration contact with the subscription contact, should we bother sending NOTIFYs that we know will timeout and need to be retried?</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div><br></div><div>Unless you are discussing a Subscription for registration status - but even so your discussion is not parseable in my eyes ;-)</div><div><br></div><div>Sorry for the intrusion</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/O</div><br></font></span></div><br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.asterisk.org</a><br><div><br></div></div></div>
</div></div>