use Calendar: instead of Calendar/ for devstate
authorTerry Wilson <twilson@digium.com>
Tue, 13 Oct 2009 22:14:22 +0000 (22:14 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 13 Oct 2009 22:14:22 +0000 (22:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@223992 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_calendar.c

index c191c84..9b93aa9 100644 (file)
@@ -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);