Bank Holidays Read From File?

Home » Asterisk Users » Bank Holidays Read From File?
Asterisk Users 7 Comments

Hi. in my home office i operate my asterisk and have an IVR that has the business hours 9-5 and everytime i edit it to load the bank holidays (New Years eve, christmas, easter, whatever else). I would like to be able to load in the Asterisk’s DB or in a file for all the year or years the planned holidays. Then it will be read from that file to operate accordingly. Is there a hint on how to run something like that?
I am running asterisk 11.

7 thoughts on - Bank Holidays Read From File?

  • Hi,

    I recommend you to use calendar module of Asterisk:
    https://wiki.asterisk.org/wiki/display/AST/Asterisk+Calendaring

    We are using in production since two years with several hundred calendars, it works pretty well. However, I strongly recommend you to use the latest stable version of libical3, because they have fixed a lot of bugs, especially with recurring events.

    And to use Asterisk 15: We had time to time crashes with Asterisk 13 and calendars and now it’s gone with Asterisk 15. Some bugfixes on recurring events are also included in Asterisk 15.

    Regards.

  • Hi. Thanks for the idea for calendar, it sounds better. i did not manage to make it work though. i am running debian 8 32 bit with asterisk 11.25.3. I
    have installed the packages libneon27-dev & libical-dev then in
    /etc/asterisk the file calendar.conf has the following entries:
    [Gcalendar]

    type

  • I never use caldav mode, always icalendar with Google Calendar.

    BTW, you use old versions of libical, Asterisk and Debian, I recommend you to upgrade or install a new server with Debian Stretch: You will have Asterisk 13, libical2 and security upgrades. Asterisk 11 doesn’t have security fixes anymore.

    Regards.

  • Hi. thanks a lot for your reply. i will download the newer libical software. Could you elaborate on icalendar with google calendar config and calendar.conf, please?

  • An example, you need to change the URL with Google ical URL.

    [tests.28]
    type = ical ; type of calendar–currently supported: ical, caldav, exchange, or ews url = http://127.0.0.1:7999/tests/cache/calendars/28.ics ; URL to shared calendar (Zimbra example)
    refresh = 1 ; refresh calendar every n minutes timeframe = 1 ; number of minutes of calendar data to pull for each refresh period

  • Hi all,

    i have configured my calendar.conf accordingly to the Asterisk-the definitive guide 4th edition and even though i can see the calendar, it always shows me as free. as you can see in the attached printscreen from my calendar, it has 3
    bookings today, but the asterisk calendar shows me as free. Here is what’s going on

    PBX*CLI> calendar show calendar myGoogleCal Name : myGoogleCal Notify channel : SIP/601
    Notify context : calendar Notify extension :
    Notify applicatio :
    Notify appdata :
    Refresh time : 15
    Timeframe : 180
    Autoreminder : 10
    Events
    —-

  • Hi,

    To my understanding, you are using ical export with caldav, it won’t work:
    1. Replace type