... | ... |
@@ -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 |
|