Browse code

b/f:sbc: really apply next_hop_fixed to call

Stefan Sayer authored on 22/11/2013 21:25:19
Showing 2 changed files
... ...
@@ -318,8 +318,12 @@ void SBCCallLeg::applyBProfile()
318 318
   }
319 319
 
320 320
   if (!call_profile.next_hop.empty()) {
321
+    DBG("set next hop to '%s' (1st_req=%s,fixed=%s)\n",
322
+	call_profile.next_hop.c_str(), call_profile.next_hop_1st_req?"true":"false",
323
+	call_profile.next_hop_fixed?"true":"false");
321 324
     dlg->setNextHop(call_profile.next_hop);
322 325
     dlg->setNextHop1stReq(call_profile.next_hop_1st_req);
326
+    dlg->setNextHopFixed(call_profile.next_hop_fixed);
323 327
   }
324 328
 
325 329
   DBG("patch_ruri_next_hop = %i",call_profile.patch_ruri_next_hop);
... ...
@@ -347,7 +347,8 @@ struct SBCCallProfile
347 347
     log_rtp(false),
348 348
     log_sip(false),
349 349
     patch_ruri_next_hop(false),
350
-    next_hop_1st_req(false)
350
+    next_hop_1st_req(false),
351
+    next_hop_fixed(false)
351 352
   { }
352 353
 
353 354
   ~SBCCallProfile()