- Added net debug to case when registration fails due to DNS lookup.
This commit is contained in:
@@ -360,6 +360,7 @@ class BaresipService: Service() {
|
|||||||
if ((ev.size > 1) && (ev[1] == "Invalid argument")) {
|
if ((ev.size > 1) && (ev[1] == "Invalid argument")) {
|
||||||
// Most likely this error is due to DNS lookup failure
|
// Most likely this error is due to DNS lookup failure
|
||||||
newEvent = "registering failed,DNS lookup failed"
|
newEvent = "registering failed,DNS lookup failed"
|
||||||
|
Api.net_debug()
|
||||||
if (dynDns)
|
if (dynDns)
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
val activeNetwork = cm.activeNetwork
|
val activeNetwork = cm.activeNetwork
|
||||||
@@ -368,6 +369,8 @@ class BaresipService: Service() {
|
|||||||
Log.d(LOG_TAG, "Updating DNS Servers = $dnsServers")
|
Log.d(LOG_TAG, "Updating DNS Servers = $dnsServers")
|
||||||
if (Config.updateDnsServers(dnsServers) != 0)
|
if (Config.updateDnsServers(dnsServers) != 0)
|
||||||
Log.w(LOG_TAG, "Failed to update DNS servers '$dnsServers'")
|
Log.w(LOG_TAG, "Failed to update DNS servers '$dnsServers'")
|
||||||
|
else
|
||||||
|
Api.net_debug()
|
||||||
} else {
|
} else {
|
||||||
Log.d(LOG_TAG, "No active network!")
|
Log.d(LOG_TAG, "No active network!")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user