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 155
     cc_started(false),
156 156
     logger(NULL)
157 157
 {
158
+#ifdef WITH_ZRTP
159
+  enable_zrtp = false;
160
+#endif
161
+
158 162
   // FIXME: do we want to inherit cc_vars from caller?
159 163
   // Can be pretty dangerous when caller stored pointer to object - we should
160 164
   // 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 202
     cc_started(false),
203 203
     logger(NULL)
204 204
 {
205
+#ifdef WITH_ZRTP
206
+  enable_zrtp = false;
207
+#endif
208
+
205 209
   memset(&call_start_ts, 0, sizeof(struct timeval));
206 210
   memset(&call_connect_ts, 0, sizeof(struct timeval));
207 211
   memset(&call_end_ts, 0, sizeof(struct timeval));