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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Wed Aug 18 14:25:48 2010 +0200

use bye() instead of sendRequest("BYE")

- causes the state of the dialog to be changed the correct way while trying to 
tear down a call for which CANCEL has been rejected.

---

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

diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp
index b26cb1e..fe54570 100644
--- a/core/AmSipDialog.cpp
+++ b/core/AmSipDialog.cpp
@@ -255,7 +255,9 @@ void AmSipDialog::updateStatus(const AmSipReply& reply)
       }
       else {
        // CANCEL rejected
-       sendRequest("BYE");
+       bye();
+       // if BYE could not be sent,
+       // there is nothing we can do anymore...
       }
     }
     break;

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

Reply via email to