mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
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
This commit is contained in:
13
main/app.c
13
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;
|
||||
|
Reference in New Issue
Block a user