Dockerized Python serial modem attendant to pick up and dial a key.
-
Integrate the included
docker-compose.yml
-
Map your serial modem device to
/dev/ttyACM0
-
Set any
environment:
variables you need, or omit them to accept the defaults
Environment Variable | Default | Purpose |
---|---|---|
NOTIFY_ONLY |
None |
If present and not "" will only notify; will not dial in response to RING. |
DIAL |
6 |
The button to press after picking up, 0 -9 , * or # |
TIMEOUT |
3 |
Timeout (seconds) for modem to react to commands, serial read-write. |
TELEGRAM_TOKEN |
None |
Your Telegram bot API token. Leave blank to disable. |
TELEGRAM_USERS |
None |
Comma-separated list of Telegram IDs to message. |
# Get the latest python base image
docker pull python:3-alpine
# Build a local image
docker build -t dtmf-butler .
# Run it
docker run -it --rm --user=root --device=/dev/ttyACM0 --name=dtmf-butler dtmf-butler
- Modem AT Command Set
- Serial Programming/Modems and AT Commands
- Voice modem command set
- Hayes command set
- "Serial Programming Guide for POSIX Operating Systems" 5th Edition, Michael R. Sweet, 1994
- USB Analog Modem with Raspberry Pi
- Send DTMF Tones with Raspberry Pi
Neat projects: