Expand description
One-hop peer websocket forwarding.
When a client connects to /call (or /call/sip, /call/webrtc) with a
session id that is not hosted on this node, the originator polls every
configured peer (crate::config::Config::peers) and tunnels the websocket
to the first peer that accepts the call. Each probe is marked
forward=true.
Hard rule: only a request whose forward query is empty (absent) may be
forwarded. Any present forward value is answered from the local call
table only and must never hop again.
Functionsยง
- try_
forward - Attempt to forward a websocket to the first peer that hosts
session_id. - tunnel
- Bidirectionally relay frames between the client websocket and the peer websocket until either side closes.