Add recordFile method. merge svn r5149 from branch.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5420 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-06-20 14:35:22 +00:00
parent c31639279a
commit bd2c91b028
4 changed files with 94 additions and 0 deletions
+11
View File
@@ -68,6 +68,17 @@ class CoreSession {
void setVariable(char *var, char *val);
char *getVariable(char *var);
/** \brief Record to a file
* \param filename
* \param <[max_len]> maximum length of the recording in seconds
* \param <[silence_threshold]> energy level audio must fall below
* to be considered silence (500 is a good starting point).
* \param <[silence_secs]> seconds of silence to interrupt the record.
*/
int recordFile(char *file_name, int max_len=0, int silence_threshold=0, int silence_secs=0);
/** \brief Set attributes of caller data for purposes of outgoing calls
* \param var - the variable name, eg, "caller_id_name"
* \param val - the data to set, eg, "bob"