无法为iPhone启用PJSIP TLS [英] PJSIP TLS not enable for iPhone
问题描述
我正在尝试构建一个使用PJSIP
库的应用程序.我能够与UDP
和TCP
成功建立连接.但是,当尝试与TLS
连接时,出现以下错误:Unsupported Transport error (17160)
.
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)
.
推荐答案
,您还需要在config_site.h中添加以下参数.
also you need to add the following parameters to your config_site.h.
#define PJ_HAS_SSL_SOCK 1
#define PJ_HAS_SSL_SOCK 1
#define PJSIP_HAS_TLS_TRANSPORT 1
#define PJSIP_HAS_TLS_TRANSPORT 1
并使用--with-openssl = your/opensslDir/path配置pjsip
and configure pjsip with --with-openssl=your/opensslDir/path
,然后在配置完成后检查日志.
and then check the log after it finishes configuring.
如果成功完成所有操作,则可以正确构建它. 您可以确保配置脚本能够检测到openssl库,如下所示: opensslSupport
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
这篇关于无法为iPhone启用PJSIP TLS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!