]> 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:46:07 +0000 (14:46 -0500)
commitedd5b3038742d6e57c59e0102b89b981e6ec1c2a
tree6a0c4e63fc7468d7789915b66d911de8e0095682
parentcdadbd3d223fa26084fd40cf39d3f8fe40b59221
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