Hi everyone,
Fax is really outdated in 2026, I know. Nobody needs it anymore. But I wanted to see if I could build a small fax sender for fun, and it turned out to be an exciting and educational project.
What it does: You drag a PDF into a small window, type the fax number, click "Send", and watch the progress in a status window. That's it.
My setup:
- Asterisk 20 on an old Ubuntu MATE desktop PC (this one only sends faxes)
- IAX2 link to my main Asterisk on a Raspberry Pi
- The Pi connects to SIP providers like Sipgate and to a few FritzBoxes
- Python + Tkinter for the GUI
- ImageMagick converts the PDF to TIFF, then SendFAX does the rest
The "vibe coding" part: I built most of this together with an AI (Claude). I'm amazed how fast a working GUI and dialplan came together this way. But it was not magic. The AI was sometimes wrong, and I had to test a lot and paste logs back until we found the real problem.
The hard part was fine-tuning. To send faxes reliably through foreign providers over more than 1000 km, I needed:
Wait(2) before SendFAX (one FritzBox sends its fax tones immediately after answering)- a hangup handler, so the result is still reported when the other side hangs up quickly
- only V.27 and V.29 modems (V.17 was too problematic) and ECM off
- alaw only (
disallow=all, allow=alaw) on the SIP peer and on the IAX2 link jitterbuffer=no and trunk=no on the IAX2 link- the right permissions for the Asterisk console, so the GUI can talk to it without sudo
With these settings, a 28-page fax went through Sipgate to a FritzBox in about 14 minutes.
Receiving: For now, incoming faxes are handled by a FritzBox. Later I want to add fax receiving to the GUI too.
This is a hobby project. Feel free to copy it, improve it, or tell me what I did wrong. Corrections and ideas are very welcome!
Full step-by-step guide with all scripts and config files:
https://elektronikbasteln.pl7.de/sending-faxes-with-asterisk-on-ubuntu-permissions-imagemagick-and-other-stumbling-blocks
In German: https://elektronikbasteln.pl7.de/faxversand-mit-asterisk-unter-ubuntu-rechte-imagemagick-und-andere-stolpersteine
My Asterisk Projects: https://elektronikbasteln-pl7-de.translate.goog/asterisk-auf-einem-raspberry-pi?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=en
73 from Sweden,
Volker (SM5ZBS)