Module: sems Branch: master Commit: 7ba4a52ab992297500317055de85710036035c56 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=7ba4a52ab992297500317055de85710036035c56
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Apr 14 02:41:12 2014 +0200 sbc: update SBCCallRegistry only on positive replies to INVITE (was: 26035b6) --- apps/sbc/CallLeg.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/apps/sbc/CallLeg.cpp b/apps/sbc/CallLeg.cpp index e181ca6..15b342d 100644 --- a/apps/sbc/CallLeg.cpp +++ b/apps/sbc/CallLeg.cpp @@ -1032,7 +1032,7 @@ void CallLeg::onSipReply(const AmSipRequest& req, const AmSipReply& reply, AmSip // update call registry (unfortunately has to be done always - // not possible to determine if learned in this reply (?)) - if (!dlg->getRemoteTag().empty()) { + if (!dlg->getRemoteTag().empty() && reply.code >= 200 && req.method == SIP_METH_INVITE) { SBCCallRegistry::updateCall(getOtherId(), dlg->getRemoteTag()); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
