From 7f2ac6cb4f14b90ba69e96091139b84b38c35645 Mon Sep 17 00:00:00 2001
From: Cade Parker <cademparker@gmail.com>
Date: Wed, 7 Aug 2024 16:11:16 -0500
Subject: [PATCH] chan_mobile: decrease CHANNEL_FRAME_SIZE to prevent delay

On modern Bluetooth devices or lower-powered asterisk servers, decreasing the channel frame size significantly improves latency and delay on outbound calls with only a mild sacrifice to the quality of the call (the frame size before was massive overkill to begin with)
---
 addons/chan_mobile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c
index a829301040..6c3fa75a26 100644
--- a/addons/chan_mobile.c
+++ b/addons/chan_mobile.c
@@ -80,7 +80,7 @@
 
 #define DEVICE_FRAME_SIZE 48
 #define DEVICE_FRAME_FORMAT ast_format_slin
-#define CHANNEL_FRAME_SIZE 320
+#define CHANNEL_FRAME_SIZE 80
 
 static int discovery_interval = 60;			/* The device discovery interval, default 60 seconds. */
 static pthread_t discovery_thread = AST_PTHREADT_NULL;	/* The discovery thread */
-- 
GitLab