Asterisk - The Open Source Telephony Project
18.5.0
|
IAX2 Provisioning protocol. More...
#include "parser.h"
Go to the source code of this file.
Macros | |
#define | PROV_FLAG_DEBUG (1 << 3) |
#define | PROV_FLAG_DIS_CALLERID (1 << 4) /* Caller-ID Disabled */ |
#define | PROV_FLAG_DIS_CALLWAIT (1 << 5) /* Caller-ID / Call Waiting Disable */ |
#define | PROV_FLAG_DIS_CIDCW (1 << 6) /* CID/CW Disabled */ |
#define | PROV_FLAG_DIS_THREEWAY (1 << 7) /* Three-way calling, transfer disabled */ |
#define | PROV_FLAG_HEARTBEAT (1 << 2) |
#define | PROV_FLAG_REGISTER (1 << 0) |
#define | PROV_FLAG_SECURE (1 << 1) |
#define | PROV_IE_AESKEY 14 /* 128-bits */ |
#define | PROV_IE_ALTSERVER 19 /* 32-bits */ |
#define | PROV_IE_FLAGS 12 /* 32-bits */ |
#define | PROV_IE_FORMAT 13 /* 32-bits */ |
#define | PROV_IE_GATEWAY 4 /* 32-bit */ |
#define | PROV_IE_IPADDR 2 /* 32-bit */ |
#define | PROV_IE_LANG 10 /* < 10 bytes */ |
#define | PROV_IE_NEWAESKEY 17 /* 128-bits */ |
#define | PROV_IE_PASS 7 /* < 20 bytes */ |
#define | PROV_IE_PORTNO 5 /* 16-bit */ |
#define | PROV_IE_PROVVER 18 /* 32-bits */ |
#define | PROV_IE_SERVERIP 15 /* 32-bits */ |
#define | PROV_IE_SERVERPASS 9 /* < 20 bytes */ |
#define | PROV_IE_SERVERPORT 16 /* 16-bits */ |
#define | PROV_IE_SERVERUSER 8 /* < 20 bytes */ |
#define | PROV_IE_SUBNET 3 /* 32-bit */ |
#define | PROV_IE_TOS 11 /* 8-bits */ |
#define | PROV_IE_USEDHCP 1 /* Presense only */ |
#define | PROV_IE_USER 6 /* < 20 bytes */ |
Functions | |
char * | iax_prov_complete_template (const char *line, const char *word, int pos, int state) |
char * | iax_provflags2str (char *buf, int buflen, unsigned int flags) |
int | iax_provision_build (struct iax_ie_data *provdata, unsigned int *signature, const char *template, int force) |
int | iax_provision_reload (int reload) |
int | iax_provision_unload (void) |
int | iax_provision_version (unsigned int *signature, const char *template, int force) |
IAX2 Provisioning protocol.
Definition in file provision.h.
#define PROV_FLAG_DEBUG (1 << 3) |
Definition at line 44 of file provision.h.
#define PROV_FLAG_DIS_CALLERID (1 << 4) /* Caller-ID Disabled */ |
Definition at line 46 of file provision.h.
#define PROV_FLAG_DIS_CALLWAIT (1 << 5) /* Caller-ID / Call Waiting Disable */ |
Definition at line 47 of file provision.h.
#define PROV_FLAG_DIS_CIDCW (1 << 6) /* CID/CW Disabled */ |
Definition at line 48 of file provision.h.
#define PROV_FLAG_DIS_THREEWAY (1 << 7) /* Three-way calling, transfer disabled */ |
Definition at line 49 of file provision.h.
#define PROV_FLAG_HEARTBEAT (1 << 2) |
Definition at line 43 of file provision.h.
#define PROV_FLAG_REGISTER (1 << 0) |
Definition at line 41 of file provision.h.
#define PROV_FLAG_SECURE (1 << 1) |
Definition at line 42 of file provision.h.
#define PROV_IE_AESKEY 14 /* 128-bits */ |
Definition at line 34 of file provision.h.
#define PROV_IE_ALTSERVER 19 /* 32-bits */ |
Definition at line 39 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_FLAGS 12 /* 32-bits */ |
Definition at line 32 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_FORMAT 13 /* 32-bits */ |
Definition at line 33 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_GATEWAY 4 /* 32-bit */ |
Definition at line 24 of file provision.h.
#define PROV_IE_IPADDR 2 /* 32-bit */ |
Definition at line 22 of file provision.h.
#define PROV_IE_LANG 10 /* < 10 bytes */ |
Definition at line 30 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_NEWAESKEY 17 /* 128-bits */ |
Definition at line 37 of file provision.h.
#define PROV_IE_PASS 7 /* < 20 bytes */ |
Definition at line 27 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_PORTNO 5 /* 16-bit */ |
Definition at line 25 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_PROVVER 18 /* 32-bits */ |
Definition at line 38 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_SERVERIP 15 /* 32-bits */ |
Definition at line 35 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_SERVERPASS 9 /* < 20 bytes */ |
Definition at line 29 of file provision.h.
#define PROV_IE_SERVERPORT 16 /* 16-bits */ |
Definition at line 36 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_SERVERUSER 8 /* < 20 bytes */ |
Definition at line 28 of file provision.h.
#define PROV_IE_SUBNET 3 /* 32-bit */ |
Definition at line 23 of file provision.h.
#define PROV_IE_TOS 11 /* 8-bits */ |
Definition at line 31 of file provision.h.
Referenced by iax_provision_build().
#define PROV_IE_USEDHCP 1 /* Presense only */ |
Definition at line 21 of file provision.h.
#define PROV_IE_USER 6 /* < 20 bytes */ |
Definition at line 26 of file provision.h.
Referenced by iax_provision_build().
char* iax_prov_complete_template | ( | const char * | line, |
const char * | word, | ||
int | pos, | ||
int | state | ||
) |
Definition at line 179 of file provision.c.
References AST_LIST_TRAVERSE, ast_mutex_lock, ast_mutex_unlock, ast_strdup, c, iax_template::list, iax_template::name, NULL, and provlock.
Referenced by handle_cli_iax2_provision(), and iax_show_provisioning().
char* iax_provflags2str | ( | char * | buf, |
int | buflen, | ||
unsigned int | flags | ||
) |
Definition at line 90 of file provision.c.
References ARRAY_LEN, ast_strlen_zero, buf, iax_flags, iax_template::name, NULL, and value.
Referenced by dump_prov_flags(), and iax_show_provisioning().
int iax_provision_build | ( | struct iax_ie_data * | provdata, |
unsigned int * | signature, | ||
const char * | template, | ||
int | force | ||
) |
Definition at line 209 of file provision.c.
References iax_template::altserver, ast_db_put(), ast_mutex_lock, ast_mutex_unlock, iax_template::flags, iax_template::format, iax_ie_append_byte(), iax_ie_append_int(), iax_ie_append_short(), iax_ie_append_str(), iax_template_find(), iax_template::lang, iax_template::pass, iax_template::port, PROV_IE_ALTSERVER, PROV_IE_FLAGS, PROV_IE_FORMAT, PROV_IE_LANG, PROV_IE_PASS, PROV_IE_PORTNO, PROV_IE_PROVVER, PROV_IE_SERVERIP, PROV_IE_SERVERPORT, PROV_IE_TOS, PROV_IE_USER, prov_ver_calc(), provlock, iax_template::server, iax_template::serverport, tmp(), iax_template::tos, and iax_template::user.
Referenced by iax2_provision(), and iax_provision_version().
int iax_provision_reload | ( | int | reload | ) |
Definition at line 529 of file provision.c.
References ast_category_browse(), ast_config_destroy(), ast_config_load2(), ast_db_deltree(), AST_LIST_TRAVERSE, ast_log, ast_verb, CONFIG_FLAG_FILEUNCHANGED, CONFIG_STATUS_FILEINVALID, CONFIG_STATUS_FILEUNCHANGED, iax_template::dead, iax_process_template(), iax_provision_free_templates(), iax_provision_init(), iax_template::list, LOG_NOTICE, NULL, and provinit.
Referenced by load_module(), and reload_config().
int iax_provision_unload | ( | void | ) |
Definition at line 520 of file provision.c.
References ast_cli_unregister_multiple(), iax_provision_free_templates(), and provinit.
Referenced by __unload_module().
int iax_provision_version | ( | unsigned int * | signature, |
const char * | template, | ||
int | force | ||
) |
Definition at line 258 of file provision.c.
References ast_db_get(), ast_debug, ast_log, ast_mutex_lock, ast_mutex_unlock, iax_provision_build(), LOG_ERROR, provlock, and tmp().
Referenced by check_provisioning().