diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-05 21:58:48 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-11-05 21:58:48 +0000 |
commit | 0d25ddd366254857327134e433f58ceea82e863a (patch) | |
tree | e336c73c9ec2abdc210dd9b47d0d9efedda1e761 /main | |
parent | 5250201d8bb45a90213ba8127e167e27bc1953c6 (diff) |
Add LISTFILTER dialplan function, along with supporting documentation. See
documentation for more information on how to use it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@154915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-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; |