安卓 SIP SSL

标签 android voip sip

我在 Android 2.3.4 中使用 SIP 堆栈,一切都运行良好。但是,我需要系统使用 SSL,并创建了以下代码:

        SipProfile.Builder builder = new SipProfile.Builder("user","domain");
        builder.setPassword("password");
        builder.setOutboundProxy("sip:IPADDRESS:5061;transport=tls");
        builder.setProtocol("TCP");

        builder.setAutoRegistration(true);
        me = builder.build();

        Intent i = new Intent();
        i.setAction(Constants.INCOMING_CALL_INTENT);
        PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, Intent.FILL_IN_DATA);
        manager.open(me, pi, registrationListener);

不幸的是,setOutboundProxy() 调用中的 TLS 位似乎什么也没做。谁能建议如何将 SSL 与内置 SIP 堆栈一起使用?我真的不想使用 pjsip,因为该应用程序按原样运行,因此需要大量重写才能使用 pjsip。

谢谢, 埃德

最佳答案

AFAIK Android 的内置 SIP 堆栈不支持 SSL/TLS

关于安卓 SIP SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9976250/

相关文章:

ubuntu - 无法将 SIP 客户端与 Asterisk 连接

android - 对话框 fragment 宽度

android - 如何在代码中将包装内容声明为动态按钮

android - 如何使用选择器设置初始 ListView 项目背景颜色

java - 解密文件内容时返回不同的字节

android - Asterisk + Android,通信服务

linux - 按住 Red5Phone 上的按钮

android - Pjsua2.so 支持 tls,无法加载到 android 项目

webrtc - 我们可以使用公共(public) STUN 服务器来创建我们的商业应用程序吗?

c# - 在 C# 中监听端口(不是 TCP 端口)