[Home]

Summary:ASTERISK-25523: res_calendar: Warning about invalid channel value (for notification) occurs even when event has no notification configured.
Reporter:Jesper (ib2)Labels:calendar
Date Opened:2015-11-05 04:34:26.000-0600Date Closed:2017-09-15 08:12:36
Priority:MinorRegression?
Status:Closed/CompleteComponents:Documentation Resources/res_calendar
Versions:11.18.0 11.20.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:CentOS 6.7Attachments:
Description:Event notification for calendars cannot be disabled
If variables for event notification is not confugured in calendar.conf a warnings are still generated: "WARNING[] res_calendar.c: Channel should be in form Tech/Dest (was '')" and an asterisk thread still sleeps and wait for the event even if event notification is not unwanted

Just info: I'm controlling calls based on Calendar Information using the CALENDAR_BUSY() in the dialplan.
Comments:By: Asterisk Team (asteriskteam) 2015-11-05 04:34:28.705-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Rusty Newton (rnewton) 2015-11-05 19:51:02.173-0600

Can you provide configuration to reproduce the issue, along with examples of command and log output to demonstrate your findings? Thanks!

By: Jesper (ib2) 2015-11-06 01:23:19.196-0600

calendar.conf in use:
[gcal1]
type = ical
url = https://www.google.com/calendar/ical/XXXXXXXXX/public/basic.ics
user =
secret =
refresh = 5
timeframe = 60

The public google calendar must have a busy event

[x] WARNING[x] res_calendar.c: Channel should be in form Tech/Dest (was '')
[x] WARNING[x] res_calendar.c: Channel should be in form Tech/Dest (was '')
[x] WARNING[x] res_calendar.c: Channel should be in form Tech/Dest (was '')

By: Rusty Newton (rnewton) 2015-11-07 14:12:58.033-0600

Thanks for the report, but this is expected behavior and not a bug.

{quote}
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.
{quote}
http://asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/ExternalServices-SECT-1.html

If you wish to modify the WARNING message to make it more clear or improve the behavior of the module you can submit a patch for review.

https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process

Thanks!

By: Jesper (ib2) 2015-11-07 15:07:52.952-0600

Thanks
Please confirm that the undocumented way to "disable" event notification is to not configure any of the Notify options, including the channel, and then accept all events is still being triggered and ignore the
{noformat}
WARNING[x]: res_calendar.c do_notify: Channel should be in form Tech/Dest (was '')
{noformat} ?
(I have between 50 and 100 calendars at each server)

I just retested. The WARNING is generated even if the ical calendar has no notification, contrary to the asteriskdocs.




By: Asterisk Team (asteriskteam) 2015-11-07 15:07:53.814-0600

This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable.

By: Rusty Newton (rnewton) 2015-11-25 18:47:04.856-0600

I tested the behavior as well and found the same behavior that you described. It is odd to see that WARNING when there is no notification configured for the event..

Additionally it would be nice if the WARNING was a bit more clear. It could say something like
{noformat}
WARNING[x]: res_calendar.c do_notify: Notification aborted. Expected channel value in the form of Tech/Dest (was ''). Check 'channel' option configuration.
{noformat}

By: Friendly Automation (friendly-automation) 2017-09-15 08:12:37.544-0500

Change 6491 merged by Jenkins2:
res_calendar: Various fixes

[https://gerrit.asterisk.org/6491|https://gerrit.asterisk.org/6491]

By: Friendly Automation (friendly-automation) 2017-09-15 08:16:22.106-0500

Change 6492 merged by Jenkins2:
res_calendar: Various fixes

[https://gerrit.asterisk.org/6492|https://gerrit.asterisk.org/6492]

By: Friendly Automation (friendly-automation) 2017-09-15 08:17:13.795-0500

Change 6493 merged by Jenkins2:
res_calendar: Various fixes

[https://gerrit.asterisk.org/6493|https://gerrit.asterisk.org/6493]

By: Friendly Automation (friendly-automation) 2017-09-15 08:22:57.532-0500

Change 6494 merged by Joshua Colp:
res_calendar: Various fixes

[https://gerrit.asterisk.org/6494|https://gerrit.asterisk.org/6494]