Merge branch 'master_gzrtp'
This commit is contained in:
@ -12,7 +12,8 @@ android {
|
||||
versionName = '47.3.0'
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
cFlags '-DHAVE_INTTYPES_H'
|
||||
cFlags '-DHAVE_INTTYPES_H -lstdc++'
|
||||
arguments '-DANDROID_STL=c++_shared'
|
||||
version '3.18.1'
|
||||
}
|
||||
}
|
||||
@ -51,7 +52,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation 'androidx.appcompat:appcompat:1.4.2'
|
||||
implementation 'androidx.appcompat:appcompat:1.5.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
implementation 'com.google.android.material:material:1.6.1'
|
||||
@ -64,6 +65,6 @@ dependencies {
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1'
|
||||
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
|
||||
implementation "androidx.activity:activity-ktx:1.5.1"
|
||||
implementation "androidx.fragment:fragment-ktx:1.5.1"
|
||||
implementation "androidx.fragment:fragment-ktx:1.5.2"
|
||||
implementation 'androidx.media:media:1.6.0'
|
||||
}
|
||||
|
||||
@ -52,13 +52,9 @@ add_library(lib_webrtc STATIC IMPORTED)
|
||||
set_target_properties(lib_webrtc PROPERTIES IMPORTED_LOCATION
|
||||
${distribution_DIR}/webrtc/lib/${ANDROID_ABI}/libwebrtc.a)
|
||||
|
||||
add_library(lib_bn STATIC IMPORTED)
|
||||
set_target_properties(lib_bn PROPERTIES IMPORTED_LOCATION
|
||||
${distribution_DIR}/bn/lib/${ANDROID_ABI}/libbn.a)
|
||||
|
||||
add_library(lib_zrtp STATIC IMPORTED)
|
||||
set_target_properties(lib_zrtp PROPERTIES IMPORTED_LOCATION
|
||||
${distribution_DIR}/zrtp/lib/${ANDROID_ABI}/libzrtp.a)
|
||||
add_library(lib_zrtpcppcore STATIC IMPORTED)
|
||||
set_target_properties(lib_zrtpcppcore PROPERTIES IMPORTED_LOCATION
|
||||
${distribution_DIR}/gzrtp/lib/${ANDROID_ABI}/libzrtpcppcore.a)
|
||||
|
||||
add_library(lib_baresip STATIC IMPORTED)
|
||||
set_target_properties(lib_baresip PROPERTIES IMPORTED_LOCATION
|
||||
@ -90,7 +86,6 @@ target_link_libraries(baresip
|
||||
lib_amrwb
|
||||
lib_amrwbenc
|
||||
lib_webrtc
|
||||
lib_zrtp
|
||||
lib_bn
|
||||
lib_zrtpcppcore
|
||||
z
|
||||
log)
|
||||
|
||||
@ -18,6 +18,8 @@ object Config {
|
||||
|
||||
config = config.replace("webrtc_aec.so", "webrtc_aecm.so")
|
||||
|
||||
config = config.replace("module zrtp.so", "module gzrtp.so")
|
||||
|
||||
if (config.contains("rtp_stats no"))
|
||||
replaceVariable("rtp_stats", "yes")
|
||||
|
||||
|
||||
@ -240,7 +240,8 @@ class MainActivity : AppCompatActivity() {
|
||||
accountRequest!!.launch(i)
|
||||
true
|
||||
} else {
|
||||
BaresipService.uas[aorSpinner.selectedItemPosition].account.resumeUri =
|
||||
if (aorSpinner.selectedItemPosition < BaresipService.uas.size)
|
||||
BaresipService.uas[aorSpinner.selectedItemPosition].account.resumeUri =
|
||||
callUri.text.toString()
|
||||
false
|
||||
}
|
||||
@ -1034,16 +1035,15 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
with(MaterialAlertDialogBuilder(this, R.style.AlertDialogTheme)) {
|
||||
setTitle(R.string.verify)
|
||||
setMessage(String.format(getString(R.string.verify_sas),
|
||||
ev[1], ev[2]))
|
||||
setMessage(String.format(getString(R.string.verify_sas), ev[1]))
|
||||
setPositiveButton(getString(R.string.yes)) { dialog, _ ->
|
||||
call.security = if (Api.cmd_exec("zrtp_verify ${ev[3]}") != 0) {
|
||||
Log.e(TAG, "Command 'zrtp_verify ${ev[3]}' failed")
|
||||
call.security = if (Api.cmd_exec("zrtp_verify ${ev[2]}") != 0) {
|
||||
Log.e(TAG, "Command 'zrtp_verify ${ev[2]}' failed")
|
||||
R.drawable.locked_yellow
|
||||
} else {
|
||||
R.drawable.locked_green
|
||||
}
|
||||
call.zid = ev[3]
|
||||
call.zid = ev[2]
|
||||
if (aor == aorSpinner.tag) {
|
||||
securityButton.tag = call.security
|
||||
securityButton.setImageResource(call.security)
|
||||
@ -1052,7 +1052,7 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
setNeutralButton(getString(R.string.no)) { dialog, _ ->
|
||||
call.security = R.drawable.locked_yellow
|
||||
call.zid = ev[3]
|
||||
call.zid = ev[2]
|
||||
if (aor == aorSpinner.tag) {
|
||||
securityButton.tag = R.drawable.locked_yellow
|
||||
securityButton.setImageResource(R.drawable.locked_yellow)
|
||||
|
||||
@ -783,7 +783,7 @@ object Utils {
|
||||
|
||||
fun unZip(zipFilePath: String): Boolean {
|
||||
val allFiles = listOf("accounts", "calls", "config", "contacts", "messages", "uuid",
|
||||
"zrtp_cache.dat", "zrtp_zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
||||
"gzrtp_zid", "cert.pem", "ca_cert", "ca_certs.crt")
|
||||
val zipFiles = mutableListOf<String>()
|
||||
try {
|
||||
ZipFile(zipFilePath).use { zip ->
|
||||
|
||||
@ -37,9 +37,9 @@
|
||||
<h2>Lisenssit</h2>
|
||||
<ul>
|
||||
<li><b>BSD-3-Clause</b> paitsi seuraavat:</li>
|
||||
<li><b>Apache 2.0</b> AMR koodausmenetelmä ja TLS turvallisuus</li>
|
||||
<li><b>Apache 2.0</b> AMR koodausmenetelmä, TLS
|
||||
turvallisuus ja ZRTP median salaus</li>
|
||||
<li><b>LGPL 2.1</b> G.722 ja G.726 koodausmenetelmät</li>
|
||||
<li><b>AGPLv4</b> ZRTP median salausmenetelmä</li>
|
||||
<li><b>GNU GPLv3</b> G.729 koodausmenetelmä</li>
|
||||
</ul>
|
||||
]]>
|
||||
@ -539,4 +539,4 @@
|
||||
<string name="choose_telephony_provider_account">Valitse puhelinpalvelun tarjoava tili</string>
|
||||
<string name="call_details">Puhelutiedot</string>
|
||||
<string name="no_android_contacts">Et voi käyttää Androidin yhteystietoja ilman Yhteystiedot-sovelluslupaa.</string>
|
||||
</resources>
|
||||
</resources>
|
||||
|
||||
@ -43,9 +43,9 @@
|
||||
<h2>Licenses</h2>
|
||||
<ul>
|
||||
<li><b>BSD-3-Clause</b> except the following:</li>
|
||||
<li><b>Apache 2.0</b> AMR codec and TLS security</li>
|
||||
<li><b>Apache 2.0</b> AMR codec, TLS security, and ZRTP
|
||||
media encryption</li>
|
||||
<li><b>LGPL 2.1</b> G.722 and G.726 codecs</li>
|
||||
<li><b>AGPLv4</b> ZRTP media encryption</li>
|
||||
<li><b>GNU GPLv3</b> G.729 codec</li>
|
||||
</ul>
|
||||
]]>
|
||||
@ -476,7 +476,7 @@
|
||||
</string>
|
||||
<string name="registering_failed">Registering of \`%1$s\` failed.</string>
|
||||
<string name="verify">Verify Request</string>
|
||||
<string name="verify_sas">Do you want to verify SAS <%1$s> <%2$s>?</string>
|
||||
<string name="verify_sas">Do you want to verify SAS <%1$s>?</string>
|
||||
<string name="transfer_request">Transfer Request</string>
|
||||
<string name="transfer_request_query">Do you accept to transfer this call to \'%1$s\'?</string>
|
||||
<string name="call_failed">Call failed</string>
|
||||
|
||||
Reference in New Issue
Block a user