提交 16fa338b authored 作者: Anthony Minessale's avatar Anthony Minessale

cleanup debug and memory and add stupid code for using sep dtls session when rtcp is not mux

上级 eae2e6ae
......@@ -53,6 +53,8 @@ SWITCH_BEGIN_EXTERN_C
typedef enum {
SWITCH_RTP_CRYPTO_SEND,
SWITCH_RTP_CRYPTO_RECV,
SWITCH_RTP_CRYPTO_SEND_RTCP,
SWITCH_RTP_CRYPTO_RECV_RTCP,
SWITCH_RTP_CRYPTO_MAX
} switch_rtp_crypto_direction_t;
......@@ -99,7 +101,7 @@ typedef struct ice_s {
icand_t cands[MAX_CAND][2];
int cand_idx;
int chosen;
int chosen[2];
char *ufrag;
char *pwd;
char *options;
......
......@@ -1706,8 +1706,6 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
abort();
}
printf("SOFIA nh[%p] pvt[%p] call_id %s key %s\n", (void*) nh, (void *) sofia_private, call_id, key);
memset(sofia_private, 0, sizeof(*sofia_private));
sofia_private->call_id = su_strdup(nh->nh_home, call_id);
sofia_private->network_ip = su_strdup(nh->nh_home, network_ip);
......
......@@ -133,6 +133,10 @@ SWITCH_DECLARE(int) switch_core_cert_gen_fingerprint(const char *prefix, dtls_fi
BIO_free_all(bio);
}
if (x509) {
X509_free(x509);
}
free(rsa);
return ret;
......
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论