If we have two numbers that are are allocated full-time we could have a bot that has two XMPP connections open and sends a message from one JID to the other’s phone number, which would test the full outbound and inbound API.
(We could even disable short-circuiting for these numbers so we could be sure we’re going out to Bandwidth and back in)
This would allow us to measure success and failure rates and latency. It would also allow us to have a general sense of uptime and downtime windows in the case of a general failure, because we would have a component of ours that would stop working and then start working.
So:
- count on message sent (attempted)
- count on message received
- timer on latency between send and receive
- count on errors on send
- count on XMPP connectivity error
If we wanted to go wild we could also have one of them propose a call, and have the other reject the proposal. This would allow us to test and measure XMPP calling, at least. The app doesn’t actually need to do audio stuff, but we could measure calls that failed to make it to the other side, latency between call start and receipt, etc.
Now that’s not perfect, actually, because the caller will be establishing a connection with sip.cheogram.com, which will “accept” the call and play a ringing sound before the other side gets hit. So we would need something that can at least pretend to be a caller, even if it’s not processing the audio. And it means we can tell that the other side received the call on the other JID over XMPP, but the calling JID won’t know that it was rejected because they’ll just get Voicemail, which they’d have to process the audio to detect.
But it would still give us reachability and one-directional latency.