diff options
-rwxr-xr-x | app.c | 2 | ||||
-rwxr-xr-x | include/asterisk/app.h | 2 | ||||
-rwxr-xr-x | res/res_agi.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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 f8f9d37dd..1af21f3e8 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 88c259c01..37a0421b7 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; |