]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_calendar: Add support for fetching calendars when reloading 98/3998/3
authorLudovic Gasc (GMLudo) <gmludo@gmail.com>
Thu, 29 Sep 2016 17:45:39 +0000 (19:45 +0200)
committerJoshua Colp <jcolp@digium.com>
Mon, 10 Oct 2016 15:43:53 +0000 (10:43 -0500)
commit9f62feca6085ba7bf71bfafa953846d255603369
tree7663c51b4cb8b86eb57e6b4f7b608c7f363f007c
parent2d2a8944bed593e3cd2a66fe1b25288a62437423
res_calendar: Add support for fetching calendars when reloading

We use a lot res_calendar, we are very happy with that, especially
because you use libical, the almost alone opensource library that
supports really ical format with all types of recurrency.

Nevertheless, some features are missed for our business use cases.

This first patch adds a new option in calendar.conf:
fetch_again_at_reload. Be my guest for a better name.

If it's true, when you'll launch "module reload res_calendar.so",
Asterisk will download again the calendar.

The business use case is that we have a WebUI with a scheduler planner,
we know when the calendars are modified.

For now, we need to define 1 minute of timeout to have a chance that
our user doesn't wait too long between the modification and the real
test.  But it generates a lot of useless HTTP traffic.

ASTERISK-26422 #close

Change-Id: I384b02ebfa42b142bbbd5b7221458c7f4dee7077
configs/samples/calendar.conf.sample
include/asterisk/calendar.h
res/res_calendar.c