Commit 66cf9092 authored by Sylvain Berfini's avatar Sylvain Berfini

Fix incorrect way to check if proxy url is valid or not

parent 38928b08
......@@ -419,12 +419,9 @@ namespace Linphone.Model
if ((proxy != null) && (proxy.Length > 0))
{
// Check if proxy address is correct
proxy = String.Format("sip:{0}", proxy);
LinphoneAddress test = LinphoneManager.Instance.LinphoneCoreFactory.CreateLinphoneAddress(proxy);
if (test != null)
{
proxy = String.Format("sip:{0}", proxy);
}
else
if (test == null)
{
proxy = String.Format("sip:{0}", domain);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment