Browse code

core:zrtp: disable ZRTP for sbc app

Stefan Sayer authored on 03/11/2014 13:51:49
Showing 1 changed files
... ...
@@ -128,6 +128,9 @@ SBCCallLeg::SBCCallLeg(const SBCCallProfile& call_profile, AmSipDialog* p_dlg,
128 128
     cc_started(false),
129 129
     logger(NULL)
130 130
 {
131
+#ifdef WITH_ZRTP
132
+  enable_zrtp = false;
133
+#endif
131 134
   set_sip_relay_only(false);
132 135
   dlg->setRel100State(Am100rel::REL100_IGNORED);
133 136
 
... ...
@@ -155,6 +158,10 @@ SBCCallLeg::SBCCallLeg(SBCCallLeg* caller, AmSipDialog* p_dlg,
155 158
     cc_started(false),
156 159
     logger(NULL)
157 160
 {
161
+#ifdef WITH_ZRTP
162
+  enable_zrtp = false;
163
+#endif
164
+
158 165
   // FIXME: do we want to inherit cc_vars from caller?
159 166
   // Can be pretty dangerous when caller stored pointer to object - we should
160 167
   // not probably operate on it! But on other hand it could be handy for
... ...
@@ -202,6 +209,10 @@ SBCCallLeg::SBCCallLeg(AmSipDialog* p_dlg, AmSipSubscription* p_subs)
202 209
     cc_started(false),
203 210
     logger(NULL)
204 211
 {
212
+#ifdef WITH_ZRTP
213
+  enable_zrtp = false;
214
+#endif
215
+
205 216
   memset(&call_start_ts, 0, sizeof(struct timeval));
206 217
   memset(&call_connect_ts, 0, sizeof(struct timeval));
207 218
   memset(&call_end_ts, 0, sizeof(struct timeval));