question

KanchJ-8242 avatar image
0 Votes"
KanchJ-8242 asked JimmyYang-MSFT commented

Skype for Business 2015 Standard Server with TCP Sip trunk NOT working (stilling using TLS )

Hi there,

I'm trying to use skype call into Asterisk (PBX). I had Skype for Business 2015 Standard Server installed with collocated mediation server enabled, mediation server configuration as follows:
118314-1.png

Also, I set up a PTSN gateway as follows:

118229-2.png

and a SIP trunk:
(picture upload failed)


Trunk name: 172.31.45.64-5060
PTSN gateway: 172.31.45.64
Listening port: 5060
SIP Transport: TCP
Mediation Server: sfb.xxxx
Mediation Server port : 5060



when I trying to use Skype for Business Client call Asterisk, let's say, call 5464604320:

118228-4.png

client responsed with 'No response from server' .

After I check SFB logs , I found following output :

 Severity: error
 Text: Failed to complete outbound connection
 Peer-IP: 172.31.32.14:5070
 Connection-ID: 0x1C503
 Transport: TLS
 Result-Code: 0x8007274d
 Data: ip-address="172.31.32.14";peer-type="InternalServer";winsock-code="10061";winsock-info="The peer actively refused the connection attempt"
 $$end_record

 Severity: error
 Text: Message was not sent because the connection was closed
 SIP-Start-Line: INVITE sip:5464604320@172.31.45.64:5070;user=phone;maddr=sfb.xxxxx SIP/2.0
 SIP-Call-ID: 440f6a53e6fb44e4a23cd53643a6dae3
 SIP-CSeq: 1 INVITE
 Peer: 172.31.32.14:5070

 ......

 TL_INFO(TF_PROTOCOL) [sfb\sfb]162C.2FD0::07/27/2021-12:05:30.871.0042EE20 (OutboundRouting,OutboundRoutingDispatcher.OnResponse:outboundroutingdispatcher.cs(604)) [2753578010]Received status code 504 for request sip:5464604320@172.31.45.64:5070;user=phone;maddr=sfb.xxxxxx
 TL_INFO(TF_COMPONENT) [sfb\sfb]162C.2FD0::07/27/2021-12:05:30.871.0042EE21 (OutboundRouting,OutboundGateway.IncrementDownCounter:gateway.cs(233)) (000000000164C597)Processing response from Target 172.31.45.64-5060 [Response=504]
 TL_INFO(TF_PROTOCOL) [sfb\sfb]162C.2FD0::07/27/2021-12:05:30.871.0042EE22 (OutboundRouting,OutboundRoutingDispatcher.ReRouteRequest:outboundroutingdispatcher.cs(2998)) [2753578010]Target [172.31.45.64-5060] failure - reason [504 Server time-out]


in the log above, 172.31.45.64 is my asterisk server with TCP enabled on 5060. 172.31.32.14 is SFB with collocated mediation server.

it looks like the problem is SFB is using TLS for inviting Asterisk: INVITE sip:5464604320@172.31.45.64:5070

I can also get and error event in Event Viewer:

 An attempt to route to a gateway failed.
    
 Could not route to Gateway 172.31.45.64-5060, the attempt failed with response code: 504 Server time-out (CallID: e2a1902e099f4f1f871744c28fb5ef6f).
 Failure occurrences: 1, since 2021/7/27 12:44:30.
 Cause: A gateway failed to respond to a request within allotted time or was unable to route the request due to some error.
 Resolution:
 Check whether the specified gateway is up and is properly configured.

the port used for invite should be 5060 as trunk settings showed. I don't know why it still using port 5070. Also, the transport should be TCP rather than TLS.

Anybody know how to change that port number (from 5070 to 5060 with TCP)?

Thanks in advance.






office-skype-business-server-administrationoffice-skype-business-server-deploymentoffice-skype-business-server-enterprise-voiceoffice-skype-business-server-conferencing
1.png (51.3 KiB)
2.png (66.3 KiB)
4.png (35.8 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @KanchJ-8242

Welcome to our Q&A forum!

According to your description, it seems this issue related to the trunk configuration. In this command "Set-CsTrunkConfiguration", we found this attribute "SRTPMode". If the gateway is configured with Transmission Control Protocol (TCP) as the transport, SRTPMode is internally set to NotSupported. So you could check if your SRTPMode is not supported.

For more details about how to configure the trunk setting, you could also refer to this article.


0 Votes 0 ·

Hi Jimmy, thanks for your reply.

I have checked that setting by running Get-CsTrunkConfiguration , as you can see, SRTP was set to Not Supported

118555-screenshot-2021-07-28-145357.png




0 Votes 0 ·

Hi @KanchJ-8242

I doubt this port is related to your mediation server port. You could try to refer this article and see the SipServerPort attribute. By default, SipServerPort is configured to use port 5070. If you change the SipServerPort, you will need to restart the Mediation Server service before the new port will actually be used.


0 Votes 0 ·

1 Answer

KanchJ-8242 avatar image
0 Votes"
KanchJ-8242 answered JimmyYang-MSFT commented

Hi @JimmyYang-MSFT , thanks for your help.

We finally found the problem.

The Collocated Mediation Server is NOT started. In the SFB Control Panel, it's status always been Retrieving... .

We tried many ways try to start the collocated mediation server, but failed, also, there is no logs in Event Viewer pointed to Mediation Server.

The solution is, installing a stand-alone mediation server on another machine, adding it to mediation server pool for use.

That solved my problem.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KanchJ-8242

Thanks for sharing your solution about this issue. You could try to mark it as an answer to close the thread, it will help others who encounter the same issue and read this thread.



0 Votes 0 ·