Module: sems
Branch: master
Commit: fdb28ab0724fa0ca77327d989540b26e29a07907
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=fdb28ab0724fa0ca77327d989540b26e29a07907

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Sep 21 15:26:51 2010 +0200

small optimization

---

 core/AmSipDialog.cpp |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp
index fe54570..690b888 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;
   }

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to