linphone-developers
[Top][All Lists]
Advanced

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

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


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

Hello,

I tried to set proxy like this:

<entry name="reg_proxy" overwrite="true">&lt;sip:ip-address;transport=tcp&gt;</entry>

but it doesn't work too.
I tried to change default transport in Root.plist, but the result is same - liblinphone always use UDP as transport.

Thanks for helping!

09 сент. 2014 г., в 16:04, BIENKOWSKI Guillaume <address@hidden> написал(а):

Hello,

Take a look at the wizard_* rc files in the project, they are the ones that preset the transport in the end of the login process.




On Tue, Sep 9, 2014 at 10:25 AM, Anton Pomozov <address@hidden> wrote:
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.

_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

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