Call api: http://DIAFAANSERVER:xxxx/http/request-server-status?username=xxxxx&password=xxxxx
It effectively responds an XML with the states of the gateways.
Load data with "simplexml_load_file($url)", a loop for "GatewayStatusList->Gateway" and an if for "attributes()->Name" together with "attributes()->Active" I get the status I needed.
Now I can assign a backup gateway from the callback if the primary gateway fails.
Thank you so much.
Hello, I have developed a "callback" for diafaan and I use it with external queries for "cellular portability" and everything is fine, diafaan works excellent. 1 gateway for each company and the "callback" finally resolves after all queries which gateway to send.
But I have a little problem...
How can I check from the "Callback" if the gateway is disabled by "DisableOnFailedMessages", to send through another gateway.
Is there any command or any other way to check the status of a gateway?
From web admin there is "serverstatus", where it shows "Active" or "offline", could this query be made in some way from the callback?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 642
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1375