]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_mobile: decrease CHANNEL_FRAME_SIZE to prevent delay
authorCade Parker <cademparker@gmail.com>
Wed, 7 Aug 2024 21:11:16 +0000 (16:11 -0500)
committerCade Parker <cademparker@gmail.com>
Mon, 12 Aug 2024 21:21:27 +0000 (21:21 +0000)
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

index a829301040a50102a61b9235c3bc488e6bf36de7..6c3fa75a260283c9ca03cd3a2fc525a0c0e73e97 100644 (file)
@@ -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 */