Exchange 2013 CU20

Status
Not open for further replies.

jloogey

Joined
Aug 21, 2018
Messages
3
Reaction score
0
I am getting a long string of System.Net exceptions in the log which then end with a Connect to Exchange failed/ SSL/TLS relationship error when trying to integrate 3CX PRO v15.5.13103.5 with Exchange 2013 CU20. I realize the documentation specifically calls out 2013 SP1 but just wanted to confirm that CU20 is supported before going the rabbit hole of chasing certificate mismatches.

If needed, a log entry can be provided.

Any insight is greatly appreciated.
 
Please post the stack trace so we can better understand the issue.
 
Certainly and thank you for the prompt request. (IRL email address in attached file changed to [email protected])

2018/08/21 15:44:53.810|2712|0020|Erro|Error while checking contacts from personal addressbook [email protected] for extension 105
2018/08/21 15:44:53.813|2712|0020|Excpt|Microsoft.Exchange.WebServices.Data.ServiceRequestException: The request failed. Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 199.59.242.151:443
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.<EmitRequest>d__33.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.<BuildEwsHttpWebRequest>d__44.MoveNext()
--- End of inner exception stack trace ---
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.<BuildEwsHttpWebRequest>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.<ValidateAndEmitRequest>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.<InternalExecuteAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.<ExecuteAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.ExchangeService.<BindToFolder>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Exchange.WebServices.Data.ExchangeService.<BindToFolder>d__25`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CompanyDirectoryService.Clients.UserNameExtensions.<GetContactsFromUserEmail>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CompanyDirectoryService.SchedulerJob.<SynchronizePersonalContacts>d__13.MoveNext()
2018/08/21 15:44:54.412|2712|0020|Erro|Error synchronizing calendar for user [email protected] : The request failed. Unable to connect to the remote server
2018/08/21 15:44:59.558|2712|0020|Erro|Connect to exchange failed
2018/08/21 15:44:59.558|2712|0020|Erro|The request failed. Unable to connect to the remote server
2018/08/21 15:45:20.556|2712|0020|Erro|Error synchronizing calendar for user [email protected] : The request failed. Unable to connect to the remote server

Just so we are clear. This is using a known good external URL (https://company.com/owa). If I use an internal link (https://server.local/owa) the error reduces to simply:

2018/08/21 15:43:36.294|2712|0012|Erro|Connect to exchange failed
2018/08/21 15:43:36.294|2712|0012|Erro|The request failed. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
2018/08/21 15:43:36.338|2712|0012|Erro|Error synchronizing calendar for user [email protected] : The request failed. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

But this is expected (I suppose) as our certificate does not encompass this.
 
Last edited:
Hello @jloogey

The internal connection fails due to the certificate. And the connection to the external endpoint is being rejected, probably by a firewall. The error is pretty clear:
The request failed. Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 199.59.242.151:443

3CX is trying to connect to the server on IP address 199.59.242.151 on port 443, and the server is not accepting this connection. When the server doesn't respond after a period of time, it's usually a firewall which is ignoring the connection request.

Kind regards.
 
Well, I suppose the mystery deepens then because in a trace route, 199.59.242.151 never appears in the table.

1 10.100.1.254 (10.100.1.254) 0.871 ms 0.542 ms 0.486 ms

2 142.254.177.25 (142.254.177.25) 8.612 ms 8.645 ms 8.834 ms

3 agg59.snaucaos02h.socal.rr.com (24.30.175.213) 9.155 ms 9.208 ms 9.415 ms

4 agg28.cyprcabw02r.socal.rr.com (72.129.22.136) 9.270 ms 12.557 ms 15.635 ms

5 agg27.tustcaft01r.socal.rr.com (72.129.21.2) 10.940 ms 15.314 ms 16.037 ms

6 bu-ether26.tustca4200w-bcr00.tbone.rr.com (66.109.3.232) 14.533 ms 16.072 ms 14.916 ms

7 bu-ether14.lsancarc0yw-bcr00.tbone.rr.com (66.109.6.4) 18.183 ms

be4.clmkohpe01r.midwest.rr.com (107.14.19.37) 21.174 ms

bu-ether14.lsancarc0yw-bcr00.tbone.rr.com (66.109.6.4) 13.421 ms

8 0.ae1.pr1.lax00.tbone.rr.com (107.14.17.250) 11.753 ms

ae2.lsancarc0yw-bpr01.tbone.rr.com (66.109.1.41) 11.815 ms

0.ae1.pr1.lax00.tbone.rr.com (107.14.17.250) 12.162 ms

9 ix-ae-24-0.tcore1.lvw-los-angeles.as6453.net (66.110.59.81) 11.456 ms 11.939 ms 11.540 ms

10 66.110.59.42 (66.110.59.42) 15.179 ms 14.056 ms 15.334 ms

11 cr2.la2ca.ip.att.net (12.122.129.98) 15.428 ms 13.660 ms 15.726 ms

12 cr81.gr2ca.ip.att.net (12.122.154.66) 14.214 ms 16.716 ms 14.851 ms

13 x.x.x.x (x.x.x.x) 12.278 ms 12.205 ms 13.180 ms (IP intentionally edited)
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
112,323
Messages
591,896
Members
165,474
Latest member
costionofrei