Extracting information Calendar

We are working a scheduling rota for a customer using an outlook calendar that is set an ical in the calendar module, we can get info and check matches with fwconsole as below

fwconsole calendar --match=“$curtm” --type=calendar --id=“$UUID”

where curtm is epoch + a couple of seconds and UUID is the calendar Id and this works the script we use returns the event 'name’as a variable in dynamic routes and we route on that result

Was wondering if there is any what of calling the calendar from the dialplan directly ?

what i have works and is more flexible that time conditions but wonder if theres a better way.

I would suggest looking from here (calendar/Calendar.class.php at 4be2fdf2f2bb070d9cbb1861d2fb2c38760fc02a · FreePBX/calendar · GitHub) Forward. These are all dialplan functions you can use when generating your dialplan. Even if you are doing so manually this may help. Also for somethings you may just call calendar.agi calendar/agi-bin/calendar.agi at release/17.0 · FreePBX/calendar · GitHub