- Fixed adding of new account.
This commit is contained in:
+2
-2
@@ -8,8 +8,8 @@ android {
|
|||||||
applicationId = 'com.tutpro.baresip'
|
applicationId = 'com.tutpro.baresip'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode = 63
|
versionCode = 64
|
||||||
versionName = '8.0.1'
|
versionName = '8.0.2'
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
cFlags '-DHAVE_INTTYPES_H'
|
cFlags '-DHAVE_INTTYPES_H'
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class AccountsActivity : AppCompatActivity() {
|
|||||||
val addAccountButton = findViewById(R.id.addAccount) as ImageButton
|
val addAccountButton = findViewById(R.id.addAccount) as ImageButton
|
||||||
val newAorView = findViewById(R.id.newAor) as EditText
|
val newAorView = findViewById(R.id.newAor) as EditText
|
||||||
addAccountButton.setOnClickListener{
|
addAccountButton.setOnClickListener{
|
||||||
var aor = newAorView.text.toString().trim()
|
val aor = newAorView.text.toString().trim()
|
||||||
if (!Utils.checkAor(aor)) {
|
if (!Utils.checkAor(aor)) {
|
||||||
Log.d("Baresip", "Invalid Address of Record $aor")
|
Log.d("Baresip", "Invalid Address of Record $aor")
|
||||||
Utils.alertView(this, getString(R.string.error),
|
Utils.alertView(this, getString(R.string.error),
|
||||||
@@ -45,7 +45,7 @@ class AccountsActivity : AppCompatActivity() {
|
|||||||
Utils.alertView(this, getString(R.string.notice),
|
Utils.alertView(this, getString(R.string.notice),
|
||||||
String.format(getString(R.string.account_exists), aor))
|
String.format(getString(R.string.account_exists), aor))
|
||||||
} else {
|
} else {
|
||||||
val ua = UserAgent.uaAlloc("<$aor>;stunserver=\"stun:stun.l.google.com:19302\";regq=0.5;pubint=0;regint=0")
|
val ua = UserAgent.uaAlloc("<sip:$aor>;stunserver=\"stun:stun.l.google.com:19302\";regq=0.5;pubint=0;regint=0")
|
||||||
if (ua == null) {
|
if (ua == null) {
|
||||||
Log.e("Baresip", "Failed to allocate UA for $aor")
|
Log.e("Baresip", "Failed to allocate UA for $aor")
|
||||||
Utils.alertView(this, getString(R.string.notice),
|
Utils.alertView(this, getString(R.string.notice),
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
- Fixed adding of new account.
|
||||||
Reference in New Issue
Block a user