Browse code

b/f: short-circuit ACK processing in AmSipDialog

before this fix, ACK requests would accumulate in uas_reqs for no reason.

Raphael Coeffic authored on 04/03/2013 10:40:07
Showing 1 changed files
... ...
@@ -76,7 +76,9 @@ AmSipDialog::~AmSipDialog()
76 76
 bool AmSipDialog::onRxReqSanity(const AmSipRequest& req)
77 77
 {
78 78
   if (req.method == SIP_METH_ACK) {
79
-    return true;
79
+    if(onRxReqStatus(req) && hdl)
80
+      hdl->onSipRequest(req);
81
+    return false;
80 82
   }
81 83
 
82 84
   if (req.method == SIP_METH_CANCEL) {