Browse code

sbc:dsm: rtp_interface for addCallee

Stefan Sayer authored on 22/12/2013 00:07:42
Showing 3 changed files
... ...
@@ -474,6 +474,12 @@ EXEC_ACTION_START(MODSBCActionAddCallee) {
474 474
       p.evaluateOutboundInterface();
475 475
     }
476 476
 
477
+    it = sc_sess->var.find(varname+"." DSM_SBC_PARAM_ADDCALLEE_RTP_INTERFACE);
478
+    if (it != sc_sess->var.end()) {
479
+      p.rtprelay_interface = it->second;
480
+      p.evaluateRTPRelayInterface();
481
+    }
482
+
477 483
     sbc_call_leg->addCallee(peer, hdrs);
478 484
   } else if (mode == DSM_SBC_PARAM_ADDCALLEE_MODE_LTAG) {
479 485
     string ltag;
... ...
@@ -23,7 +23,7 @@
23 23
 #define DSM_SBC_PARAM_ADDCALLEE_NEXT_HOP_PATCH_RURI "next_hop_patch_ruri"
24 24
 #define DSM_SBC_PARAM_ADDCALLEE_NEXT_HOP_FIXED      "next_hop_fixed"
25 25
 #define DSM_SBC_PARAM_ADDCALLEE_OUTBOUND_INTERFACE "outbound_interface"
26
-
26
+#define DSM_SBC_PARAM_ADDCALLEE_RTP_INTERFACE      "rtp_interface"
27 27
 
28 28
 #define DSM_SBC_PARAM_ADDCALLEE_RTP_MODE       "rtp_mode"
29 29
 #define DSM_SBC_PARAM_ADDCALLEE_TRANSPARENT_DLG_ID "transparent_dlg_id"
... ...
@@ -209,6 +209,8 @@ sbc.addCallee(string mode, string varname)
209 209
 
210 210
          $varname.outbound_proxy - outbound proxy in new call
211 211
          $varname.outbound_interface - outbound interface used for new call
212
+         $varname.rtp_interface - rtp interface used for new call
213
+
212 214
 
213 215
          $varname.transparent_dlg_id - "yes" or "no": use transparent dlg IDs for new call; default no
214 216
                                         - "no" very much advised if current leg was connected before!