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

Author: Václav Kubart <[email protected]>
Committer: Václav Kubart <[email protected]>
Date:   Tue Jan  7 14:06:13 2014 +0100

OA q/f: clear OA state upon sending final non-ok reply

---

 core/AmOfferAnswer.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/core/AmOfferAnswer.cpp b/core/AmOfferAnswer.cpp
index f638b28..d7a4e3c 100644
--- a/core/AmOfferAnswer.cpp
+++ b/core/AmOfferAnswer.cpp
@@ -413,6 +413,14 @@ int AmOfferAnswer::onReplyOut(AmSipReply& reply)
     return -1;
   }
 
+  if( (reply.code >= 300) &&
+      (reply.cseq == cseq) ) {
+    // final error reply -> cleanup OA state
+    DBG("after %u reply to %s: resetting OA state\n",
+       reply.code, reply.cseq_method.c_str());
+    clearTransitionalState();
+  }
+
   return 0;
 }
 

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

Reply via email to