<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Stuck with TLS transport,<div class=""><br class=""></div><div class="">I have 2 phones (both in local network for tests)</div><div class="">one connected with up second with tls</div><div class=""><br class=""></div><div class="">when I calling TLS to UPD everything is fine, but when UDP calls TLS I getting an error </div><div class=""><br class=""></div><div class=""><span style="font-family: Menlo; font-size: 11px; color: rgb(195, 55, 32);" class=""><b class="">ERROR</b></span><span style="font-family: Menlo; font-size: 11px;" class="">[44230]: </span><span style="font-family: Menlo; font-size: 11px; color: rgb(203, 203, 203);" class=""><b class="">pjsip</b></span><span style="font-family: Menlo; font-size: 11px;" class="">:</span><span style="font-family: Menlo; font-size: 11px; color: rgb(203, 203, 203);" class=""><b class="">0</b></span><span style="font-family: Menlo; font-size: 11px;" class=""> </span><span style="font-family: Menlo; font-size: 11px; color: rgb(203, 203, 203);" class=""><b class=""><?></b></span><span style="font-family: Menlo; font-size: 11px;" class="">: </span><span class="Apple-tab-span" style="font-family: Menlo; font-size: 11px; white-space: pre;">      </span><span style="font-family: Menlo; font-size: 11px;" class="">tlsc0x7f143012 TLS connect() error: Connection refused [code=120111]</span></div><div class=""><br class=""></div><div class="">pjsip log:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">-- Called PJSIP/601/sip:<a href="mailto:601@192.168.1.55" class="">601@192.168.1.55</a>:5075;transport=tls</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><--- Transmitting SIP request (1052 bytes) to TLS:192.168.1.55:5075 ---></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">INVITE <a href="sip:601@192.168.1.55:5075;transport=tls" class="">sip:601@192.168.1.55:5075;transport=tls</a> SIP/2.0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Via: SIP/2.0/TLS 192.168.1.4:60410;rport;branch=z9hG4bKPj904eb4dc-b086-40c7-8ff1-4ddbaeea17f6;alias</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">From: "" <<a href="sip:502@192.168.1.4" class="">sip:502@192.168.1.4</a>>;tag=5fc67f0a-2b96-469a-9d57-7b1d0ea8c1d3</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">To: <<a href="sip:601@192.168.1.55" class="">sip:601@192.168.1.55</a>></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Contact: <<a href="sip:f55239b9-1924-4d2c-b6ca-7bd5fde81971@192.168.1.4:60410;transport=TLS" class="">sip:f55239b9-1924-4d2c-b6ca-7bd5fde81971@192.168.1.4:60410;transport=TLS</a>></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Call-ID: 5ca66561-5755-4f1f-a951-2e6970aeeeda</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">CSeq: 28062 INVITE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Supported: 100rel, timer, replaces, norefersub</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Session-Expires: 1800</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Min-SE: 90</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Max-Forwards: 70</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">User-Agent: PBXe 1.4.0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Content-Type: application/sdp</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Content-Length:   342</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">v=0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">o=- 772596305 772596305 IN IP4 192.168.1.4</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">s=Asterisk</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">c=IN IP4 192.168.1.4</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">t=0 0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">m=audio 14476 RTP/SAVP 0 8 101</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Ojz7o69EOsPsdsRTgNO/wtRWPsrWc2NSnOidNcqh</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=rtpmap:0 PCMU/8000</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=rtpmap:8 PCMA/8000</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=rtpmap:101 telephone-event/8000</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=fmtp:101 0-16</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=ptime:20</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=maxptime:150</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">a=sendrecv</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">both phones SPA502, force_rport disabled for tls phone,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">here is my transports:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px;" class=""><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">[tls]</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">type=transport</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">ca_list_file=/pbx/keys/asterisk.pem</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">cert_file=/pbx/keys/asterisk.crt</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">priv_key_file=/pbx/keys/asterisk.key</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">method=sslv23</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">protocol=tls</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">bind=192.168.1.4:5061</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">external_media_address=8.8.8.8:5061</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">external_signaling_address=</span></font><span style="font-family: Menlo; font-size: 11px;" class="">8.8.8.8</span><font face="Menlo" class=""><span style="font-size: 11px;" class="">:5061</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">[udp]</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">type=transport</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">protocol=udp</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">bind=192.168.1.4</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">local_net=192.168.1.0/24</span></font></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">external_media_address=</span></font><span style="font-family: Menlo; font-size: 11px;" class="">8.8.8.8</span></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">external_signaling_address=</span></font><span style="font-family: Menlo; font-size: 11px;" class="">8.8.8.8</span></div><div style="margin: 0px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div></div></body></html>