On Aug 27, 2024, at 6:58 AM, Sergio Charrua via sr-users sr-users@lists.kamailio.org wrote:
My question is:
- how to save the token for use during 24h, on all calls/sessions, without the need to authenticate on every call?
- how to detect the token has expired and re-authenticate?
The `htable` module can potentially assist with both tasks. You can use it to save the token, and also set an expiration time of 24 hours. It's kind of like Redis, but inside Kamailio.
Of course, expiring the token after 24 hours is not the same thing as detecting that it has expired.
-- Alex