From 0bd4d2f5a468cf06414c22c0494db031f743e9d2 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 12 Apr 2021 10:31:48 +0300 Subject: [PATCH] Minor code simplification --- app/src/main/cpp/baresip.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index ad76112c..6f463049 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -196,10 +196,7 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev, len = re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming"); break; case UA_EVENT_CALL_LOCAL_SDP: - if (strcmp(prm, "offer") != 0) - len = re_snprintf(event_buf, sizeof event_buf, "%s", "call offered"); - else - len = re_snprintf(event_buf, sizeof event_buf, "%s", "call answered"); + len = re_snprintf(event_buf, sizeof event_buf, "call %sed", prm); break; case UA_EVENT_CALL_RINGING: play = mem_deref(play);