Android SIP SSL

微笑、不失礼 提交于 2019-12-19 02:41:30

问题


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);

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.

Thanks, Ed


回答1:


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



来源:https://stackoverflow.com/questions/6294668/android-sip-ssl

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