From a56f25faa11c0f02a2207e490304a08278e4d0aa Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 18 Jun 2018 08:19:35 +0300 Subject: [PATCH] handle also SECURE mediaenc event --- app/src/main/cpp/baresip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index d464e2c5..365ec4f9 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -127,7 +127,9 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev, re_snprintf(event_buf, sizeof event_buf, "%s", "call established"); break; case UA_EVENT_CALL_MENC: - if (prm[0] == '1') + if (prm[0] == '0') + re_snprintf(event_buf, sizeof event_buf, "call secure"); + else if (prm[0] == '1') re_snprintf(event_buf, sizeof event_buf, "call verify,%s", prm+2); else if (prm[0] == '2') re_snprintf(event_buf, sizeof event_buf, "call verified,%s", prm+2);