From b7d5a5395c4bbcd6cb23bf1de54c44112117ebd4 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 9 Jun 2022 10:10:06 +0300 Subject: [PATCH] No need to pass UA_EVENT_REGISTERING to service --- app/src/main/cpp/baresip.c | 1 - app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt | 3 --- 2 files changed, 4 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index d744dcde..834a842c 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -177,7 +177,6 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev, case UA_EVENT_CREATE: len = re_snprintf(event_buf, sizeof event_buf, "create"); break; - case UA_EVENT_REGISTERING: case UA_EVENT_UNREGISTERING: case UA_EVENT_REGISTER_OK: case UA_EVENT_FALLBACK_OK: diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index 834e8a9b..c67933a0 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -567,9 +567,6 @@ class BaresipService: Service() { for (account_index in uas.indices) { if (uas[account_index].account.aor == aor) { when (ev[0]) { - "registering" -> { - return - } "registered" -> { ua.status = if (Api.account_regint(ua.account.accp) == 0) R.drawable.dot_white