Support forum
1:34 am
Thanks Henk...
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.
Oscar.
Hello Oscar,
You can use the request-server-status HTTP API call to get an XML document with the status of Diafaan SMS Server and all gateways and connectors. This API call can only be called by a user with administrator privileges.
Regards, Henk
3:39 am
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?
regards
Oscar.
Most Users Ever Online: 529
Currently Online:
4 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 668
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1131
Posts: 3858
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1472