r/Asterisk • • 1d ago

My Asterisk Fax GUI is now a complete Linux fax machine – sending, receiving, and an address book

Thumbnail
gallery
30 Upvotes

Hi everyone,

A little update on my Asterisk fax project. What started as a simple Python GUI for sending faxes has now grown into a small Linux desktop fax machine. I've added fax reception, a keypad, and an address book. This is probably the final version for now.

What's new:

  • Sending: The original workflow is still there. Drag and drop a PDF (or select one), enter the fax number, and send it.
  • Keypad: A numeric keypad, just like on a telephone, makes entering numbers a little more convenient.
  • Receiving: Incoming faxes are automatically converted from TIFF to PDF and displayed in a list. New faxes are detected automatically, unread ones are highlighted, and double-clicking opens them in the default PDF viewer.
  • Address book: Names and fax numbers are stored in a simple JSON file. You can add, edit, and delete entries.

My setup:

  • Asterisk 20 on an Ubuntu MATE 24.04 desktop PC
  • Python + Tkinter for the GUI
  • Asterisk handles the actual fax transmission and reception
  • My main Asterisk server runs on a Raspberry Pi and connects to SIP providers and FritzBoxes via SIP and IAX2

Security and network configuration:

A word of warning: Setting up Asterisk for external connections is not quite that simple.

  • If your Asterisk server is accessible from the internet, you should protect it against SIP scanners and brute-force attacks. I recommend using Fail2Ban together with APIBAN.
  • If your Asterisk server is behind a router, you may need port forwarding for the required SIP and RTP ports, depending on your network setup.
  • You also need a publicly reachable IP address. This can be a static public IP address or a dynamic IP address combined with a DynDNS service.
  • Make sure you understand which ports are exposed to the internet and secure your Asterisk configuration accordingly. Never expose an Asterisk server without proper protection.

Remote access: WireGuard VPN and IAX2

If you want to send faxes from a Linux laptop while traveling, I would recommend a different approach:

Set up a WireGuard VPN connection to your own Asterisk server at home. You can then establish an IAX2 connection through the VPN tunnel. Your laptop communicates with your home Asterisk server, and that server handles the actual fax transmission through its SIP provider.

This way, you don't have to expose SIP or IAX2 directly to the internet. You only need to make your WireGuard endpoint reachable. For a typical home setup, this means forwarding the WireGuard UDP port on your router.

However, there is another potential problem: CGNAT.

A static public IP address is not essential. A dynamic public IP combined with DynDNS is usually sufficient. But DynDNS cannot solve the problem if your ISP uses Carrier-Grade NAT (CGNAT). In that case, your router does not have its own publicly reachable IPv4 address, and normal port forwarding will not work.

This is particularly relevant with Starlink, where standard residential connections commonly use CGNAT. Depending on your service plan and available options, you may need a public IP address or an alternative solution.

Possible alternatives include using IPv6, a VPN relay or a small VPS with a public IP address as an intermediary. These solutions require additional networking knowledge and configuration.

To be honest, getting remote faxing to work reliably can involve quite a bit of effort.

My practical advice: If you simply need to send a fax occasionally while traveling, using an existing online fax portal or an email-to-fax service is probably much easier. For receiving faxes, having them forwarded to your email is also a practical solution.

Sometimes you can overengineer things. Just because something is technically possible doesn't mean it's worth the effort!

A few more details:

The GUI must run on the same Linux machine as the Asterisk instance it controls. It accesses Asterisk through the local console and needs the appropriate file permissions and group membership. I've tested it only with my own setup.

I've also written a detailed step-by-step guide covering the additional packages, folder permissions, dialplan changes, the conversion script, and the complete Python program.

Full documentation and source code:

https://elektronikbasteln.pl7.de/building-a-linux-based-fax-machine-with-asterisk-and-python

For anyone who missed the first version, here's my original post about the fax-sending GUI:

https://www.reddit.com/r/Asterisk/comments/1y9xime/sending_faxes_from_a_python_gui_with_asterisk_20/

As before, this is a hobby project. I built and refined much of it with AI assistance, but there was quite a bit of testing and troubleshooting involved.

Feel free to have a look, copy it, improve it, or point out things that could be done better. Feedback is welcome!

73 from Sweden,
Volker (SM5ZBS)


r/Asterisk • • 2d ago

Moving an old on-prem phone system to a VM or the cloud? What to check before you unplug the box

Thumbnail reddit.com
3 Upvotes

r/Asterisk • • 3d ago

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

14 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)


r/Asterisk • • 3d ago

Asterisk based telephone game

Thumbnail
github.com
9 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 • • 4d ago

JsSIP browser call connects but no audio — Asterisk 20 + coturn, relay refuses the browser's private address. What am I missing?

2 Upvotes

Hi everyone — I'm Hao, and I host a small podcast called Blind Kid's Life. I'm blind, and a lot of my listeners are too, so I built a free call-in line so people who can't use Spotify can just phone in and listen to episodes. It works when I test it in the Linphone app, but the browser link — the one a listener would simply tap, with no app to install — connects and then plays no sound at all. I've spent days on this and I'm stuck, so I'm hoping someone here can spot what I'm missing.

Here's the setup. The call page uses JsSIP 3.10.1 in Chrome, talking to Asterisk 20 (webrtc=yes) over secure WebSocket, with a coturn relay on the same cloud server. The call connects — the page says "Connected" — but there is no audio in either direction. The same Asterisk and coturn carry Linphone calls end to end with sound, so the server side can relay media; the failure is specific to the browser.

What the relay's own log shows: when the browser calls, Asterisk asks coturn for permission to send media to the browser's private home address, 10.10.10.172, and coturn refuses with 403 "Forbidden IP", because that address is in a denied private range. No media packets were relayed at all — the relay's usage counters stayed at zero. I then set the page to relay-only ICE (iceTransportPolicy: "relay" in the JsSIP pcConfig), confirmed it in the live page file, and loaded it fresh. On that relay-only call the browser allocated no TURN session at all and offered only its private address, and the call still connected in silence.

My three questions:

  1. Does JsSIP 3.10.1 actually pass the pcConfig — including iceTransportPolicy — through to the real RTCPeerConnection, or does it drop it? And if it drops it, is there a correct way to force relay-only through JsSIP?
  2. Is there an Asterisk-side setting that makes it use the browser's public relay address instead of asking the relay for permission to the browser's private address?
  3. Why would the browser allocate a TURN relay session on the very first call, but allocate none at all once relay-only is set?

Thank you for reading this far, and for any pointers at all. This line matters to my listeners, and I'd love to get it working for them.


r/Asterisk • • 7d ago

Looking for a Real-Time Conversation Transcription solution

7 Upvotes

Hi,

I run a small contact center. I'm looking for a solution that can transcribe audio calls in real time. I use a self-hosted FreePBX server.

My next step would be to pipe the transcription to an AI model, that will prompt me answers based on the knowledge it has been provided.

If anybody has recommendations for a real-time transcription solution, please chime in.

TIA


r/Asterisk • • 7d ago

White label AI answering machine solution

1 Upvotes

We built nomoVM (https://nomovm.com) because answering machine detection on most dialers is still guesswork. Asterisk's built-in AMD(), which VICIdial and GoAutoDial use by default, decides by counting silences and word lengths. So a person who says "Hello?… Hello?" gets hung up on, and a short voicemail greeting gets sent to an agent, who hears a beep instead of a customer. Every one of those is a wasted lead or wasted agent time.

nomoVM is AI answering machine detection as a hosted service. Your dialer streams the first seconds of each answered call to us, and we send back HUMAN or MACHINE:

We'd love your honest feedback, especially from anyone running outbound campaigns:
- What does AMD cost you today, in dropped people or in agents hearing voicemail?
- Which dialer or integration should we support next?

We'll be here all day answering questions. Thanks for checking us out! 🙏


r/Asterisk • • 10d ago

Conectar una pizarra Issabel PBX con una Mitel 3300 ICP

1 Upvotes

Necesito ayuda para conectar via truncal una pizarra virtualizada con Issabel 5 y una Mitel 3300 ICP, se agradece de antemano cualquier ayuda sobre este tema


r/Asterisk • • 13d ago

I built a free SIP softphone for Linux, with a trace view of every call (early, GPL-3.0)

24 Upvotes

I'm the author of corasip, a free and open-source SIP softphone for Linux. It's early (version 0.1.2), and I'm sharing it to get feedback and bug reports.

I needed something to test SIP setups and make calls from my desktop. The options I found were browser or WebRTC tools, paid subscriptions, or Windows programs that needed Wine. So I wrote one in C++ with Qt 6 and PJSIP.

What it does:

- Registers over UDP, TCP or TLS. Codecs: Opus, G.722, G.711. SRTP over TLS.

- Calls, answer, hold, transfer, several calls at once, contacts, call history.

- A trace panel that shows every SIP message of a call as a ladder diagram. This helps when checking what a server or trunk actually sends.

- Tray icon and sip: / tel: links.

Install is one command. It downloads the signed release, checks the checksum and signature, and installs for your user:

curl -fsSL https://github.com/anfecoraca/corasip/releases/download/v0.1.2/install.sh | CORASIP_URL=https://github.com/anfecoraca/corasip/releases/download/v0.1.2 sh

If you'd rather read the script first, download install.sh from the release page.

Limits: the global hotkey works only on X11. It is not for emergency calls. It comes with no warranty, under GPL-3.0.

Source, downloads and issues: https://github.com/anfecoraca/corasip

Happy to answer questions, and I'd especially like to hear from anyone who tests it on a distro I haven't covered.


r/Asterisk • • 16d ago

Extension State/Hints Performance Improvement

6 Upvotes

I posted previously on the work I did for manager performance improvement linking to its blog post and now I've just posted a blog post about the extension state/hints work I did:

https://www.asterisk.org/new-extension-state-hopefully-you-dont-really-notice/

For those who want a TLDR it was a rewrite which focused on using modern Asterisk primitives to be more selective about the updates each hint receives, bringing caching into the hint, and splitting the logic away from the dialplan. Previously it was a single firehose and extension state was responsible for deciding if it needed to ignore updates or not, and when you asked for extension state it had to query other parts of Asterisk and calculate.

If anyone has any specific questions I'm happy to answer.

Disclaimer: I'm the Asterisk Project Lead and a Director of Engineering at Sangoma.


r/Asterisk • • 16d ago

Route call from asterisk to 3CX

4 Upvotes

Anyone manged to route calls from Asterisk to extrenal 3CX system?

I write program that accept call, Ai robot chats, then if needed would transfer call to client's phone system which is 3CX.

PS: an update, turned out i had to set qualify_frequency=0, otherwise Asterisk testing connection by sending OPTIONS request to 3CX and 3CX does not reply correctly, so Asterisk was marking [3cx] endpoint as invalid and would not send a call. By setting qualify_frequency=0 i am telling Asterisk not to verify connection and send the call directly.


r/Asterisk • • 18d ago

Self-hosted live panel and call transcription for Asterisk

1 Upvotes

I'm one of the developers and this is our commercial product, so read it with that in mind.

BeePanel runs on your own server next to Asterisk. Operators and supervisors see extensions, calls and queues live, can pause agents, listen, whisper or barge, and transfer or hang up calls. The server checks every action against the user's permissions. The Pro edition adds CEL-based call history, recordings and reports, plus transcription with an AI summary, either per call or automatically by queue, extension or line with a monthly spending cap.

It doesn't touch the configuration Asterisk manages; it adds its own settings and that's it. There's no telemetry, and recordings only leave the box when you transcribe them. Licensing is one-time per PBX with unlimited users, and the trial gives you 15 days of everything without a card.

It's a beta, so I mostly want to hear what breaks on your setup and what you'd need before using something like this. I'll answer questions in the comments.

https://beepanel.io/get-started

------------------

AI disclosure: drafted with help from an AI assistant, reviewed by me.


r/Asterisk • • 19d ago

Any Pbx experts in here? What’s your best tip you want to share with others?

Thumbnail reddit.com
9 Upvotes

r/Asterisk • • 22d ago

This is what I dreamed of when I started Routr about 10 years ago. 🚀

Post image
1 Upvotes

I used AI heavily to speed up development, like everyone else. Routr 2's architecture was sound; the language choice wasn't. Node couldn't keep up, and the most important component was Java wired into JS through GraalVM.

Routr 3 keeps the same architecture and APIs, rewritten in Go. It's 10x to 25x faster depending on the workload.

Turns out the design was fine. It just needed a different language. Full report: routr.io/benchmarks


r/Asterisk • • 25d ago

Asterisk based AI phone-toy goes into a PUB Restaurant in California!

12 Upvotes

Asterisk runs POTSBox and it is being use for FUN at a PUB in Pleasanton https://pots-box.org

It's hilarious — you can dial-a-joke or just ask about drinks. Anyone can use it to make fun things with their vintage phones.


r/Asterisk • • 28d ago

SIP softphone workflow: script-based call review, red flags and live agent coaching

Thumbnail
reddit.com
0 Upvotes

Disclosure: I work on AI Softphone. This walkthrough covers script-based quality review, evidence-based risk flags and live coaching in a SIP client. The PBX provides calling; ASR and the language model use separately configured endpoints. Configuration steps and complete prompts are included. The screenshots use fictional data and the example findings are authored, not measured results.


r/Asterisk • • Nov 03 '26

OSS Endpoint Manager for FreePBX 17

Post image
8 Upvotes

r/Asterisk • • Nov 01 '26

The biggest update to Routr SIP Server in years.

Post image
8 Upvotes

r/Asterisk • • Oct 29 '26

Mobile client

3 Upvotes

Hi

Has anyone got a recommendation of a decent, preferably open source client for iOS and android please. Need something reliable


r/Asterisk • • Oct 24 '26

I built a free, self-hosted call screening plugin for Asterisk

14 Upvotes

GitHub: https://github.com/CallerAPI/Falcon
Adapter docs: https://github.com/CallerAPI/Falcon/blob/main/adapters/README.md

I'm Dmitry, founder of CallerAPI, and I built this with my small team. The code is Apache 2.0 and the engine runs without an account on our platform, just to clarify

Falcon is a lightweight screening engine that runs next to Asterisk. Asterisk hands it each inbound INVITE over AGI (or ARI). Falcon reads the SIP headers, verifies STIR/SHAKEN when there is an Identity header, names the provider behind the source IP, applies your own allow and deny lists, scores the request, and returns allow, flag, challenge or reject with the reasons. Asterisk keeps signaling and media. Falcon is not in the call path

The dialplan side:

[from-trunk-falcon]
exten => _[+0-9]X.,1,NoOp(Falcon screen ${EXTEN})
same => n,AGI(falcon.agi)
same => n,GotoIf({FALCON_ACTION}"="reject"]?drop)
same => n,GotoIf({FALCON_ACTION}"="challenge"]?drop)
same => n,Set(PJSIP_HEADER(add,X-Falcon-Score)=${FALCON_SCORE})
same => n,Goto(your-inbound-context,${EXTEN},1)
same => n(drop),Hangup(21)

Point the trunk's inbound context at it. The AGI sets FALCON_ACTION, FALCON_SCORE and FALCON_REASONS, so you can do whatever you like with them instead of hanging up… send flagged calls to voicemail, tag them, route them to a queue, etc.

I’m posting it here because I want real feedback from professionals and people who experience the pain of robocalls on their infrastructure

Let me know what you think :)


r/Asterisk • • Oct 23 '26

Built my own web UI for Asterisk, open source now

44 Upvotes

I do voice support for a living and run Asterisk at home. Editing config files by hand got old pretty quick and FreePBX was way too much for my home setup, so I built my own UI and called it VST (short for Vermittlungsstelle, German for telephone exchange).

Some of you might remember it as GonoPBX. I had to put the project on hold for a while for work reasons, but now it's back under a new name.

It does extensions, call forwarding, BLF, pickup groups, ring groups, IVR and voicemail with mail delivery. SIP trunks have templates for a bunch of German providers, or you go generic. There's a call history with stats, live SIP debugging and a Home Assistant integration (click to call, MQTT events).

Runs as 4 containers: Asterisk 20 with PJSIP, FastAPI, React and Postgres. The DB is the source of truth, Asterisk configs get generated from it.

Built it with Claude Code, which helped a ton, mostly with debugging. The telephony part is from my day job.

One warning: the backend mounts the Docker socket, so whoever gets code execution there has root on the host. Keep it behind VPN or a proxy, don't put it on the internet.

Demo with fake data (resets every 30 min): https://vst-demo.frickelfabrik.de

Code: https://github.com/ankaios76/vst

More info: https://frickelfabrik.de/projekte/vst/

Feedback welcome, especially if you run Asterisk yourself.


r/Asterisk • • Oct 22 '26

We released an on-prem answering machine detector that runs on the same box as Asterisk/VICIdial

Thumbnail
reddit.com
1 Upvotes

r/Asterisk • • Oct 22 '26

Does any SIP trunk deliver the real number in P-Asserted-Identity on a withheld (anonymous) inbound call?

Thumbnail reddit.com
2 Upvotes

r/Asterisk • • Oct 21 '26

Interface AXIS Camera with VIOP to old Intercom system

Thumbnail reddit.com
1 Upvotes

r/Asterisk • • Oct 17 '26

Open source SIP softphone for troubleshooting

Post image
111 Upvotes

GitHub: github.com/igtoth/sidetone
Try it in the browser (WebRTC, no install): igtoth.github.io/sidetone
Downloads (Linux, Windows, macOS): Releases

MIT licensed, written in Rust.

What it does

A real softphone

  • Multiple accounts and lines, hold, mute, blind and attended transfer (REFER / Replaces)
  • DTMF as RFC 4733, SIP INFO or inband
  • DND, auto answer, intercom, PRACK, session timers, DNS SRV, outbound proxy
  • Microphone and speaker with level meters, per-call WAV recording

Troubleshooting built in

  • Live SIP trace while you talk, with filters
  • Every packet (SIP + RTP) captured in-process, no Npcap or root needed
  • One click to analyze: ladder diagram plus ~40 rules that explain problems in plain words (missing ACK, private IP in SDP/Contact, drop at 32 s, one-way audio, codec mismatch, 481, glare, auth failures...)
  • RTP loss, jitter, gaps and an E-model MOS estimate
  • Also opens any pcap/pcapng from Wireshark, tcpdump, sngrep or your SBC

Sharing evidence

  • Annotated pcapng export with findings as Wireshark packet comments
  • Redacted export that masks numbers, names, credentials and public IPs for vendor tickets

Diagnostics

  • OPTIONS ping with round trip
  • RFC 3263 lookups (NAPTR / SRV / A)
  • STUN test to spot symmetric NAT
  • The address your registrar sees you from

Reproduce broken clients on purpose

Per-account knobs like user=phone, compact headers, long Contact, T1, DSCP, fake SDP address, even skipping the ACK, with a live preview of the INVITE the account will send.

Optional AI second opinion

Bring your own key (Anthropic, any OpenAI-compatible endpoint or a local Ollama). Masked by default, and you can preview exactly what gets sent before anything leaves your machine.

Automation

CLI, JSON test suites with JUnit output for CI, and an MCP server for AI agents.

Status

It’s alpha. CI runs it against a real Asterisk on every commit, but it’s young. Not there yet: TCP/TLS, SRTP and Opus in the native phone, conferencing, BLF.

If it reads one of your traces wrong, I’d really appreciate a redacted capture (Export > Redacted pcapng) in an issue. Real traces from other PBXs, SBCs and carriers are what improve the rules most.

Disclosure: built with heavy help from an AI coding assistant; the design, testing and telecom decisions are mine.

What would you want a troubleshooting softphone to check that most tools don’t?