diff --git a/app.c b/app.c index 592141c67272e205af0cac132603ff09087d046a..19a821ae717cc8716a62bbade2f4620adea7f727 100755 --- a/app.c +++ b/app.c @@ -497,7 +497,7 @@ int ast_play_and_wait(struct ast_channel *chan, char *fn) static int global_silence_threshold = 128; static int global_maxsilence = 0; -int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime, char *fmt, int *duration, int silencethreshold, int maxsilence) +int ast_play_and_record(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime, const char *fmt, int *duration, int silencethreshold, int maxsilence) { char d, *fmts; char comment[256]; diff --git a/include/asterisk/app.h b/include/asterisk/app.h index f8f9d37dd795e7a6f041d7df9153976d6a167a49..1af21f3e875b10fa97367bd88ece1b48a9f0b066 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -67,7 +67,7 @@ int ast_play_and_wait(struct ast_channel *chan, char *fn); //! Record a file for a max amount of time (in seconds), in a given list of formats separated by '|', outputting the duration of the recording, and with a maximum // permitted silence time in milliseconds of 'maxsilence' under 'silencethreshold' or use '-1' for either or both parameters for defaults. -int ast_play_and_record(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime_sec, char *fmt, int *duration, int silencethreshold, int maxsilence_ms); +int ast_play_and_record(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime_sec, const char *fmt, int *duration, int silencethreshold, int maxsilence_ms); //! Record a message and prepend the message to the given record file after playing the optional playfile (or a beep), storing the duration in 'duration' and with a maximum // permitted silence time in milliseconds of 'maxsilence' under 'silencethreshold' or use '-1' for either or both parameters for defaults. diff --git a/res/res_agi.c b/res/res_agi.c index 88c259c0162886298cabb405effd05ba16c8f6e0..37a0421b7dd47423ee1c8e26e0f899c08e9384a8 100755 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -121,7 +121,7 @@ static int launch_netscript(char *agiurl, char *argv[], int *fds, int *efd, int struct pollfd pfds[1]; char *host; char *c; int port = AGI_PORT; - char *script; + char *script=""; struct sockaddr_in sin; struct hostent *hp; struct ast_hostent ahp;