Android的SIP SSL [英] Android SIP SSL

查看:449
本文介绍了Android的SIP SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Andr​​oid 2.3.4 SIP栈和一切工作得很好。不过,我需要在系统中使用SSL,并且创建了以下code:

I'm using the SIP stack in Android 2.3.4 and everything is working nicely. However, I need the system to use SSL, and have created the following code:

        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。

Unfortunately the TLS bit in the setOutboundProxy() call appears to be doing nothing. Can anyone suggest how to use SSL with the inbuilt SIP stack? I don't really want to use pjsip as the app is working as it is, so would require a huge rewrite to use pjsip.

谢谢, 埃德

推荐答案

AFAIK的Andr​​oid内置的SIP协议栈,不支持SSL / TLS

AFAIK Android's built-in SIP stack does not support SSL/TLS

这篇关于Android的SIP SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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