Browse code

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

Václav Kubart authored on 18/10/2013 07:50:09
Showing 1 changed files
... ...
@@ -245,6 +245,14 @@ void SBCCallLeg::onStart()
245 245
   // this should be the first thing called in session's thread
246 246
   CallLeg::onStart();
247 247
   if (!a_leg) applyBProfile(); // A leg needs to evaluate profile first
248
+  else if (!getOtherId().empty()) {
249
+    // A leg but we already have a peer, what means that this call leg was
250
+    // created as an A leg for already existing B leg (for example call
251
+    // transfer)
252
+    // we need to apply a profile, we use B profile and understand it as an
253
+    // "outbound" profile though we are in A leg
254
+    applyBProfile();
255
+  }
248 256
 }
249 257
 
250 258
 void SBCCallLeg::applyAProfile()