no message

This commit is contained in:
Ilya Laktyushin
2018-09-07 22:36:29 +03:00
parent 2e5d6896a0
commit e35508a06c
44 changed files with 1132 additions and 256 deletions

View File

@@ -181,7 +181,7 @@ static int callControllerNetworkTypeForType(OngoingCallNetworkType type) {
TGVoipLoggingFunction = loggingFunction;
}
- (instancetype _Nonnull)initWithQueue:(id<OngoingCallThreadLocalContextQueue> _Nonnull)queue proxy:(VoipProxyServer * _Nullable)proxy networkType:(OngoingCallNetworkType)networkType {
- (instancetype _Nonnull)initWithQueue:(id<OngoingCallThreadLocalContextQueue> _Nonnull)queue allowP2P:(BOOL)allowP2P proxy:(VoipProxyServer * _Nullable)proxy networkType:(OngoingCallNetworkType)networkType {
self = [super init];
if (self != nil) {
_queue = queue;
@@ -193,7 +193,7 @@ static int callControllerNetworkTypeForType(OngoingCallNetworkType type) {
_callConnectTimeout = 30.0;
_callPacketTimeout = 10.0;
_dataSavingMode = 0;
_allowP2P = true;
_allowP2P = allowP2P;
_networkType = networkType;
_controller = new tgvoip::VoIPController();
@@ -263,7 +263,7 @@ static int callControllerNetworkTypeForType(OngoingCallNetworkType type) {
_controller->SetEncryptionKey((char *)key.bytes, isOutgoing);
/*releasable*/
_controller->SetRemoteEndpoints(endpoints, _allowP2P, 65);
_controller->SetRemoteEndpoints(endpoints, _allowP2P, maxLayer);
_controller->Start();
_controller->Connect();