aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/app.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-29 06:53:33 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-29 06:53:33 +0000
commitcbdd6dd4223bd7f871fb1d7fcc3ac140edcc6c23 (patch)
tree5faed8a02f0a0220ce1afd633790371087f904eb /include/asterisk/app.h
parentbb1456a83ce33cb5f4db1ed850d43ddbea5e585c (diff)
fix simultaneous voicemail messages -- Thanks Robert! (bug #3394)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@4914 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/app.h')
-rwxr-xr-xinclude/asterisk/app.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h
index 4b26a73ea..6330467da 100755
--- a/include/asterisk/app.h
+++ b/include/asterisk/app.h
@@ -62,12 +62,19 @@ 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);
+// calls ast_unlock_path() on 'path' if passed
+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, const char *path);
//! 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.
int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordfile, int maxtime_sec, char *fmt, int *duration, int beep, int silencethreshold, int maxsilence_ms);
+/* Lock a path */
+int ast_lock_path(const char *path);
+
+/* Unlock a path */
+int ast_unlock_path(const char *path);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif