char sndfile[256], nextmsg[256];
if (format == NULL)
- format = "Ad 'digits/pt-de' B 'digits/pt-de' Y 'digits/at' IMp";
+ format = "Ad 'digits/pt-de' B 'digits/pt-de' Y I 'digits/pt-e' Mp";
ast_localtime(&tv, &tm, timezone);
}
if (!res)
res = ast_say_number(chan, (tm.tm_hour % 12), ints, lang, "f");
- if ((!res) && (format[offset] == 'I'))
- res = ast_say_date_with_format(chan, time, ints, lang, "P", timezone);
}
} else {
if (tm.tm_hour == 0) {
res = wait_file(chan, ints, "digits/pt-hora", lang);
if (tm.tm_hour != 1)
if (!res)
- res = wait_file(chan, ints, "digits/pt-sss", lang); } else {
- res = wait_file(chan,ints,"digits/pt-e",lang);
- if (!res)
- res = ast_say_number(chan, tm.tm_min, ints, lang, (char *) NULL);
+ res = wait_file(chan, ints, "digits/pt-sss", lang);
+ } else {
+ res = ast_say_number(chan, tm.tm_min, ints, lang, (char *) NULL);
}
}
break;
res = wait_file(chan,ints,nextmsg,lang);
}
}
- if(!res) res = wait_file(chan,ints,"digits/day",lang);
+ if (!res) res = wait_file(chan,ints,"digits/day",lang);
break;
case 'Y':
/* Year */
/* 100 < num < 200 */
snprintf(fn, sizeof(fn), "digits/hundred-100");
num %= 100;
- }else if (num < 1000) {
+ } else if (num < 1000) {
/* 200 < num < 1000 */
snprintf(fn, sizeof(fn), "digits/hundred-%d", (num/100)*100);
num %= 100;
- }else if (num < 2000){
+ } else if (num < 2000){
snprintf(fn, sizeof(fn), "digits/xilia");
num %= 1000;
- }
- else {
+ } else {
/* num > 1000 */
if (num < 1000000) {
res = ast_say_number_full_gr(chan, (num / 1000), ints, chan->language, audiofd, ctrlfd);
ast_free(new_string);
remainder = s + 1; /* position just after the found space char. */
- while(*remainder == ' ') /* skip multiple spaces */
+ while (*remainder == ' ') /* skip multiple spaces */
remainder++;
}