diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index 1c35e3c0..b62ddd48 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include #include @@ -247,10 +246,6 @@ static void event_handler(enum ua_event ev, struct bevent *event, void *arg) len = re_snprintf(event_buf, sizeof event_buf, "sndfile dump,%r", &data); break; } - if (!pl_strcmp(&module_event, "player: sessionid")) { - len = re_snprintf(event_buf, sizeof event_buf, "player sessionid,%r", &data); - break; - } if (!pl_strcmp(&module_event, "recorder sessionid")) { len = re_snprintf(event_buf, sizeof event_buf, "recorder sessionid,%r", &data); break; diff --git a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt index ea360d67..a58cad0b 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/BaresipService.kt @@ -626,12 +626,6 @@ class BaresipService: Service() { return } - if (ev[0] == "player sessionid") { - playerSessionId = ev[1].toInt() - Log.d(TAG, "got player sessionid $playerSessionId") - return - } - if (ev[0] == "recorder sessionid") { recorderSessionId = ev[1].toInt() Log.d(TAG, "got recorder sessionid $recorderSessionId") @@ -1624,7 +1618,6 @@ class BaresipService: Service() { private var agc: AutomaticGainControl? = null var webrtcAec = false private var btAdapter: BluetoothAdapter? = null - private var playerSessionId = 0 private var recorderSessionId = 0 fun requestAudioFocus(ctx: Context): Boolean {