aboutsummaryrefslogtreecommitdiffstats
path: root/main/app.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-05 21:58:48 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-05 21:58:48 +0000
commit7c5853a25d19756bdd76c873582c094122d1642d (patch)
treee336c73c9ec2abdc210dd9b47d0d9efedda1e761 /main/app.c
parent2e86ed61ac7a962c291df0cec39ccfd234ccdc75 (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.c13
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;