diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index fe54570d..690b8883 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -107,11 +107,13 @@ void AmSipDialog::updateStatus(const AmSipRequest& req) uas_trans[req.cseq] = AmSipTransaction(req.method,req.cseq,req.tt); // target refresh requests - if (req.from_uri.length() && - (req.method == "INVITE" || - req.method == "UPDATE" || - req.method == "SUBSCRIBE" || - req.method == "NOTIFY")) { + if (req.from_uri.length() && + (req.method.length()==6 && + ((req.method == "INVITE") || + (req.method == "UPDATE") || + (req.method == "NOTIFY"))) || + (req.method == "SUBSCRIBE")) + { remote_uri = req.from_uri; }