问题
I am trying to build an app which is using PJSIP
library. I am able to establish a connection successfully with UDP
and TCP
. But when trying to connect with TLS
, I receive the following error: Unsupported Transport error (17160)
.
回答1:
also you need to add the following parameters to your config_site.h.
#define PJ_HAS_SSL_SOCK 1
#define PJSIP_HAS_TLS_TRANSPORT 1
and configure pjsip with --with-openssl=your/opensslDir/path
and then check the log after it finishes configuring.
if you have done everything successfully you will be able to build it without any error. You can make sure the configuration script was able to detect the openssl libraries, it would look like this : opensslSupport
回答2:
You must build and install OpenSSL for iPhone, then build once again PJSIP libs. More details
来源:https://stackoverflow.com/questions/34089090/pjsip-tls-not-enable-for-iphone