From 8fc2c0f7245703d3dde31d7fa035f3f28c82daeb Mon Sep 17 00:00:00 2001 From: tilghman Date: Wed, 29 Apr 2009 18:53:01 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@191140 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_lock.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'funcs/func_lock.c') diff --git a/funcs/func_lock.c b/funcs/func_lock.c index d6df6d0ef..de8377a9c 100644 --- a/funcs/func_lock.c +++ b/funcs/func_lock.c @@ -324,16 +324,19 @@ static int trylock_read(struct ast_channel *chan, const char *cmd, char *data, c static struct ast_custom_function lock_function = { .name = "LOCK", .read = lock_read, + .read_max = 2, }; static struct ast_custom_function trylock_function = { .name = "TRYLOCK", .read = trylock_read, + .read_max = 2, }; static struct ast_custom_function unlock_function = { .name = "UNLOCK", .read = unlock_read, + .read_max = 2, }; static int unload_module(void) -- cgit v1.2.3