23 #ifndef _ASTERISK_PHONEPROV_H
24 #define _ASTERISK_PHONEPROV_H
29 enum ast_phoneprov_std_variables {
30 AST_PHONEPROV_STD_MAC = 0,
31 AST_PHONEPROV_STD_PROFILE,
32 AST_PHONEPROV_STD_USERNAME,
33 AST_PHONEPROV_STD_DISPLAY_NAME,
34 AST_PHONEPROV_STD_SECRET,
35 AST_PHONEPROV_STD_LABEL,
36 AST_PHONEPROV_STD_CALLERID,
37 AST_PHONEPROV_STD_TIMEZONE,
38 AST_PHONEPROV_STD_LINENUMBER,
39 AST_PHONEPROV_STD_LINEKEYS,
40 AST_PHONEPROV_STD_SERVER,
41 AST_PHONEPROV_STD_SERVER_PORT,
42 AST_PHONEPROV_STD_SERVER_IFACE,
43 AST_PHONEPROV_STD_VOICEMAIL_EXTEN,
44 AST_PHONEPROV_STD_EXTENSION_LENGTH,
45 AST_PHONEPROV_STD_TZOFFSET,
46 AST_PHONEPROV_STD_DST_ENABLE,
47 AST_PHONEPROV_STD_DST_START_MONTH,
48 AST_PHONEPROV_STD_DST_START_MDAY,
49 AST_PHONEPROV_STD_DST_START_HOUR,
50 AST_PHONEPROV_STD_DST_END_MONTH,
51 AST_PHONEPROV_STD_DST_END_MDAY,
52 AST_PHONEPROV_STD_DST_END_HOUR,
53 AST_PHONEPROV_STD_VAR_LIST_LENGTH,
75 typedef int(*ast_phoneprov_load_users_cb)(void);
Asterisk main include file. File version handling, generic pbx functions.
int ast_phoneprov_provider_register(char *provider_name, ast_phoneprov_load_users_cb load_users)
Registers a config provider to phoneprov.
void ast_phoneprov_delete_extensions(char *provider_name)
Deletes all extensions for this provider.
Inlinable API function macro.
int ast_phoneprov_add_extension(char *provider_name, struct varshead *vars)
Adds an extension.
void ast_phoneprov_provider_unregister(char *provider_name)
Unegisters a config provider from phoneprov and frees its resources.
static int load_users(void)
Callback that loads the users from phoneprov sections.
const char * ast_phoneprov_std_variable_lookup(enum ast_phoneprov_std_variables var)
Returns the string respresentation of a phoneprov standard variable.
void ast_phoneprov_delete_extension(char *provider_name, char *macaddress)
Deletes an extension.