linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Can't set TCP protocol as transport


From: Anton Pomozov
Subject: [Linphone-developers] Can't set TCP protocol as transport
Date: Tue, 09 Sep 2014 12:25:09 +0400

Got latest lib linphone.
Changed WizardViewController.m:


- (void)setDefaultSettings:(LinphoneProxyConfig*)proxyCfg {
    LinphoneManager* lm = [LinphoneManager instance];

    BOOL pushnotification = [lm lpConfigBoolForKey:@"pushnotification_preference"];
    if(pushnotification) {
        [lm addPushTokenToProxyConfig:proxyCfg];
    }

    LinphoneCore *lc = [LinphoneManager getLc];
    LCSipTransports transportValue={0};
    transportValue.dtls_port = 0;
    transportValue.tcp_port = -1;
    transportValue.tls_port = 0;
    transportValue.udp_port = 0;

    

    if (linphone_core_set_sip_transports(lc, &transportValue)) {
        [LinphoneLogger logc:LinphoneLoggerError format:"cannot set transport"];
    }
}

But it does not help. Linphone core has udp as transport.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]