the three parts
signaling
a few kilobytes of handshake, on our one server.
pairing
the two devices and a public stun server find a way through.
media
the audio, device to device. it never touches us.
pairing, step by step
- the host's app makes a one-time key and a random session id.
- it puts both into a link and a qr code.
- the guest opens the link or scans the code, and trusts the host's key from the link, not from the server.
- both apps reach our server, which passes each one's public key to the other.
- each side works out the same secret on its own.
- they swap possible routes through the server and race test packets.
- the first route that works carries the audio, directly and encrypted.
- the server has no further part.
what our server does, and does not
-
it does
accepts the two sides of one room.
passes each side's hello and public key to the other.
passes the routes each side might use.
tells each side when the other arrives.
turns a third away.
-
it does not
hear the audio.
hold a key that opens it.
write anything to disk.
log connections.
keep the room once both sides have left.
when the path drops
if the path drops, an open aeritia holds for up to 28 seconds and looks for a new path by itself. if none is found, it closes rather than pretend.
the audio never goes through a relay.
most calling apps
most calling apps put a chain in between: relays that carry the sound, directories and accounts that know who you are, ringing, and codecs that squeeze the sound to fit.
aeritia does none of it. that has a cost: it is for two people, it cannot ring, it cannot reach someone who is offline, and some networks will not let two devices pair.
limits
- two people, no more.
- no ringing, no messages left for later, no contacts.
- on cellular there may be moments of silence. wifi is the target.
- on speakers an untuned room will feed back. tune it, or wear headphones.
- on a mac, plug wired headphones in before you open or join an aeritia. plugging in while an aeritia is open closes it; a new one recovers.
- there is no spoken check code yet. a hostile server could stop a pairing, but it cannot silently sit in the middle.