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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Sep 27 13:00:54 2011 +0200

sbc: b/f: proper call control ending when no ACK received

---

 apps/sbc/SBC.cpp |    6 ++++++
 apps/sbc/SBC.h   |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp
index 0fc6ff6..eee02f3 100644
--- a/apps/sbc/SBC.cpp
+++ b/apps/sbc/SBC.cpp
@@ -1145,6 +1145,12 @@ void SBCDialog::onSessionTimeout() {
   AmB2BCallerSession::onSessionTimeout();
 }
 
+void SBCDialog::onNoAck(unsigned int cseq) {
+  onCallStopped();
+
+  AmB2BCallerSession::onNoAck(cseq);
+}
+
 void SBCDialog::onBye(const AmSipRequest& req)
 {
   DBG("onBye()\n");
diff --git a/apps/sbc/SBC.h b/apps/sbc/SBC.h
index 433b9fb..e33ac1d 100644
--- a/apps/sbc/SBC.h
+++ b/apps/sbc/SBC.h
@@ -143,6 +143,9 @@ class SBCDialog : public AmB2BCallerSession, public 
CredentialHolder
   /** handler called when SST timeout occured */
   void onSessionTimeout();
 
+  /** handler called when no ACK received */
+  void onNoAck(unsigned int cseq);
+
   /** stop call (both legs, CDR, prepaid etc) */
   void stopCall();
 

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

Reply via email to