getting Failure Error from Icelink Http request timed out when leave async is called


Ask A Question





Login To post a question

I am facing an issue in icelink of Frozen Mountain. In my App I am initiating Video Conference call for the first time after the App is installed. Once the connection is established successfully then when we try to disconnect call using the functionality given in the Sample app at that time I am getting error in Leaveasync that [IceLink] ERROR [FM] 2018/06/13-21:57:40 Failedto leave.
HTTP request timed out.
and StopLocalmedia block is not getting executed due to which my Apps camera and microphone doesn’t get closed. This happens only for the first time after the App is installed. If someone has a solution for this then please let me know how to solve this issue.

[App instance].onDisconnect = [FMCallback callbackWithSingleAction:^(id errorDescription) {
        NSLog(@"Here indisconnecting");
        if (![App instance].disconnecting) {
            [App instance].disconnecting = YES;
            if ([(NSString*)errorDescription length] > 0) {
               // [sdkContainerView alert:(NSString*)errorDescription];
                [[[App instance] stopLocalMedia] thenWithResolveActionBlock:^(NSObject *o) {
                    dispatch_async(dispatch_get_main_queue(), ^{
                        [[App instance] cleanup];
                       // [weakSelf dismissViewControllerAnimated:NO completion:nil];
                    });
                    
                } rejectActionBlock:^(NSException *e) {
                  //  [sdkContainerView alert:e.message];
                    [FMIceLinkLog errorWithMessage:@"Could not stop local media." ex:e];
                }];
            }
            else {
            
                NSLog(@"Here indisconnecting 1111");
                [[[[App instance] leaveAsync] thenWithResolveActionBlock:^(NSObject *o) {
                // here it should go
                    NSLog(@"Here the value becomes %@",o);
                    dispatch_async(dispatch_get_main_queue(), ^{
                        NSLog(@"Here indisconnecting 2222");
                       // [sdkContainerView dismissViewControllerAnimated:NO completion:nil];
                    });
                }]
                 failWithRejectActionBlock:^(NSException *e) {
                     NSLog(@"Here indisconnecting 3333 %@",e.message); /// gives me error here
                    // [sdkContainerView alert:e.message];
                     [FMIceLinkLog errorWithMessage:@" Failedto leave." ex:e];
                     [App instance].disconnecting = NO;
                 }];
                NSLog(@"Here indisconnecting 6666");
                //the below code is not getting executed
                [[[[App instance] stopLocalMedia]  thenWithResolveActionBlock:^(NSObject *o) {
                    dispatch_async(dispatch_get_main_queue(), ^{
                        NSLog(@"Here indisconnecting 4444");
                        [[App instance] cleanup];
                    });
                }]
                 failWithRejectActionBlock:^(NSException *e) {
                     NSLog(@"Here indisconnecting 5555");
                    // [weakSelf alert:e.message];
                     [FMIceLinkLog errorWithMessage:@"Failed to stop local media." ex:e];
                 }];
            }
        }
        
    }];

For more info please click herehttps://stackoverflow.com/q/50842374



Have a question or need a custom quote?
info@smartinfocare.com