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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon Apr 11 13:50:53 2011 +0200

b/f: accept any 4xx reply after CANCEL. No BYE after 3xx.

---

 core/AmSipDialog.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp
index 76ab776..1f04aec 100644
--- a/core/AmSipDialog.cpp
+++ b/core/AmSipDialog.cpp
@@ -347,12 +347,12 @@ void AmSipDialog::updateStatus(const AmSipReply& reply)
       if (reply.code < 200)
        break;
 
-      if(reply.code == 487){
+      if(reply.code >= 400){
        // CANCEL accepted
        DBG("CANCEL accepted, status -> Disconnected\n");
        status = Disconnected;
       }
-      else {
+      else if(reply.code < 300){
        // CANCEL rejected
        DBG("CANCEL rejected/too late - bye()\n");
        bye();

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

Reply via email to