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

Author: Václav Kubart <[email protected]>
Committer: Václav Kubart <[email protected]>
Date:   Fri Oct 18 09:50:09 2013 +0200

sbc b/f: a call profile should be always applied

---

 apps/sbc/SBCCallLeg.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/apps/sbc/SBCCallLeg.cpp b/apps/sbc/SBCCallLeg.cpp
index 0d5cfc8..56fd7ad 100644
--- a/apps/sbc/SBCCallLeg.cpp
+++ b/apps/sbc/SBCCallLeg.cpp
@@ -245,6 +245,14 @@ void SBCCallLeg::onStart()
   // this should be the first thing called in session's thread
   CallLeg::onStart();
   if (!a_leg) applyBProfile(); // A leg needs to evaluate profile first
+  else if (!getOtherId().empty()) {
+    // A leg but we already have a peer, what means that this call leg was
+    // created as an A leg for already existing B leg (for example call
+    // transfer)
+    // we need to apply a profile, we use B profile and understand it as an
+    // "outbound" profile though we are in A leg
+    applyBProfile();
+  }
 }
 
 void SBCCallLeg::applyAProfile()

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

Reply via email to