]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_calendar: On reload, update all configuration
authorSean Bright <sean.bright@gmail.com>
Wed, 13 Sep 2017 19:14:25 +0000 (15:14 -0400)
committerSean Bright <sean.bright@gmail.com>
Fri, 15 Sep 2017 19:45:57 +0000 (14:45 -0500)
commit5075cc8eedbc2d4b9d8aa4a5b06d7f53a38050a2
tree02b7c928381f7cc8a943899eb57b262809c90a52
parent14109355f3a2cf1f5dbf86d67e282280d0596076
res_calendar: On reload, update all configuration

This changes the behavior of res_calendar to drop all existing calendars
and re-create them whenever a reload is done. The Calendar API provides
no way for configuration information to be pushed down to calendar
'techs' so updated settings would not take affect until a module
unload/load was done or Asterisk was restarted.

Asterisk 15+ already has a configuration option 'fetch_again_at_reload'
that performs a similar function.

Also fix a tiny memory leak in res_calendar_caldav while we're at it.

ASTERISK-25524 #close
Reported by: Jesper

Change-Id: Ib0f8057642e9d471960f1a79fd42e5a3ce587d3b
include/asterisk/calendar.h
res/res_calendar.c
res/res_calendar_caldav.c