[svn-commits] twilson: trunk r223992 - /trunk/res/res_calendar.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Oct 13 17:14:26 CDT 2009
Author: twilson
Date: Tue Oct 13 17:14:22 2009
New Revision: 223992
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=223992
Log:
use Calendar: instead of Calendar/ for devstate
Modified:
trunk/res/res_calendar.c
Modified: trunk/res/res_calendar.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_calendar.c?view=diff&rev=223992&r1=223991&r2=223992
==============================================================================
--- trunk/res/res_calendar.c (original)
+++ trunk/res/res_calendar.c Tue Oct 13 17:14:22 2009
@@ -524,9 +524,9 @@
* 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 @@
/* 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);
More information about the svn-commits
mailing list