Browse code

b/f: sbc: fixed RTP rate limit.

Raphael Coeffic authored on 06/06/2013 13:04:07
Showing 1 changed files
... ...
@@ -199,8 +199,9 @@ SBCCallLeg::SBCCallLeg(SBCCallLeg* caller, AmSipDialog* p_dlg)
199 199
     dlg->setExtLocalTag(caller->dlg->getRemoteTag());
200 200
   }
201 201
 
202
-  if(rtp_relay_rate_limit.get()) {
203
-    rtp_relay_rate_limit.reset(new RateLimit(*rtp_relay_rate_limit.get()));
202
+  // copy RTP rate limit from caller leg
203
+  if(caller->rtp_relay_rate_limit.get()) {
204
+    rtp_relay_rate_limit.reset(new RateLimit(*caller->rtp_relay_rate_limit.get()));
204 205
   }
205 206
 
206 207
   // CC interfaces and variables should be already "evaluated" by A leg, we just