diff --git a/src/call/call.c b/src/call/call.c index 3621ba78..a908739e 100644 --- a/src/call/call.c +++ b/src/call/call.c @@ -115,10 +115,6 @@ static int call_send_invite(struct call_ctx* ctx, struct call_session* s) { inv->tracks[0].sample_rate = CALL_OPUS_SAMPLE_RATE; inv->tracks[0].channels = 1; inv->tracks[0].bitrate = 32000; - DEBUG_DEBUG(DEBUG_CATEGORY_CALL, "call INVITE TX id=%016llx peer=%016llx group=%016llx force=%u expires_us=%lld " - "ntp_offset_us=%lld synced=%d", (unsigned long long)s->call_id, (unsigned long long)s->peer_node_id, - (unsigned long long)s->group_id, s->force, (long long)inv->expires_us, - (long long)ctx->inst->ntp.offset_us, ctx->inst->ntp.synced); return call_send(ctx, s->group_id, s->peer_node_id, buf, sizeof(buf), ROUTE_CRYPTO_SIGN | ROUTE_CRYPTO_ENCRYPT); } @@ -574,14 +570,8 @@ static void call_handle_invite(struct call_ctx* ctx, uint64_t from, uint64_t gro int64_t now_us = ntp_time_get_us(ctx->inst); if (!call_id || inv_group != group || invite.force > 1 || invite.num_tracks != 1 || n != sizeof(invite) || invite.expires_us <= now_us || invite.expires_us > now_us + 4000000) { - const char* reason = !call_id ? "zero_id" : inv_group != group ? "group" : invite.force > 1 ? "force" : - invite.num_tracks != 1 ? "tracks" : n != sizeof(invite) ? "size" : invite.expires_us <= now_us ? "expired" : "future"; - DEBUG_WARN(DEBUG_CATEGORY_CALL, "call INVITE rejected reason=%s id=%016llx from=%016llx group=%016llx declared=%016llx " - "force=%u tracks=%u bytes=%zu/%zu expires_us=%lld now_us=%lld remaining_ms=%lld ntp_offset_us=%lld synced=%d", - reason, (unsigned long long)call_id, (unsigned long long)from, (unsigned long long)group, - (unsigned long long)inv_group, invite.force, invite.num_tracks, n, sizeof(invite), (long long)invite.expires_us, - (long long)now_us, (long long)(invite.expires_us / 1000 - now_us / 1000), - (long long)ctx->inst->ntp.offset_us, ctx->inst->ntp.synced); return; + DEBUG_WARN(DEBUG_CATEGORY_CALL, "invalid/stale call invite id=%016llx force=%u bytes=%zu", + (unsigned long long)call_id, invite.force, n); return; } /* кодограмма-дубликат (тот же call_id): пока звоним — пере-взводим watchdog и