Browse code

sbc: update SBCCallRegistry only on positive replies to INVITE (was: 26035b6)

Stefan Sayer authored on 14/04/2014 00:41:12
Showing 1 changed files
... ...
@@ -1032,7 +1032,7 @@ void CallLeg::onSipReply(const AmSipRequest& req, const AmSipReply& reply, AmSip
1032 1032
 
1033 1033
   // update call registry (unfortunately has to be done always -
1034 1034
   // not possible to determine if learned in this reply (?))
1035
-  if (!dlg->getRemoteTag().empty()) {
1035
+  if (!dlg->getRemoteTag().empty() && reply.code >= 200 && req.method == SIP_METH_INVITE) {
1036 1036
     SBCCallRegistry::updateCall(getOtherId(), dlg->getRemoteTag());
1037 1037
   }
1038 1038