18 #ifndef _IAX2_PARSER_H 19 #define _IAX2_PARSER_H 87 #define DIRECTION_INGRESS 1 88 #define DIRECTION_OUTGRESS 2 93 struct iax_event *
event;
119 unsigned int final:1;
137 unsigned char semirand[32];
145 unsigned char afdata[0];
int iax_ie_append_short(struct iax_ie_data *ied, unsigned char ie, unsigned short value)
void iax_set_error(void(*output)(const char *data))
int iax_ie_append_int(struct iax_ie_data *ied, unsigned char ie, unsigned int value)
void iax_frame_subclass2str(enum iax_frame_subclass subclass, char *str, size_t len)
void iax_set_output(void(*output)(const char *data))
Provide cryptographic signature routines.
Structure for variables, used for configurations and for channel variables.
int iax_get_oframes(void)
struct iax_frame * iax_frame_new(int direction, int datalen, unsigned int cacheable)
Socket address structure.
ast_aes_decrypt_key mydcx
int iax_ie_append_raw(struct iax_ie_data *ied, unsigned char ie, const void *data, int datalen)
void iax_showframe(struct iax_frame *f, struct ast_iax2_full_hdr *fhi, int rx, struct ast_sockaddr *addr, int datalen)
AES_KEY ast_aes_encrypt_key
#define IAX_MAX_OSPBLOCK_NUM
unsigned char * calltokendata
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
static struct ast_mansession session
unsigned char iax_unknown
char * osptokenblock[IAX_MAX_OSPBLOCK_NUM]
int iax_ie_append(struct iax_ie_data *ied, unsigned char ie)
Asterisk internal frame definitions.
A set of macros to manage forward-linked lists.
Implementation of Inter-Asterisk eXchange, version 2 iax2-parser::c iax2-parser.h chan_iax2...
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
int iax_ie_append_versioned_uint64(struct iax_ie_data *ied, unsigned char ie, unsigned char version, uint64_t value)
int iax_get_iframes(void)
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
AES_KEY ast_aes_decrypt_key
const char * iax_ie2str(int ie)
int iax_ie_append_byte(struct iax_ie_data *ied, unsigned char ie, unsigned char dat)
int iax_ie_append_str(struct iax_ie_data *ied, unsigned char ie, const char *str)
void iax_frame_wrap(struct iax_frame *fr, struct ast_frame *f)
struct ast_variable * vars
struct ast_sockaddr apparent_addr
int iax_ie_append_addr(struct iax_ie_data *ied, unsigned char ie, const struct ast_sockaddr *addr)
Data structure associated with a single frame of data.
unsigned int ospblocklength[IAX_MAX_OSPBLOCK_NUM]
void iax_frame_free(struct iax_frame *fr)
int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen)