mirror of
https://github.com/D-Modem/login.git
synced 2026-11-28 20:38:06 -08:00
A header that comes with a descriptor (SCM_RIGHTS; app_dmodem's handoff = yes passes the modem's pty terminal) gives -serve the line itself: the session runs on that terminal as its controlling tty, so the menu, shells and pppd are on the modem's line and nothing is copied. The connection then only marks the session's life: the caller gone closes it (SIGHUP to the session), the session ending closes it (app_dmodem hangs up). An item with handoff = yes (mode = unix, header = yes) hands the session's line to its server the same way, the item's send and what the menu read and did not use right after the header, and has it back when the server closes the connection (after = menu shows the menu again). The time limit still holds: at the deadline the menu closes the connection. Tests: eight callers at once on handed-over lines, each session on a terminal, each handed on to a BBS that takes the terminal and gives it back; PPP on a handed-over line ended at its time limit, the call hung up; handoff without mode = unix and header = yes refused. Claude-Session: https://claude.ai/code/session_01B82eRRxseyEuLRFbFaBoX3 Co-authored-by: Claude <noreply@anthropic.com>
modemmenu documentation
- Building: Go, PAM,
make install - Running it from app_dmodem: a program per call, one server on a unix socket, FreePBX
- Configuration:
modemmenu.conf, the connect rate, terminals, the message of the day, the menu and its items, guests and sign-up, caller ID, time limits, drop files, last callers, handing callers on - Configuration reference: every section and key, from the sample
- Authentication: users file, LDAP, SQL, system accounts (PAM), changing passwords, the auth socket
- PPP dialers: AutoPPP and PAP, the pppd plugin
- Security notes
- Tests
The samples: modemmenu.conf.sample, modemmenu.users.sample, modemmenu.pam.sample, modemmenu.service.sample, modemmenu-authd.service.sample.