Commit Graph

35 Commits

Author SHA1 Message Date
Joshua Colp
0d96c97ced If we are able to create a speech structure unset the ERROR variable in case it was previously set.
(issue #LUMENVOX-13)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@177383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 16:37:25 +00:00
Joshua Colp
38402d868c If we receive DTMF make sure that the state of the speech structure goes back to being not ready. (issue #LUMENVOX-8)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@147517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-08 14:51:42 +00:00
Tilghman Lesher
93ef1ee4ef Dialplan functions should not actually return 0, unless they have modified the
workspace.  To signal an error (and no change to the workspace), -1 should be
returned instead.
(closes issue #13340)
 Reported by: kryptolus
 Patches: 
       20080827__bug13340__2.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@146799 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-10-06 20:52:04 +00:00
Tilghman Lesher
56e908b787 Safely use the strncat() function.
(closes issue #11958)
 Reported by: norman
 Patches: 
       20080209__bug11958.diff.txt uploaded by Corydon76 (license 14)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@106552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-07 06:36:33 +00:00
Joshua Colp
924c88d3d0 Instead of accepting a single DTMF character accept a full string.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-13 21:57:20 +00:00
Joshua Colp
4f8857d608 Add an API call to allow the engine to know that DTMF was received.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79207 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-13 14:51:09 +00:00
Joshua Colp
7bd5646815 (closes issue #10303)
Reported by: jtodd
Add SPEECH_DTMF_TERMINATOR variable so the user can specify the digit to terminate a DTMF string with. If none is specified then no terminator will be used.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-25 22:16:10 +00:00
Jason Parker
e107da04b4 Merged revisions 71065 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r71065 | qwell | 2007-06-22 09:52:18 -0500 (Fri, 22 Jun 2007) | 4 lines

Fix a few silly usages of ast_playstream() - it only ever returns 0...

Issue 10035

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-22 15:00:30 +00:00
Joshua Colp
ad3c504b10 Add support for setting the maximum length of acceptable DTMF in SpeechBackground.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-15 19:23:45 +00:00
Joshua Colp
72a00026cd Do not bother looking for a result if none are present.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-13 18:08:02 +00:00
Joshua Colp
f996b1cbc8 Add support for returning different types of results (ie: NBest).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 01:14:00 +00:00
Joshua Colp
06634b25ea Don't clash when a person both speaks and uses DTMF.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-03 19:40:59 +00:00
Joshua Colp
fd950a2955 Add ability to specify no timeout. This means as soon as the prompt is done playing it moves on to the next priority.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-26 19:34:14 +00:00
Joshua Colp
a541ea96e1 Make SpeechBackground obey the digit timeout value.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-26 18:13:06 +00:00
Joshua Colp
d92e56ac89 Better handle timeouts when the individual speaks after everything has been played but before the timeout ends.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@57053 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-28 17:45:50 +00:00
Joshua Colp
10864c42ea Only start playing the next file if we have not been quieted.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@55947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-21 20:03:38 +00:00
Joshua Colp
ae5eec37dd Don't let dtmf leak over into the engine and let it skew the results... also give DTMF results priority. (issue #9014 reported by surftek)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@54714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-16 00:48:48 +00:00
Joshua Colp
dce4b744a1 Fix timeout issue when utterance is longer then timeout itself.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-08 17:54:32 +00:00
Joshua Colp
f6132a8ec4 Only start timeout once we reach the end of the files to play back.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-18 19:17:34 +00:00
Joshua Colp
4ec0f8cbd6 Merge speech-multi branch which adds support for joining multiple sound files together to be played one after another in SpeechBackground.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@50433 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-10 20:25:44 +00:00
Joshua Colp
5345469008 Documentation updates (thanks Shaun for the speechrec.txt one!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-24 15:44:24 +00:00
Kevin P. Fleming
0a27d8bfe5 merge new_loader_completion branch, including (at least):
- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:11:39 +00:00
Joshua Colp
457ec51f8d Expand speech API so that the developer can interact with the engine more directly and use specific functions of the connector even if a generic API call is not available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37881 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-18 16:22:26 +00:00
Russell Bryant
558d3924ac don't leak a frame when breaking out of the loop on a timeout
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33448 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-11 14:52:04 +00:00
Kevin P. Fleming
472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-07 18:54:56 +00:00
Kevin P. Fleming
18606233da fix various typos and other bits (from Ian Kinner)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30800 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-30 16:01:50 +00:00
Joshua Colp
f35e669a98 Nothing to see here... move along
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30131 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 23:08:39 +00:00
Joshua Colp
6f8c704e2b Update some documentation (file internal brain bug #42)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-24 22:00:37 +00:00
Joshua Colp
80a705c121 Make sure that the channel is answered before doing SpeechBackground. (issue #josh-wait-I-dont-have-issue-numbers)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27194 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-15 15:30:21 +00:00
Russell Bryant
04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
As it turns out, all of these checks were useless, because alloca will never
return NULL.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10 13:22:15 +00:00
Russell Bryant
48b812829d remove \n from the end of a couple of synopsis fields
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-01 14:57:48 +00:00
Luigi Rizzo
e43bc6634d This rather large commit changes the way modules are loaded.
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
 
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.

Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.

I am just sorry that this change missed SVN version number 20000!



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14 14:08:19 +00:00
Joshua Colp
5e43f18529 Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-13 00:18:52 +00:00
Joshua Colp
416cd5d8a0 Add ability to see if the person calling said anything or not.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19512 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-12 19:57:21 +00:00
Joshua Colp
e4811a8248 Presenting a revised data stores and oh my, a generic speech recognition API! I wonder what we can do with this now...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18979 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-10 23:29:50 +00:00