Skip to content
Snippets Groups Projects
Commit 5ea7d4a2 authored by Terry Wilson's avatar Terry Wilson
Browse files

use Calendar: instead of Calendar/ for devstate

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@223992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 51f34d24
No related branches found
No related tags found
No related merge requests found
......@@ -524,9 +524,9 @@ static struct ast_calendar_event *destroy_event(struct ast_calendar_event *event
* but haven't hit the end event yet, go ahead and set the devicestate to the current busy status */
if (event->bs_start_sched < 0 && event->bs_end_sched >= 0) {
if (!calendar_is_busy(event->owner)) {
ast_devstate_changed(AST_DEVICE_NOT_INUSE, "Calendar/%s", event->owner->name);
ast_devstate_changed(AST_DEVICE_NOT_INUSE, "Calendar:%s", event->owner->name);
} else {
ast_devstate_changed(AST_DEVICE_BUSY, "Calendar/%s", event->owner->name);
ast_devstate_changed(AST_DEVICE_BUSY, "Calendar:%s", event->owner->name);
}
}
......@@ -767,9 +767,9 @@ static int calendar_devstate_change(const void *data)
/* We can have overlapping events, so ignore the event->busy_state and check busy state
* based on all events in the calendar */
if (!calendar_is_busy(event->owner)) {
ast_devstate_changed(AST_DEVICE_NOT_INUSE, "Calendar/%s", event->owner->name);
ast_devstate_changed(AST_DEVICE_NOT_INUSE, "Calendar:%s", event->owner->name);
} else {
ast_devstate_changed(AST_DEVICE_BUSY, "Calendar/%s", event->owner->name);
ast_devstate_changed(AST_DEVICE_BUSY, "Calendar:%s", event->owner->name);
}
event = ast_calendar_unref_event(event);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment