Author |
Post |
|
#1 Thu Apr 06, 2023 12:29, 20 months ago.
|
Member
Registered: Feb 2016
Location: Teramo, Italy
|
Hi there,
Is there any chance to setup a timeout while trying to send an SMS? Actually i see there's a GSM parameter to adjust the number of times GSM will try to resend in case of failure.
I'd like to set it on a global or, at least, per GSM.
By the way, what's the default timeout?
Ciao
Federico
|
|
#2 Fri Apr 07, 2023 02:35, 20 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
The general timeout is 5 seconds by default. You can see the value used by a certain function by adding report_read_timeouts = yes to the modem settings, so after restarting you will see the current values in the log. You can change the values with the modem settings read_timeout and read_timeout_XXX.
|
|
#3 Fri Apr 07, 2023 14:54, 20 months ago.
|
Member
Registered: Feb 2016
Location: Teramo, Italy
Topic owner
|
Thanks for your clarification. What happened last time, was a modem out of service which makes impossibile the sending. However, what i notice was the SMS hanging for a long time becouse of that. Much longer of 5 seconds indeed. So, it seems that the timeout you mentioned was not hit in this case. Is there a way to accelerate the process, so the modem error could be handled faster and the sms switched to the next available GSM?
Ciao Federico
|