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

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Sat Nov  2 14:51:50 2013 +0100

b/f:sbc:fix resumeHeld to update hold status only after checking it

---

 apps/sbc/CallLeg.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/sbc/CallLeg.cpp b/apps/sbc/CallLeg.cpp
index 4e779a1..2ae4570 100644
--- a/apps/sbc/CallLeg.cpp
+++ b/apps/sbc/CallLeg.cpp
@@ -708,13 +708,13 @@ void CallLeg::putOnHold()
 
 void CallLeg::resumeHeld(bool send_reinvite)
 {
-  hold_status = ResumeRequested;
-
   if (!isOnHold()) {
     handleHoldReply(true); // really?
     return;
   }
 
+  hold_status = ResumeRequested;
+
   TRACE("resume held remote\n");
 
   if (!send_reinvite) {

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

Reply via email to