How to handle authentication for HTTP cmd requests to the PBX from within C++ app
Hi,
we are writing a C++ app that must set the recall timeout and response timeout that is configured in the PBX (the values you can find on the old UI when you go to the PBX/Config tab/general page).
As far as I know, there is no V13 API available to set/get these values in C++. Is this correct? Of there is an API available, please let me know the API and maybe provide an example.
Assuming there isn't a V13 API available, these values can be set using the HTTP cmd interface of the PBX. This would make it possible to use the http_client library in C++ to set these values. However, this brings another problem into the game: how to authenticate in this case. If we use a tool like postman, we use digest authentication with username and password. However, in our C++ app we do not have these values available as far as I know. So how doe we authenticate then? Do we have to store username and password in the config of the application, or, is there a better way to authenticate these HTTP requests so the PBX accepts them? Please advise on how to achieve this from within the C++ app.