<p>Sean Bright <strong>uploaded patch set #4</strong> to the change originally created by Benoît Dereck-Tricot.</p><p><a href="https://gerrit.asterisk.org/6625">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_calendar_icalendar: Filter out occurrences superceded by another VEVENT<br><br>When we are loading the calendars, we call libical's<br>icalcomponent_foreach_recurrence method for each VEVENT component that<br>we have in our calendar.<br><br>That method has no knowledge concerning the existence of the other<br>VEVENT components and will feed our callback with all ocurrences<br>matching the requested time span.<br><br>The occurrences generated by icalcomponent_foreach_recurrence while<br>expanding a recurring VEVENT's RRULE and RDATE properties can be<br>superceded by an other VEVENT sharing the same UID.<br><br>I use an external iterator (in libical terminology) to avoid messing<br>with the internal ones from the calling function, and search for<br>VEVENTS which could supersede the current occurrence.<br><br>The event which can invalidate this occurence needs to have:<br><br>- the same UID as our recurrent component (comp)<br>- a RECURRENCE-ID property, which represents the start time of this<br>  occurrence<br><br>If one component is found, just clean and return.<br><br>ASTERISK-27296 #close<br>Reported by: Benoît Dereck-Tricot<br><br>Change-Id: I8587ae3eaa765af7cb21eda3b6bf84e8a1c87af8<br>---<br>M res/res_calendar_icalendar.c<br>1 file changed, 37 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/25/6625/4</pre><p>To view, visit <a href="https://gerrit.asterisk.org/6625">change 6625</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/6625"/><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-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I8587ae3eaa765af7cb21eda3b6bf84e8a1c87af8 </div>
<div style="display:none"> Gerrit-Change-Number: 6625 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Benoît Dereck-Tricot <benoit.dereck-tricot@eyepea.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>