Files
login/modemmenu.service.sample
T
Claude 98755b757b Who sees what, time limits, guests and signup, caller ID rules, comments
Items take users, groups ([groups], or the system's for auth = system),
min_baud, callerids and guest; a caller neither sees nor can choose an
item they may not use.

time_limit limits a call and daily_limit a user's calls in a day (kept
in state_dir/usage under a lock); a selection is hung up at the limit,
and {time_left} / MODEM_TIME_LEFT tell what is left.

[guest] logs in by name without a password, to the guest = yes items
for its own time_limit.  [signup] adds new accounts to the users file
with a bcrypt hash, locked (user:!hash) until the sysop unlocks them
unless pending = no; the file backend refuses locked accounts.

[callerid] allow, deny and anonymous decide which calls the line takes;
[number PATTERN] sections deny a number, log it in as a user, or start
an item at once.

Comments may follow a value after a space; \; and \# escape them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RvtV8Dg9kqRaakbTEfyH3f
2026-10-12 11:37:10 +00:00

21 lines
699 B
Plaintext

# /etc/systemd/system/modemmenu.service - modemmenu -serve for app_dmodem's
# mode = unix profiles (dmodem.conf: path = /run/modemmenu/modemmenu.sock,
# header = yes); [server] socket_group = asterisk lets Asterisk connect
[Unit]
Description=modemmenu: login and menu for dial-up callers
Before=asterisk.service
[Service]
ExecStart=/usr/local/bin/modemmenu -config /etc/asterisk/modemmenu.conf -serve
RuntimeDirectory=modemmenu
RuntimeDirectoryMode=0755
# daily_limit's state_dir = /var/lib/modemmenu
StateDirectory=modemmenu
Restart=on-failure
# root for auth = system (PAM's pam_unix) and run_as; otherwise a user of
# its own, e.g. User=modemmenu
User=root
[Install]
WantedBy=multi-user.target