diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp index b589fb55..ad8a055c 100644 --- a/apps/sbc/SBC.cpp +++ b/apps/sbc/SBC.cpp @@ -1339,7 +1339,7 @@ void SBCCalleeSession::onSipReply(const AmSipReply& reply, int old_dlg_status, // update call registry (unfortunately has to be done always - // not possible to determine if learned in this reply) - if (!dlg.remote_tag.empty()) { + if (!dlg.remote_tag.empty() && reply.code >= 200 && trans_method == SIP_METH_INVITE) { SBCCallRegistry::updateCall(other_id, dlg.remote_tag); }