无法为iPhone启用PJSIP TLS [英] PJSIP TLS not enable for iPhone

查看:221
本文介绍了无法为iPhone启用PJSIP TLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建一个使用PJSIP库的应用程序.我能够与UDPTCP成功建立连接.但是,当尝试与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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆