mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
make test 'record' app in app_playback.c
You are best off doing wav (trust me) It can record at 8 16 22 and 32 khz if you can manage to have a channel at that speed. syntax [record /tmp/blah.wav] dial * to end (dtmf only works in iax and portaudio {beg file to add it to mod_exosip}) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@453 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -64,6 +64,19 @@ SWITCH_DECLARE(switch_status) switch_ivr_play_file(switch_core_session *session,
|
||||
char *file,
|
||||
char *timer_name,
|
||||
switch_dtmf_callback_function dtmf_callback);
|
||||
|
||||
|
||||
|
||||
/*!
|
||||
\brief record a file from the session to a file
|
||||
\param session the session to record from
|
||||
\param file the path to the file
|
||||
\param dtmf_callback code to execute if any dtmf is dialed during the recording
|
||||
\return SWITCH_STATUS_SUCCESS if all is well
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_ivr_record_file(switch_core_session *session,
|
||||
char *file,
|
||||
switch_dtmf_callback_function dtmf_callback);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
Reference in New Issue
Block a user