PJSIP TLS not enable for iPhone

不羁的心 提交于 2019-12-20 06:26:48

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!