How to set timeout for SMS Services > Get status ?

phelix

Пользователь
Регистрация
28.04.2021
Сообщения
62
Благодарностей
12
Баллы
8
I am using the SMS Services function to receive and sms code through the sms-activate.ru API.
The problem is that sometimes the sms comes, sometimes not (for example because the phone number has been previously used on that website).

When the sms code comes, the action works perfectly fine.

When the sms doesn't come, the action just freezes on the "Get status" action. Probably its waiting until the sms code arrives.
However, I know that if after 30 seconds it didn't arrive - it won't arrive at all, and I would rather it redirect to an action of getting a new phone number.

Is there a setting/option somewhere to kill the process after 30 seconds if the sms code doesn't arrive?

Been stuck on this for over 2 hours.

Pls help
Thanks
 

phelix

Пользователь
Регистрация
28.04.2021
Сообщения
62
Благодарностей
12
Баллы
8
Problem solved with manually requesting the API url after a 30 second pause via HTTP Get Request.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)