]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-7720 improve play_and_detect_speech to set current_application_response channel...
authorChris Rienzo <chris.rienzo@citrix.com>
Wed, 24 Jun 2015 15:50:53 +0000 (11:50 -0400)
committerChris Rienzo <chris.rienzo@citrix.com>
Wed, 24 Jun 2015 15:50:53 +0000 (11:50 -0400)
commit06f7040e21cd1ee018398f8c524d622a1ff20104
treea90e2d87145c55809e16ea877754da658dbc5e5d
parente401b1469fee10ec6508aca5d2cc1ceba0d35cf0
FS-7720 improve play_and_detect_speech to set current_application_response channel variable as follows:

    "USAGE ERROR": bad application arguments
    "GRAMMAR ERROR": speech recognizer failed to load grammar
    "ASR INIT ERROR": speech recognizer failed to allocate a session
    "ERROR": any other errors

  This is useful for determining that play_and_detect_speech failed because the recognizer is out of licenses
  giving the developer a chance to fall back to traditional DTMF menu navigation.
src/mod/applications/mod_dptools/mod_dptools.c
src/switch_ivr_async.c