Browse code

sbc: do not change OA mode in SBCCallLeg

Václav Kubart authored on 27/11/2013 12:55:32
Showing 2 changed files
... ...
@@ -103,10 +103,6 @@ SBCCallLeg::SBCCallLeg(const SBCCallProfile& call_profile, AmSipDialog* p_dlg,
103 103
   set_sip_relay_only(false);
104 104
   dlg->setRel100State(Am100rel::REL100_IGNORED);
105 105
 
106
-  // better here than in onInvite
107
-  // or do we really want to start with OA when handling initial INVITE?
108
-  dlg->setOAEnabled(false);
109
-
110 106
   memset(&call_start_ts, 0, sizeof(struct timeval));
111 107
   memset(&call_connect_ts, 0, sizeof(struct timeval));
112 108
   memset(&call_end_ts, 0, sizeof(struct timeval));
... ...
@@ -138,7 +134,6 @@ SBCCallLeg::SBCCallLeg(SBCCallLeg* caller, AmSipDialog* p_dlg,
138 134
   // call_profile.cc_vars.clear();
139 135
 
140 136
   dlg->setRel100State(Am100rel::REL100_IGNORED);
141
-  dlg->setOAEnabled(false);
142 137
 
143 138
   // we need to apply it here instead of in applyBProfile because we have caller
144 139
   // here (FIXME: do it on better place and better way than accessing internals
... ...
@@ -624,11 +619,6 @@ void SBCCallLeg::updateLocalSdp(AmSdp &sdp)
624 619
   CallLeg::updateLocalSdp(sdp);
625 620
 }
626 621
 
627
-void SBCCallLeg::updateRemoteSdp(AmSdp &sdp)
628
-{
629
-  CallLeg::updateRemoteSdp(sdp);
630
-}
631
-
632 622
 void SBCCallLeg::onControlCmd(string& cmd, AmArg& params) {
633 623
   if (cmd == "teardown") {
634 624
     if (a_leg) {
... ...
@@ -156,7 +156,6 @@ class SBCCallLeg : public CallLeg, public CredentialHolder
156 156
   // media interface must be accessible from CC modules
157 157
   AmB2BMedia *getMediaSession() { return AmB2BSession::getMediaSession(); }
158 158
   virtual void updateLocalSdp(AmSdp &sdp);
159
-  virtual void updateRemoteSdp(AmSdp &sdp);
160 159
   void changeRtpMode(RTPRelayMode new_mode) { CallLeg::changeRtpMode(new_mode); }
161 160
 
162 161
   bool reinvite(const AmSdp &sdp, unsigned &request_cseq);