System information

If you have not configured any of the Notify options but have an alarm
set to remind you in the calendar, you may get a WARNING message such
as:
WARNING[5196]: res_calendar.c:648 do_notify: Channel should be in
form Tech/Dest (was '')
The reason for the warning is that an alarm was set for notification about
the start of the meeting, but Asterisk was unable to generate a call due
to values not being configured to place the call. This warning message
can be safely ignored if you don’t plan on placing calls for event
notifications.
The rest of the screen output is a listing of events available within our Timeframe, along
with information about the events. The next steps are to look at some dialplan examples
of what you can do now that you have your calendaring information in Asterisk, and
to configure dialing notifications to remind you about upcoming meetings.
Triggering Calendar Reminders to Your Phone
In this section we’ll discuss how to configure the calendar.conf file to execute some
simple dialplan that will call your phone prior to a calendar event. While the dialplan
we’ll provide might not be ready for production, it certainly gives you a good taste of
the possibilities that exist for triggering calls based on calendar state.
Triggering a wakeup call
In our first example, we’re going to call a device and play back a reminder notice for a
particular calendar event. It might be useful to get this type of reminder if you’re likely
to be napping at your desk when your weekly Monday meeting rolls around. To set up
a wakeup call reminder, we simply need to add the following lines to our calendar
configuration in calendar.conf:
channel=SIP/0000FFFF0001
app=Playback
appdata=this-is-yr-wakeup-call
In your calendar, you need to make sure the event you’re adding has an
alarm or reminder associated with it. Otherwise, Asterisk won’t try to
generate a call.
After making this change, reload the res_calendar.so module from the Asterisk console:
*CLI> module reload res_calendar.so
402 | Chapter 18:External Services