Files
mcde/lib/libDtChat
lotherk 5179969bc9 dtchat: add the call state machine (T6.4)
The call now has IDLE, RINGING, IN_CALL and ENDED with dc_call_ring/accept/hangup/tick: RING and ACCEPT cross the wire as sealed control packets, an incoming RING during a call is answered BUSY, an unanswered ring ends after 30 s (dc_call_tick), and audio/PTT are refused outside IN_CALL. An authenticated packet also updates the peer address, so an incoming call is answered on the address it came from (no manual peer needed). test_media_call: audio refused before answer, ring seen on the other side, accept on both, PTT and ten audio frames in the call, hangup ending both sides and stopping audio; standalone and ASan/UBSan clean. Also widened the media packet type range to DC_MEDIA_HANGUP (the PTT fix was incomplete). In-tree build pending: make mcde-linux MCDE_DIRS=install is still running.
2026-11-17 07:58:06 +00:00
..