Commit cadbcdee authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez

ringdht: log cleanup

Refs #63196

Change-Id: I8c856f7718c591cf3680e3cd6bc4896d041d0493
parent a7ad5bbf
......@@ -629,10 +629,8 @@ void RingAccount::doRegister()
continue;
auto res = this_.treatedCalls_.insert(v->id);
this_.saveTreatedCalls();
if (!res.second) {
SFL_DBG("Ignoring already treated incomming call");
if (!res.second)
continue;
}
auto from = v->owner.getId().toString();
auto from_vid = v->id;
auto reply_vid = from_vid+1;
......@@ -670,7 +668,6 @@ void RingAccount::doRegister()
call->getIceTransport()->start(v->data);
call->setPeerNumber(from);
call->initRecFilename(from);
SFL_WARN("Pushing pending call with peer %s", from.c_str());
this_.pendingCalls_.push_back(call);
return true;
} catch (const std::exception& e) {
......
......@@ -842,8 +842,10 @@ invite_session_state_changed_cb(pjsip_inv_session *inv, pjsip_event *ev)
return;
auto call_ptr = static_cast<SIPCall*>(inv->mod_data[mod_ua_.id]);
if (!call_ptr)
if (!call_ptr) {
SFL_WARN("invite_session_state_changed_cb: can't find related call");
return;
}
auto call = std::static_pointer_cast<SIPCall>(call_ptr->shared_from_this());
if (ev and inv->state != PJSIP_INV_STATE_CONFIRMED) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment