dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

48 Commits

Author SHA1 Message Date
tilghman d1cc29c9c1 Modify TIMEOUT() to be accurate down to the millisecond.
(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-05-01 23:06:23 +00:00
tilghman 712c72b0df Lock around variables retrieved, and copy the values, if they stay persistent,
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-30 19:21:04 +00:00
tilghman 48f62970c3 Whitespace changes only
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114667 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-25 20:20:10 +00:00
tilghman 84aa522629 Merged revisions 106552 via svnmerge from
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-03-07 06:54:47 +00:00
russell e2f5175dcd Add the 'n' option to SpeechBackground, which has the application not answer the
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
2008-01-30 00:04:17 +00:00
rizzo 9cf442d7f7 include "logger.h" and errno.h from asterisk.h - usage shows that they
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-19 18:52:04 +00:00
rizzo 883346d64a Start untangling header inclusion in a way that does not affect
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-16 20:04:58 +00:00
mmichelson 92ac6820ee "show application <foo>" changes for clarity.
(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-11-06 19:04:45 +00:00
file cfe23d813b Merged revisions 79334 via svnmerge from
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-13 21:59:15 +00:00
file 4d6bda5445 Merged revisions 79207 via svnmerge from
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-08-13 14:55:17 +00:00
tilghman 356721a45c Mostly cleanup of documentation to substitute the pipe with the comma, but a few other formatting cleanups, too.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31 01:10:47 +00:00
file 5c0772ce7d Merged revisions 77176 via svnmerge from
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-25 22:18:56 +00:00
file d17ff1ea42 Applications no longer need to call ast_module_user_add and 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-16 14:39:29 +00:00
file 9e24ed5ccf It is no longer required for each module that deals with a channel to call 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-16 13:35:20 +00:00
file f9980e7f7c Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74616 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11 17:34:30 +00:00
file 13e34e0fa9 Allow the native formats of a channel to influence the audio that is going 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-07-11 16:19:00 +00:00
qwell 87786050a2 Merged revisions 71068 via svnmerge from
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-22 15:03:32 +00:00
file 0a0ae2c364 Merged revisions 69558 via svnmerge from
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-15 19:25:11 +00:00
russell 7a0fe5c93f Convert uses of strdup() to ast_strdup()
(issue #9983, eliel)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69436 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 23:01:01 +00:00
tilghman eb5d461ed4 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 21:20:11 +00:00
file 3ef46b6a1c Merged revisions 61651 via svnmerge from
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-13 18:09:29 +00:00
file 5f1367dd74 Merged revisions 60361 via svnmerge from
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-06 01:15:50 +00:00
file 38bb3d1841 Merged revisions 59963 via svnmerge from
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-04-03 19:43:26 +00:00
file 01e2d46c58 Merged revisions 59223 via svnmerge from
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-26 19:35:24 +00:00
file 072a1a4133 Merged revisions 59213 via svnmerge from
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-03-26 18:14:33 +00:00
file 9c34ba77f7 Merged revisions 57053 via svnmerge from
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-28 17:47:41 +00:00
file 5f1271f728 Merged revisions 55947 via svnmerge from
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-21 20:05:15 +00:00
file 9a17fb8b1e Merged revisions 54714 via svnmerge from
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-16 00:54:10 +00:00
file e617d4e0d4 Merged revisions 53601 via svnmerge from
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-02-08 17:56:53 +00:00
file 62f5251e78 Merged revisions 51251 via svnmerge from
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-18 19:19:24 +00:00
file 1dc669e571 Merged revisions 50433 via svnmerge from
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-10 20:26:55 +00:00
kpfleming ec3737e835 const-ify some more APIs, and fix rev 49710 from branch-1.4 in a better way here
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49711 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 23:32:42 +00:00
murf 6c89612673 As per ToDo list, I have made it so that Wait(), WaitExten(), Congestion(), 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-10-05 01:40:06 +00:00
file 03ecb2c2d7 Documentation updates (thanks Shaun for the speechrec.txt one!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40968 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-24 15:44:24 +00:00
kpfleming 8b0c007ad9 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: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
file 1e12d4e1df 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: http://svn.digium.com/svn/asterisk/trunk@37881 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-18 16:22:26 +00:00
russell 556cad8ac4 don't leak a frame when breaking out of the loop on a timeout
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33448 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-11 14:52:04 +00:00
kpfleming 73c525e6e2 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07 18:54:56 +00:00
kpfleming 75168aeb12 fix various typos and other bits (from Ian Kinner)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-30 16:01:50 +00:00
file bae44ae965 Nothing to see here... move along
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30131 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24 23:08:39 +00:00
file ffb260e6b5 Update some documentation (file internal brain bug #42)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30104 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24 22:00:37 +00:00
file 89cd305596 Make sure that the channel is answered before doing SpeechBackground. (issue #josh-wait-I-dont-have-issue-numbers)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@27194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-15 15:30:21 +00:00
russell d99b677f35 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: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10 13:22:15 +00:00
russell 464f7a7cd8 remove \n from the end of a couple of synopsis fields
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23929 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 14:57:48 +00:00
rizzo 3664249356 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: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 14:08:19 +00:00
file f51c79cc26 Updates to speech recognition API and dialplan utilities. Moved to using dialplan functions, and some other misc things.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19645 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-13 00:18:52 +00:00
file a8d5975f06 Add ability to see if the person calling said anything or not.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19512 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-12 19:57:21 +00:00
file 483e826311 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: http://svn.digium.com/svn/asterisk/trunk@18979 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 23:29:50 +00:00