sipcall: cleanup

Change-Id: I0dbde3f7e74d3aea04397f72fa29d9665184f1f4
This commit is contained in:
Adrien Béraud
2025-07-17 20:22:34 -04:00
parent 3547a1e769
commit 8310709827

View File

@ -3362,20 +3362,20 @@ SIPCall::monitor() const
return;
auto acc = getSIPAccount();
if (!acc) {
JAMI_ERR("No account detected");
JAMI_ERROR("No account detected");
return;
}
JAMI_DBG("- Call %s with %s:", getCallId().c_str(), getPeerNumber().c_str());
JAMI_DBG("\t- Duration: %s", dht::print_duration(getCallDuration()).c_str());
JAMI_LOG("- Call {} with {}:", getCallId(), getPeerNumber());
JAMI_LOG("\t- Duration: {}", dht::print_duration(getCallDuration()));
for (const auto& stream : rtpStreams_)
JAMI_DBG("\t- Media: %s", stream.mediaAttribute_->toString(true).c_str());
JAMI_LOG("\t- Media: {}", stream.mediaAttribute_->toString(true));
#ifdef ENABLE_VIDEO
if (auto codec = getVideoCodec())
JAMI_DBG("\t- Video codec: %s", codec->name.c_str());
JAMI_LOG("\t- Video codec: {}", codec->name);
#endif
if (auto transport = getIceMedia()) {
if (transport->isRunning())
JAMI_DBG("\t- Media stream(s): %s", transport->link().c_str());
JAMI_LOG("\t- Media stream(s): {}", transport->link());
}
}