21 #ifndef _ASTERISK_RES_SRTP_H 22 #define _ASTERISK_RES_SRTP_H 44 int (*change_source)(
struct ast_srtp *srtp,
unsigned int from_ssrc,
unsigned int to_ssrc);
48 int (*unprotect)(
struct ast_srtp *srtp,
void *
buf,
int *size,
int rtcp);
50 int (*protect)(
struct ast_srtp *srtp,
void **
buf,
int *size,
int rtcp);
52 int (*get_random)(
unsigned char *key,
size_t len);
74 int (*set_master_key)(
struct ast_srtp_policy *policy,
const unsigned char *key,
size_t key_len,
const unsigned char *salt,
size_t salt_len);
75 void (*set_ssrc)(
struct ast_srtp_policy *policy,
unsigned long ssrc,
int inbound);
Asterisk main include file. File version handling, generic pbx functions.
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
int(* no_ctx)(struct ast_rtp_instance *rtp, unsigned long ssrc, void *data)
static void destroy(struct ast_trans_pvt *pvt)
static int replace(struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t len)