aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_speech_utils.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-09Merged revisions 285710 via svnmerge from bbryant1-1/+5
https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r285710 | bbryant | 2010-09-09 14:50:13 -0400 (Thu, 09 Sep 2010) | 8 lines Fixes an issue with dialplan pattern matching where the specificity for pattern ranges and pattern special characters was inconsistent. (closes issue #16903) Reported by: Nick_Lewis Patches: pbx.c-specificity.patch uploaded by Nick Lewis (license 657) Tested by: Nick_Lewis ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@285711 f38db490-d61c-443f-a65b-d21fe96a405b
2010-05-19Merged revisions 264334 via svnmerge from mnicholson1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r264334 | mnicholson | 2010-05-19 15:01:38 -0500 (Wed, 19 May 2010) | 5 lines Set quieted flag when receiving a dtmf tone during playback in speechbackground. (closes issue #16966) Reported by: asackheim ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@264335 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-04Expand codec bitfield from 32 bits to 64 bits.tilghman1-3/+3
Reviewboard: https://reviewboard.asterisk.org/r/416/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227580 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-21Const-ify the world (or at least a good part of it)kpfleming1-9/+9
This patch adds 'const' tags to a number of Asterisk APIs where they are appropriate (where the API already demanded that the function argument not be modified, but the compiler was not informed of that fact). The list includes: - CLI command handlers - CLI command handler arguments - AGI command handlers - AGI command handler arguments - Dialplan application handler arguments - Speech engine API function arguments In addition, various file-scope and function-scope constant arrays got 'const' and/or 'static' qualifiers where they were missing. Review: https://reviewboard.asterisk.org/r/251/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@196072 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-01Swap reversed timevals.mmichelson1-1/+1
This was pointed out by ScribbleJ in #asterisk-dev. Thanks very much, ScribbleJ! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179254 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-19Merged revisions 177383 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r177383 | file | 2009-02-19 12:37:25 -0400 (Thu, 19 Feb 2009) | 3 lines 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: http://svn.digium.com/svn/asterisk/trunk@177384 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-06Move Speech* applications and functions documentation to XML.eliel1-92/+216
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161536 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-08Merged revisions 147517 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r147517 | file | 2008-10-08 11:51:42 -0300 (Wed, 08 Oct 2008) | 2 lines 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: http://svn.digium.com/svn/asterisk/trunk@147518 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-06Merged revisions 146799 via svnmerge from tilghman1-0/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r146799 | tilghman | 2008-10-06 15:52:04 -0500 (Mon, 06 Oct 2008) | 8 lines 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: http://svn.digium.com/svn/asterisk/trunk@146802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05make datastore creation and destruction a generic API since it is not really ↵kpfleming1-1/+1
channel related, and add the ability to add/find/remove datastores to manager sessions git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135680 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22- revert change to ast_queue_hangup and create ast_queue_hangup_with_causemvanbaak1-1/+1
- make data member of the ast_frame struct a named union instead of a void Recently the ast_queue_hangup function got a new parameter, the hangupcause Feedback came in that this is no good and that instead a new function should be created. This I did. The hangupcause was stored in the seqno member of the ast_frame struct. This is not very elegant, and since there's already a data member that one should be used. Problem is, this member was a void *. Now it's a named union so it can hold a pointer, an uint32 and there's a padding in case someone wants to store another type in there in the future. This commit is so massive, because all ast_frame.data uses have to be altered to ast_frame.data.data Thanks russellb and kpfleming for the feedback. (closes issue #12674) Reported by: mvanbaak git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-01Modify TIMEOUT() to be accurate down to the millisecond.tilghman1-7/+7
(closes issue #10540) Reported by: spendergrass Patches: 20080417__bug10540.diff.txt uploaded by Corydon76 (license 14) Tested by: blitzrage git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115076 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-30Lock around variables retrieved, and copy the values, if they stay persistent,tilghman1-2/+5
since another thread could remove them. (closes issue #12541) Reported by: snuffy Patches: bug_12156_apps.diff uploaded by snuffy (license 35) Several additional changes by me git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114904 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-25Whitespace changes onlytilghman1-44/+51
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114667 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-07Merged revisions 106552 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r106552 | tilghman | 2008-03-07 00:36:33 -0600 (Fri, 07 Mar 2008) | 6 lines Safely use the strncat() function. (closes issue #11958) Reported by: norman Patches: 20080209__bug11958.diff.txt uploaded by Corydon76 (license 14) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106553 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-30Add the 'n' option to SpeechBackground, which has the application not answer therussell1-6/+25
channel if it has not already been answered. (closes SPD-51) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@101082 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19include "logger.h" and errno.h from asterisk.h - usage shows that theyrizzo1-1/+0
were included almost everywhere. Remove some of the instances. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Start untangling header inclusion in a way that does not affectrizzo1-5/+0
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06"show application <foo>" changes for clarity.mmichelson1-21/+29
(closes issue #11171, reported and patched by blitzrage) Many thanks! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89044 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Merged revisions 79334 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79334 | file | 2007-08-13 18:57:20 -0300 (Mon, 13 Aug 2007) | 2 lines Instead of accepting a single DTMF character accept a full string. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Merged revisions 79207 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79207 | file | 2007-08-13 11:51:09 -0300 (Mon, 13 Aug 2007) | 2 lines Add an API call to allow the engine to know that DTMF was received. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79208 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Mostly cleanup of documentation to substitute the pipe with the comma, but a ↵tilghman1-151/+153
few other formatting cleanups, too. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25Merged revisions 77176 via svnmerge from file1-2/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r77176 | file | 2007-07-25 19:16:10 -0300 (Wed, 25 Jul 2007) | 4 lines (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: http://svn.digium.com/svn/asterisk/trunk@77182 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Applications no longer need to call ast_module_user_add and ↵file1-81/+12
ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75200 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16It is no longer required for each module that deals with a channel to call ↵file1-2/+0
ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.file1-5/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74616 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11Allow the native formats of a channel to influence the audio that is going ↵file1-2/+2
to the engine. The best format will try to be chosen with an ultimate fallback to signed linear if possible. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74570 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 71068 via svnmerge from qwell1-2/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r71068 | qwell | 2007-06-22 10:00:30 -0500 (Fri, 22 Jun 2007) | 12 lines 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: http://svn.digium.com/svn/asterisk/trunk@71069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-15Merged revisions 69558 via svnmerge from file1-1/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r69558 | file | 2007-06-15 15:23:45 -0400 (Fri, 15 Jun 2007) | 2 lines Add support for setting the maximum length of acceptable DTMF in SpeechBackground. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69559 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Convert uses of strdup() to ast_strdup()russell1-3/+3
(issue #9983, eliel) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69436 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Issue 9869 - replace malloc and memset with ast_calloc, and other coding ↵tilghman1-1/+1
guidelines changes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-13Merged revisions 61651 via svnmerge from file1-0/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r61651 | file | 2007-04-13 14:08:02 -0400 (Fri, 13 Apr 2007) | 2 lines Do not bother looking for a result if none are present. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61652 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-06Merged revisions 60361 via svnmerge from file1-15/+52
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r60361 | file | 2007-04-05 22:14:00 -0300 (Thu, 05 Apr 2007) | 2 lines Add support for returning different types of results (ie: NBest). ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60362 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-03Merged revisions 59963 via svnmerge from file1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r59963 | file | 2007-04-03 15:40:59 -0400 (Tue, 03 Apr 2007) | 2 lines Don't clash when a person both speaks and uses DTMF. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59969 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26Merged revisions 59223 via svnmerge from file1-3/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r59223 | file | 2007-03-26 16:34:14 -0300 (Mon, 26 Mar 2007) | 2 lines 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: http://svn.digium.com/svn/asterisk/trunk@59224 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26Merged revisions 59213 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r59213 | file | 2007-03-26 14:13:06 -0400 (Mon, 26 Mar 2007) | 2 lines Make SpeechBackground obey the digit timeout value. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@59214 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28Merged revisions 57053 via svnmerge from file1-3/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r57053 | file | 2007-02-28 12:45:50 -0500 (Wed, 28 Feb 2007) | 2 lines Better handle timeouts when the individual speaks after everything has been played but before the timeout ends. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57054 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Merged revisions 55947 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r55947 | file | 2007-02-21 15:03:38 -0500 (Wed, 21 Feb 2007) | 2 lines Only start playing the next file if we have not been quieted. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55948 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54714 via svnmerge from file1-26/+30
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54714 | file | 2007-02-15 19:48:48 -0500 (Thu, 15 Feb 2007) | 2 lines 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: http://svn.digium.com/svn/asterisk/trunk@54715 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-08Merged revisions 53601 via svnmerge from file1-2/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r53601 | file | 2007-02-08 12:54:32 -0500 (Thu, 08 Feb 2007) | 2 lines Fix timeout issue when utterance is longer then timeout itself. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53602 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-18Merged revisions 51251 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r51251 | file | 2007-01-18 14:17:34 -0500 (Thu, 18 Jan 2007) | 2 lines Only start timeout once we reach the end of the files to play back. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51252 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-10Merged revisions 50433 via svnmerge from file1-28/+25
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r50433 | file | 2007-01-10 15:25:44 -0500 (Wed, 10 Jan 2007) | 2 lines Merge speech-multi branch which adds support for joining multiple sound files together to be played one after another in SpeechBackground. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50434 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05const-ify some more APIs, and fix rev 49710 from branch-1.4 in a better way herekpfleming1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49711 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05As per ToDo list, I have made it so that Wait(), WaitExten(), Congestion(), ↵murf1-1/+1
Busy(), Read(), WaitForRing(), will now either actually handle a floating point argument as advertised, or has been upgraded to accept a floating point [timeout] arg. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44435 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-24Documentation updates (thanks Shaun for the speechrec.txt one!)file1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40968 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-59/+45
- 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: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-18Expand speech API so that the developer can interact with the engine more ↵file1-0/+25
directly and use specific functions of the connector even if a generic API call is not available git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37881 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-11don't leak a frame when breaking out of the loop on a timeoutrussell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33448 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-4/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-30fix various typos and other bits (from Ian Kinner)kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30800 f38db490-d61c-443f-a65b-d21fe96a405b