From: Cade Parker Date: Wed, 7 Aug 2024 21:11:16 +0000 (-0500) Subject: chan_mobile: decrease CHANNEL_FRAME_SIZE to prevent delay X-Git-Tag: 21.5.0-rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49fa19878dba8e7b47b16d97aee835ca58e933e4;p=thirdparty%2Fasterisk.git 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) (cherry picked from commit 4f5bb1e650ba321d805a3814a7142a9ba56200a4) --- 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 */