TLS Connect() Error When Calling Udp To Tls
Stuck with TLS transport,
I have 2 phones (both in local network for tests)
one connected with up second with tls
when I calling TLS to UPD everything is fine, but when UDP calls TLS I getting an error
ERROR[44230]: pjsip:0 >: tlsc0x7f143012 TLS connect() error: Connection refused [code=120111]
pjsip log:
— Called PJSIP/601/sip:601@192.168.1.55:5075;transport=tls
<--- Transmitting SIP request (1052 bytes) to TLS:192.168.1.55:5075 --->
INVITE sip:601@192.168.1.55:5075;transport=tls SIP/2.0
Via: SIP/2.0/TLS 192.168.1.4:60410;rport;branch=z9hG4bKPj904eb4dc-b086-40c7-8ff1-4ddbaeea17f6;alias From: “”
To:
Contact:
Call-ID: 5ca66561-5755-4f1f-a951-2e6970aeeeda CSeq: 28062 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Supported: 100rel, timer, replaces, norefersub Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: PBXe 1.4.0
Content-Type: application/sdp Content-Length: 342
v=0
o=- 772596305 772596305 IN IP4 192.168.1.4
s=Asterisk c=IN IP4 192.168.1.4
t=0 0
m=audio 14476 RTP/SAVP 0 8 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Ojz7o69EOsPsdsRTgNO/wtRWPsrWc2NSnOidNcqh a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
both phones SPA502, force_rport disabled for tls phone,
here is my transports:
[tls]
type=transport ca_list_file=/pbx/keys/asterisk.pem cert_file=/pbx/keys/asterisk.crt priv_key_file=/pbx/keys/asterisk.key method=sslv23
protocol=tls bind=192.168.1.4:5061
external_media_address=8.8.8.8:5061
external_signaling_address=8.8.8.8:5061
[udp]
type=transport protocol=udp bind=192.168.1.4
local_net=192.168.1.0/24
external_media_address=8.8.8.8
external_signaling_address=8.8.8.8