BelledonneCommunications / linphone-iphone

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)
http://linphone.org
GNU General Public License v3.0
588 stars 355 forks source link

Unable to connect with TLS and custom port #893

Closed iosmoon38 closed 2 weeks ago

iosmoon38 commented 1 year ago

I am trying to connect with TLS and the custom port but it crash in the real device, working fine in the simulator.

Here is swift code:

do {

                let from = try Factory.Instance.createAddress(addr: sip:[USERNAME]@DOMAIN.COM)
                let authInfo = try Factory.Instance.createAuthInfo(username: from.username, userid: "", passwd: passwd, ha1: "", realm: "", domain: from.domain)
                let accountParams = try mCore.createAccountParams()
                let identity = try Factory.Instance.createAddress(addr: String("sip:" + from.username + "@" + from.domain))

                let address = mCore.interpretUrl(url: "sip:[DOMAIN.COM]:[PORT]")
                try! accountParams.setIdentityaddress(newValue: sip:[USERNAME]@DOMAIN.COM))
                try address?.setTransport(newValue: .Tls)
                accountParams.registerEnabled = true
                accountParams.pushNotificationAllowed = true
                try accountParams.setServeraddress(newValue: address!)
                mAccount = try mCore.createAccount(params: accountParams)
                mCore.addAuthInfo(info: authInfo)
                try mCore.addAccount(account: mAccount!)
                mCore.defaultAccount = mAccount

            } catch { NSLog(error.localizedDescription) }

Anyone could help please?

dikshit11 commented 1 year ago

Same issue. When using interpretUrl it's crash in real device. let address = mCore.interpretUrl(url: "sip:[DOMAIN.COM]:[PORT]")

Anyone can help?

iosmoon38 commented 2 weeks ago

@benoit-martins, May I know in which version this issue is fixed?

Thank you

benoit-martins commented 2 weeks ago

Hi,

We have closed all open tickets as the upcoming release of Linphone 6.0 is a complete redesign of the app. This new version will address existing issues with a fresh approach, so we encourage you to explore the updated app when it's available.

Thank you for your understanding and support!

Best regards