r/Asterisk • • 15h ago

Asterisk based telephone game

Thumbnail
github.com
6 Upvotes

Hey everybody, I've spent the last several years working on-and-off on a Asterisk based game you can play on any touch tone phone. I envisioned it as a voice version of a text based dungeon crawler/adventure game, "you can go north or east" as well as D&D style battles (roll a d20 and add on modifiers). At the start, and after any battle, you get points to distribute across your health and stats. I started this long before I knew anything about coding, didn't use AI for anything in the game, and is built all in dialplan and mysql calls.

This was just a project i started to teach myself Asterisk with no real plan. Once I got it mostly working I kind of lost interest in making it fun so I thought I should release it publicly and see if anyone wants to pick that up.

I did use some AI to document my mess but all of the beautiful chaos in the dialplan is solely my fault.

If you're interested feel free to play with it. I can try to answer any questions


r/Asterisk • • 55m ago

Sending faxes from a Python GUI with Asterisk 20 (hobby project, vibe-coded, 1000+ km via SIP providers)

1 Upvotes

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)