]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MERGE: expose ASR start_input_timers to dialplan via IVR and mod_dptools
authorLuke Dashjr <luke@openmethods.com>
Mon, 23 Aug 2010 01:24:53 +0000 (20:24 -0500)
committerLuke Dashjr <luke@openmethods.com>
Mon, 23 Aug 2010 01:24:53 +0000 (20:24 -0500)
1  2 
src/include/switch_ivr.h
src/mod/applications/mod_dptools/mod_dptools.c
src/switch_ivr_async.c

index 8641766760b778195ef05c08e2646fe7d5cc8f34,692ad8d61b9eda073c307b867b17e22891fa5600..f379f02030170bd0b1354aefa3b2df2cee7abcbc
@@@ -199,31 -199,15 +199,38 @@@ SWITCH_DECLARE(switch_status_t) switch_
  */
  SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_unload_grammar(switch_core_session_t *session, const char *name);
  
 +/*!
 +  \brief Enable a grammar on a background speech detection handle
 +  \param session The session to change the grammar on
 +  \param name the grammar name
 +  \return SWITCH_STATUS_SUCCESS if all is well
 +*/
 +SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_enable_grammar(switch_core_session_t *session, const char *name);
 +
 +/*!
 +  \brief Disable a grammar on a background speech detection handle
 +  \param session The session to change the grammar on
 +  \param name the grammar name
 +  \return SWITCH_STATUS_SUCCESS if all is well
 +*/
 +SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_disable_grammar(switch_core_session_t *session, const char *name);
 +
 +/*!
 +  \brief Disable all grammars on a background speech detection handle
 +  \param session The session to change the grammar on
 +  \return SWITCH_STATUS_SUCCESS if all is well
 +*/
 +SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_disable_all_grammars(switch_core_session_t *session);
 +
  SWITCH_DECLARE(switch_status_t) switch_ivr_set_param_detect_speech(switch_core_session_t *session, const char *name, const char *val);
  
+ /*!
+   \brief Start input timers on a background speech detection handle
+   \param session The session to start the timers on
+   \return SWITCH_STATUS_SUCCESS if all is well
+ */
+ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_start_input_timers(switch_core_session_t *session);
  /*!
    \brief Record a session to disk
    \param session the session to record
index f57366116503684651545c3b9c2723e7d8d3d591,2f496300e8ffd20b7151a7c616a1cb2dac2bcd5b..fe089a6a50b4598b0e10eb8d5dba94baa5a585df
@@@ -96,7 -96,7 +96,7 @@@ SWITCH_STANDARD_DIALPLAN(inline_dialpla
        return extension;
  }
  
- #define DETECT_SPEECH_SYNTAX "<mod_name> <gram_name> <gram_path> [<addr>] OR grammar <gram_name> [<path>] OR nogrammar <gram_name> OR grammaron/grammaroff <gram_name> OR grammarsalloff OR pause OR resume OR stop OR param <name> <value>"
 -#define DETECT_SPEECH_SYNTAX "<mod_name> <gram_name> <gram_path> [<addr>] OR grammar <gram_name> [<path>] OR pause OR resume OR start_input_timers"
++#define DETECT_SPEECH_SYNTAX "<mod_name> <gram_name> <gram_path> [<addr>] OR grammar <gram_name> [<path>] OR nogrammar <gram_name> OR grammaron/grammaroff <gram_name> OR grammarsalloff OR pause OR resume OR start_input_timers OR stop OR param <name> <value>"
  SWITCH_STANDARD_APP(detect_speech_function)
  {
        char *argv[4];
Simple merge