xiaoxinda / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

Setup for TLS imsdroid with sip2sip or any server account. #470

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (wireshark) or Android log (DDMS output)
if you want quick response

What steps will reproduce the problem?
1.Settings-->Network-->Port=5061 and Transport=TLS
2.Proxy-CSCFHost-->proxy.sipthor.net
3.SRTP-->Mandatory

I am trying to login and call with sip2sip.info account using the TLS setup as 
done above.

As by seeing library code i come to know that in  NgnSipService class

    // TLS
        final String pvFilePath = mConfigurationService.getString(NgnConfigurationEntry.SECURITY_TLS_PRIVKEY_FILE_PATH, NgnConfigurationEntry.DEFAULT_SECURITY_TLS_PRIVKEY_FILE_PATH);
        final String pbFilePath = mConfigurationService.getString(NgnConfigurationEntry.SECURITY_TLS_PUBKEY_FILE_PATH, NgnConfigurationEntry.DEFAULT_SECURITY_TLS_PUBKEY_FILE_PATH);
        final String caFilePath = mConfigurationService.getString(NgnConfigurationEntry.SECURITY_TLS_CA_FILE_PATH, NgnConfigurationEntry.DEFAULT_SECURITY_TLS_CA_FILE_PATH);
        final boolean verifyCerts = mConfigurationService.getBoolean(NgnConfigurationEntry.SECURITY_TLS_VERIFY_CERTS, NgnConfigurationEntry.DEFAULT_SECURITY_TLS_VERIFY_CERTS);
        Log.d(TAG, String.format("TLS - pvk='%s' pbk='%s' ca='%s' verify=%s", pvFilePath, pbFilePath, caFilePath, verifyCerts));
        if(!mSipStack.setSSLCertificates(pvFilePath, pbFilePath, caFilePath, verifyCerts)){
            Log.e(TAG, "Failed to set TLS certificates");
            return false;
        }

this code is written and in log i always get path null as it is default path.

So not get which path i have to set and how as not having any option in 
settings.

What is the expected output? What do you see instead?

User must be able to login and call usign TLS as writtern that TLS/SRTP support 
is added.

What version of the product are you using? On what operating system?

android:versionCode="551" android:versionName="2.551.884" 

Please provide any additional information below.

Please provide step by step info for TLS setup so every one understand.

Regards.
Thanks.

Original issue reported on code.google.com by tech.moh...@gmail.com on 7 Aug 2013 at 7:04