mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 294207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r294207 | twilson | 2010-11-08 13:56:10 -0600 (Mon, 08 Nov 2010) | 2 lines Set a default waittime, and make sure to convert it to milliseconds ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@294208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -369,6 +369,7 @@ static struct ast_calendar *build_calendar(struct ast_config *cfg, const char *c
|
||||
|
||||
cal->refresh = 3600;
|
||||
cal->timeframe = 60;
|
||||
cal->notify_waittime = 30000;
|
||||
|
||||
for (v = ast_variable_browse(cfg, cat); v; v = v->next) {
|
||||
if (!strcasecmp(v->name, "autoreminder")) {
|
||||
@@ -380,7 +381,10 @@ static struct ast_calendar *build_calendar(struct ast_config *cfg, const char *c
|
||||
} else if (!strcasecmp(v->name, "extension")) {
|
||||
ast_string_field_set(cal, notify_extension, v->value);
|
||||
} else if (!strcasecmp(v->name, "waittime")) {
|
||||
cal->notify_waittime = atoi(v->value);
|
||||
int i = atoi(v->value);
|
||||
if (i > 0) {
|
||||
cal->notify_waittime = 1000 * i;
|
||||
}
|
||||
} else if (!strcasecmp(v->name, "app")) {
|
||||
ast_string_field_set(cal, notify_app, v->value);
|
||||
} else if (!strcasecmp(v->name, "appdata")) {
|
||||
|
Reference in New Issue
Block a user