52 char key[256],
result[256];
60 snprintf(key,
sizeof(key),
"%s/%s", dest, trimcid);
63 if (!strcasecmp(
result,
"allow"))
65 if (!strcasecmp(
result,
"deny"))
67 if (!strcasecmp(
result,
"kill"))
69 if (!strcasecmp(
result,
"torture"))
100 snprintf(key,
sizeof(key),
"%s/%s", dest, trimcid);
Persistent data storage (akin to *doze registry)
int ast_db_put(const char *family, const char *key, const char *value)
Store value addressed by family/key.
int ast_db_get(const char *family, const char *key, char *value, int valuelen)
Get key value specified by family/key.
int ast_db_del(const char *family, const char *key)
Delete entry in astdb.
int ast_db_deltree(const char *family, const char *keytree)
Delete one or more entries in astdb.
Asterisk main include file. File version handling, generic pbx functions.
CallerID (and other GR30) management and generation Includes code and algorithms from the Zapata libr...
int ast_callerid_parse(char *instr, char **name, char **location)
Destructively parse inbuf into name and location (or number)
void ast_shrink_phone_number(char *n)
Shrink a phone number in place to just digits (more accurately it just removes ()'s,...
General Asterisk PBX channel definitions.
Convenient Signal Processing routines.
Generic File Format Support. Should be included by clients of the file handling routines....
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
Asterisk locking-related definitions:
int ast_privacy_set(char *dest, char *cid, int status)
int ast_privacy_check(char *dest, char *cid)
int ast_privacy_reset(char *dest)
Persistent data storage (akin to *doze registry)
#define AST_PRIVACY_ALLOW
#define AST_PRIVACY_UNKNOWN
#define AST_PRIVACY_TORTURE
static force_inline int attribute_pure ast_strlen_zero(const char *s)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.