No need to pass UA_EVENT_REGISTERING to service
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user