more ivr goodies

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@705 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-03-01 00:58:32 +00:00
parent 12094ad7a0
commit dec2ae05a5
7 changed files with 563 additions and 242 deletions

View File

@@ -80,7 +80,9 @@ SWITCH_DECLARE(switch_status) switch_ivr_collect_digits_count(switch_core_sessio
unsigned int buflen,
unsigned int maxdigits,
const char *terminators,
char *terminator);
char *terminator,
unsigned int timeout,
unsigned int poll_channel);
/*!
\brief play a file from the disk to the session
@@ -121,6 +123,18 @@ SWITCH_DECLARE(switch_status) switch_ivr_record_file(switch_core_session *sessio
unsigned int buflen);
/*!
\brief Speak given text with given tts engine
\param session the session to speak on
\param voice_name the desired voice
\param timer_name optional timer to use for async behaviour
\param rate the sample rate
\param dtmf_callback code to execute if any dtmf is dialed during the audio
\param text the text to speak
\param buf an option data pointer to pass to the callback or a string to put encountered digits in
\param buflen the len of buf
\return SWITCH_STATUS_SUCCESS if all is well
*/
SWITCH_DECLARE(switch_status) switch_ivr_speak_text(switch_core_session *session,
char *tts_name,
char *voice_name,
@@ -131,6 +145,17 @@ SWITCH_DECLARE(switch_status) switch_ivr_speak_text(switch_core_session *session
void *buf,
unsigned int buflen);
/*!
\brief Bridge Audio from one session to another
\param session one session
\param peer_session the other session
\param timelimit maximum number of seconds to wait for both channels to be answered
\return SWITCH_STATUS_SUCCESS if all is well
*/
SWITCH_DECLARE(switch_status) switch_ivr_multi_threaded_bridge(switch_core_session *session,
switch_core_session *peer_session,
unsigned int timelimit);
/** @} */
#ifdef __cplusplus