From 8755e85d13b1170882cd5108cf20a63d94573155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Monin?= Date: Thu, 23 Sep 2021 11:48:35 +0200 Subject: [PATCH] sms: increase send timeout to 5 minutes The timeout for sms send operation can exceed the current value, so increase it to 5 minutes. Timeouts up to 4 minutes have been observed in the following test scenario: * Power up the modem and wait for registration. * Right when the modem is registered, attenuate the rf signal or remove the antenna. * Immediately try to send an sms. Increasing the timeout cover this corner case. --- src/mm-base-sms.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mm-base-sms.h b/src/mm-base-sms.h index e022ec3f..be8d559c 100644 --- a/src/mm-base-sms.h +++ b/src/mm-base-sms.h @@ -31,7 +31,7 @@ /* Default timeout value to be used when sending a SMS, long enough so that the * operation succeeds or fails under low signal conditions. */ -#define MM_BASE_SMS_DEFAULT_SEND_TIMEOUT 180 +#define MM_BASE_SMS_DEFAULT_SEND_TIMEOUT (5 * 60) /*****************************************************************************/