rendered paste bodyint pc_formatprompt(char *sounddir, char *file, char *prompt) {
/* allocated the necessary memory amount */
prompt = realloc(prompt, strlen(sounddir) + strlen(file) + 1);
/* format the sound prompt */
strcpy(prompt, sounddir);
strncat(prompt, file, strlen(file) + 1);
prompt[sizeof(prompt) - 1] = '\0';
return 1;
}
ERROR in *:
Sep 4 01:57:21 WARNING[-182748240]: file.c:473 ast_openstream: File pho does not exist in any format
Sep 4 01:57:21 WARNING[-182748240]: file.c:761 ast_streamfile: Unable to open pho (format ULAW): No such file or directory
MESSAGES LOG:
Sep 4 02:05:25 DEBUG[-180352080]: PhoneCard: sounddir='phonecard/' - file='phonecard-enter-card-num' - prompt='pho'