<div dir="ltr"><div><div><div>Hello all,<br><br>Recently I added TLS configuration to the opensips configuration file to let the clients make connections with TLS.(We use nathelper,mid_registrar,rtpproxy,cfgutils,proto_tcp,proto_tls,tls_mgm,dialog,sl,signaling,tm,rr,<br>sipmsgops,maxfwd,textops,mi_fifo,usrloc,acc,db_mysql,options,topology_hiding,cachedb_local modules in our script). Clients can register and make calls. The problem is when opensips wants to send in-dialog ping options to the client (related to dialog module create_dialog("PpB")) it fails with these errors :<br><br><<<<<<<<<<<<<<<<<<<<<br>Nov  9 10:11:00 Proxy-Out /usr/sbin/opensips[890103]: ERROR:core:tcp_connect_blocking_timeout: connect timed out, 10005800 us elapsed out of 10000000 us<br>Nov  9 10:11:00 Proxy-Out /usr/sbin/opensips[890103]: ERROR:core:tcp_sync_connect_fd: tcp_blocking_connect failed<br>Nov  9 10:11:00 Proxy-Out /usr/sbin/opensips[890103]: ERROR:proto_tls:proto_tls_send: connect failed<br>Nov  9 10:11:00 Proxy-Out /usr/sbin/opensips[890103]: ERROR:tm:msg_send: send() to xxx.xxx.xxx.xxx:26905 for proto tls/3 failed<br>Nov  9 10:11:00 Proxy-Out /usr/sbin/opensips[890103]: ERROR:tm:t_uac: attempt to send to 'sip:9203@xxx.xxx.xxx.xxx:26905;transport=tls' failed<br>Nov  9 10:11:09 Proxy-Out /usr/sbin/opensips[890097]: ERROR:core:tcp_connect_blocking_timeout: connect timed out, 10009071 us elapsed out of 10000000 us<br>Nov  9 10:11:09 Proxy-Out /usr/sbin/opensips[890097]: ERROR:core:tcp_sync_connect_fd: tcp_blocking_connect failed<br>Nov  9 10:11:09 Proxy-Out /usr/sbin/opensips[890097]: ERROR:proto_tls:proto_tls_send: connect failed<br>Nov  9 10:11:09 Proxy-Out /usr/sbin/opensips[890097]: ERROR:tm:msg_send: send() to xxx.xxx.xxx.xxx:27638 for proto tls/3 failed<br>Nov  9 10:11:09 Proxy-Out /usr/sbin/opensips[890097]: ERROR:tm:t_forward_nonack: sending request failed<br>>>>>>>>>>>>>>>>>>>>><br><br></div>I've checked the logs and found that port 
27638 which opensips tries to connect to is not correct. Client's port was changed from 
27638 to another port  but opensips still using the old one.  Can everyone help me.
<br><br><br><br></div>Thanks<br></div>Hamed<br><div><div><div><br><br></div></div></div></div>