I'm also having trouble with kamailio and OpenSSL 1.1, with segfaults in TLS. It's not quite the same issue as described here, but I suspect might be related:
* thread #1, name = 'kamailio', stop reason = signal SIGSEGV * frame #0: 0x00000008009c954d libc.so.7`__free + 749 frame #1: 0x00000008026c262b libthr.so.3`pthread_rwlock_destroy + 59 frame #2: 0x0000000802b8abf6 libcrypto.so.111`CRYPTO_THREAD_lock_free + 22 frame #3: 0x0000000802b784c6 libcrypto.so.111`BIO_free + 182 frame #4: 0x00000008028fb1a1 libssl.so.111`SSL_free + 193 frame #5: 0x0000000802810d48 tls.so`tls_h_tcpconn_clean + 1240
I haven't tried with OpenSSL 1.0 yet.