diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-05 21:58:48 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-05 21:58:48 +0000 |
commit | 7c5853a25d19756bdd76c873582c094122d1642d (patch) | |
tree | e336c73c9ec2abdc210dd9b47d0d9efedda1e761 /main/app.c | |
parent | 2e86ed61ac7a962c291df0cec39ccfd234ccdc75 (diff) |
Add LISTFILTER dialplan function, along with supporting documentation. See
documentation for more information on how to use it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154915 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/app.c')
-rw-r--r-- | main/app.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/app.c b/main/app.c index b7429bff7..2d1b897fb 100644 --- a/main/app.c +++ b/main/app.c @@ -1815,6 +1815,19 @@ int ast_get_encoded_char(const char *stream, char *result, size_t *consumed) return 0; } +int ast_get_encoded_str(const char *stream, char *result, size_t result_size) +{ + char *cur = result; + size_t consumed; + + while (cur < result + result_size - 1 && !ast_get_encoded_char(stream, cur, &consumed)) { + cur++; + stream += consumed; + } + *cur = '\0'; + return 0; +} + void ast_close_fds_above_n(int n) { int x, null; |