TLS with Polycom on Asterisk 12

I followed the guide here … td-p/33018
to get TLS setup.

I was able to get the phone to register over TLS but when I try to make a call I get “SSL_shutdown() failed: 5” in the console and the phone disconnects until it tries to register again. It also disconnects ocassionaly just sitting there and then I get
sip_xmit of 0x7f104c505380 (len 792) to returned -2: No such file or directory
in the logs.

I’m using Asterisk 12.2.0 and openssl 1.0.1e if that makes a difference.

Has anybody seen behavior like this? I can’t find much on google about that error aside from a bug for Asterisk 1.8 that sounds similar.