mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-06 04:11:52 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user