|
|
|
@ -430,7 +430,7 @@ static void __ice_agent_initialize(struct ice_agent *ag) {
|
|
|
|
|
create_random_ice_string(call, &ag->ufrag[1], 8);
|
|
|
|
|
create_random_ice_string(call, &ag->pwd[1], 26);
|
|
|
|
|
|
|
|
|
|
atomic64_set(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static struct ice_agent *__ice_agent_new(struct call_media *media) {
|
|
|
|
@ -512,7 +512,7 @@ void ice_update(struct ice_agent *ag, struct stream_params *sp, bool allow_reset
|
|
|
|
|
|
|
|
|
|
log_info_ice_agent(ag);
|
|
|
|
|
|
|
|
|
|
atomic64_set(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
media = ag->media;
|
|
|
|
|
call = media->call;
|
|
|
|
|
|
|
|
|
@ -894,7 +894,7 @@ static void __do_ice_checks(struct ice_agent *ag) {
|
|
|
|
|
if (!ag->pwd[0].s)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
atomic64_set(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
|
|
|
|
|
__DBG("running checks, call "STR_FORMAT" tag "STR_FORMAT"", STR_FMT(&ag->call->callid),
|
|
|
|
|
STR_FMT(&ag->media->monologue->tag));
|
|
|
|
@ -1307,7 +1307,7 @@ int ice_request(stream_fd *sfd, const endpoint_t *src,
|
|
|
|
|
if (!ag)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
atomic64_set(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
|
|
|
|
|
/* determine candidate pair */
|
|
|
|
|
{
|
|
|
|
@ -1416,7 +1416,7 @@ int ice_response(stream_fd *sfd, const endpoint_t *src,
|
|
|
|
|
if (!ag)
|
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
|
|
atomic64_set(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
atomic64_set_na(&ag->last_activity, rtpe_now.tv_sec);
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
LOCK(&ag->lock);
|
|
|
|
|