[asterisk-users] TLS connect() error when calling udp to tls

Nick Awesome jleed at me.com
Wed Mar 4 08:41:14 CST 2015


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 at 192.168.1.55:5075;transport=tls
<--- Transmitting SIP request (1052 bytes) to TLS:192.168.1.55:5075 --->
INVITE sip:601 at 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: "" <sip:502 at 192.168.1.4>;tag=5fc67f0a-2b96-469a-9d57-7b1d0ea8c1d3
To: <sip:601 at 192.168.1.55>
Contact: <sip:f55239b9-1924-4d2c-b6ca-7bd5fde81971 at 192.168.1.4:60410;transport=TLS>
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150304/0a749748/attachment.html>


More information about the asterisk-users mailing list