diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-04-29 18:53:01 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-04-29 18:53:01 +0000 |
commit | a866a7590085a1f635ca92459c3917e5cded257a (patch) | |
tree | 972bdf8f96c18f1b9667469307af69385f4a75f3 /funcs/func_speex.c | |
parent | 0ea83eab4811c8519e4e04bf4c59b1744cf1efc9 (diff) |
Merge str_substitution branch.
This branch adds additional methods to dialplan functions, whereby the result
buffers are now dynamic buffers, which can be expanded to the size of any
result. No longer are variable substitutions limited to 4095 bytes of data.
In addition, the common case of needing buffers much smaller than that will
enable substitution to only take up the amount of memory actually needed.
The existing variable substitution routines are still available, but users
of those API calls should transition to using the dynamic-buffer APIs.
Reviewboard: http://reviewboard.digium.com/r/174/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_speex.c')
-rw-r--r-- | funcs/func_speex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/funcs/func_speex.c b/funcs/func_speex.c index a3a5345ed..edfa3579b 100644 --- a/funcs/func_speex.c +++ b/funcs/func_speex.c @@ -337,13 +337,15 @@ static int speex_read(struct ast_channel *chan, const char *cmd, char *data, cha static struct ast_custom_function agc_function = { .name = "AGC", .write = speex_write, - .read = speex_read + .read = speex_read, + .read_max = 22, }; static struct ast_custom_function denoise_function = { .name = "DENOISE", .write = speex_write, - .read = speex_read + .read = speex_read, + .read_max = 22, }; static int unload_module(void) |