Forums Read-only archive

Convert Transport from UDP to TCP

4 posts · Brekeke SIP Server Forum

skb007 Original post
1. Brekeke Product Name and Version:

2. Java version:

3. OS type and the version:

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:

I would like to send a call from my gateway to BSS using UDP and from BSS to cutomer should be TCP.
MyGateway ----(UDP)---->BSS----(TCP)---->Customer.


I have used the following dial plan and brekeke is rejecting the call with SIP 603



[Matching Patterns]
$addr = 10\.1\.1\.1
From = sip:(.+)@
$request = sip:123(.+)@


[Deploy Patterns]
$transport=TCP
From = sip:%1@10.2.2.2
To = sip:%2@10.3.3.3
$b2bua = true
$rtp = true
&net.sip.replacesdp.multipart = true
$session = sdp
&sdp.audio.a.1 = ptime:20
&sdp.audio.a.2 = silenceSupp:off - - - -
$ifsrc = 10.2.2.2
ambrosio
Can you find the call record in the [Logs]->[Session Logs] page?
or [Logs]->[Error Logs] page?

Is the customer's SIP client (10.3.3.3) located in the same LAN without NAT?
skb007
I found the entry on the session logs, I don't see anything in error logs.

SID
From URI
To URI
Talking Length
Invite Start Time
Talk Start Time
End Time
Result
Error
UAC Address
UAS Address
Disconnected By
Rule Name
UAC User-Agent
UAS User-Agent
Phase before Disconnect

Session Logs
2640
sip:9089309291@10.1.1.1:5060
sip:13478756943@10.3.3.3
00:00:00.000
2017-07-25 09:26:19.747
 
2017-07-25 09:26:19.748
TCP:connect timed out
603
10.1.1.1:5060
10.3.3.3
Error
LA1 To TCP & TCP-failed
Excel_CSP/84.11.34
 
Closing


I have changed the IP's to private IP's for privacy purposes. Otherwise all the IP's are in public domain.
ambrosio
The log indicates "TCP:connect timed out "

Make sure the firewall doesn't block TCP 5060 port.