Browse code

sbc: use setter methods instead of setting properties directly

Raphael Coeffic authored on 20/05/2013 11:56:04
Showing 1 changed files
... ...
@@ -239,8 +239,8 @@ void SBCCallLeg::applyAProfile()
239 239
   if (call_profile.rtprelay_enabled || call_profile.transcoder.isActive()) {
240 240
     DBG("Enabling RTP relay mode for SBC call\n");
241 241
 
242
-    rtp_relay_force_symmetric_rtp = call_profile.aleg_force_symmetric_rtp_value;
243
-    DBG("%s\n",rtp_relay_force_symmetric_rtp ?
242
+    setRtpRelayForceSymmetricRtp(call_profile.aleg_force_symmetric_rtp_value);
243
+    DBG("%s\n",getRtpRelayForceSymmetricRtp() ?
244 244
 	"forcing symmetric RTP (passive mode)":
245 245
 	"disabled symmetric RTP (normal mode)");
246 246
 
... ...
@@ -361,8 +361,8 @@ void SBCCallLeg::applyBProfile()
361 361
     if (call_profile.rtprelay_interface_value >= 0)
362 362
       setRtpRelayInterface(call_profile.rtprelay_interface_value);
363 363
 
364
-    rtp_relay_force_symmetric_rtp = call_profile.force_symmetric_rtp_value;
365
-    DBG("%s\n",rtp_relay_force_symmetric_rtp ?
364
+    setRtpRelayForceSymmetricRtp(call_profile.force_symmetric_rtp_value);
365
+    DBG("%s\n",getRtpRelayForceSymmetricRtp() ?
366 366
 	"forcing symmetric RTP (passive mode)":
367 367
 	"disabled symmetric RTP (normal mode)");
368 368