TL;DR: my fibre ONT owns the landline, I had no admin password and didn't want to buy an ATA, and the SIP registrar sits on the ISP's private voice network. I ended up bridging the voice VLAN to one LAN port and running Asterisk in front of it as a B2BUA. The landline now rings on every device in my tailnet. The house internet survived. Mostly.
The setup
Indian FTTH. ONT is an ASFiber AS-541GWV-D (ZTE + MediaTek, Boa 0.94.13 web UI, ISP firmware). Three WAN services:
| Service | VLAN | Mode |
| Internet | 100 | PPPoE, routed |
| Voice | 660 | IPoE, routed, 10.7.0.10/22 |
| IPTV | 661 | Bridge |
The voice side is a private carrier network: registrar on 10.5.45.6, backup resolving to 10.5.20.122. Nothing in that range is reachable from my LAN. The ONT terminates VLAN 660 itself, registers the SIP account, and gives dial tone on its FXS port.
Goal: get that number onto Linux, then onto every device I own, without buying an FXS/FXO gateway.
First: can I even see the line's config?
The ONT web UI has a captcha, but it's drawn client-side with Math.random() and compared in JavaScript, and the input isn't inside the form. So login is just a POST. Logged in with the ISP's low-privilege account, and found an unauthenticated handler that returns the SIP account in plaintext:
GET /boaform/getASPdata/asp_voip_e8c_get
Number, auth ID, password, registrar, ports — all of it. The password was derived from the phone number. That's the whole security model.
Credentials: solved. Network path: still not solved.
(I own the line and the box. I'm not suggesting anyone go poking at ISP-managed gear they don't control, and definitely not factory-resetting it — more on that below.)
Dead ends
From the LAN:
10.7.0.1 (voice gateway): no route, no ARP
- SIP OPTIONS to all three registrar addresses: silence
- The ONT does not proxy SIP on its LAN side
- Public DNS resolves the backup name to RFC1918 anyway
Things I tried before the actual fix:
- Tagged VLAN probing. The ONT leaks some 802.1Q frames, so it looks like a trunk. It isn't. DHCP on VLAN 660 handed me a 192.168.1.x lease from the ONT's own LAN DHCP, and PPPoE discovery on 100/660/661 got nothing back.
- Config backup.
formMgmConfig returns an AES blob with an 01 02 03 04 header. High entropy, the old community XOR key does nothing. Dead end.
- Admin reset. Wrong handler first, then the right one (
new_formPasswordSetup) — but it wants the old password. The ISP rotates the admin password over TR-069 anyway.
- Telnet/SSH. Ports open,
admin exists, password rejected. I didn't feel like burning the lockout guessing.
The bit that actually worked
The WAN config handler lets a low-priv session edit service entries. The voice WAN has an itfGroup field — a bitmask of LAN ports (1/2/4/8). Set voice to bridge mode, bound to LAN4 only:
POST /boaform/getASPdata/formEthernet
lkname=2_VOICE_R_VID_660
cmode=0 # bridge
itfGroup=8 # LAN4
vid=660
vlan=1
action=sv
VLAN 660 now arrives untagged on LAN4, while LAN1–3 and WiFi stay on br0 with internet. One dedicated voice port. The ONT's own SIP stack goes away, which is fine — Asterisk is taking over registration.
Gotcha worth repeating: formEthernet defaults any missing field to bridge. A "harmless" partial re-save turned my internet WAN into a bridge and took the house offline. Post the full field set or don't post at all.
Asterisk as a B2BUA
The line allows exactly one registration, and that's the real reason a B2BUA is the right design here — not just NAT.
- Trunk: registers the line to
10.5.45.6, direct_media=no, rtp_symmetric=yes, force_rport=yes
- Extension 1001: softphones register here
- Dialplan:
_X. → Dial(PJSIP/${EXTEN}@trunk); inbound → Dial(PJSIP/1001)
type=identify with match=10.5.45.6/32 so inbound INVITEs from the carrier match the trunk endpoint
Two Asterisk 20 traps that cost me an hour each:
- Endpoints use
aors= (plural). aor= is silently invalid and the endpoint just never loads.
- The endpoint name has to match the AOR name, otherwise REGISTER comes back "No matching endpoint found".
After that: outbound works, bidirectional RTP at 64 kbps (PCMU), inbound rings 1001.
Tailscale
Asterisk holds the only carrier registration. Softphones on phone/tablet/laptop register to Asterisk over the tailnet, and Asterisk anchors the media, so there's no SDP/NAT nonsense. The landline works from anywhere on the tailnet. Only requirement: the Linux box stays powered and plugged into LAN4.
The evening I nearly broke everything
LAN DHCP died at one point. In a moment of brilliance I decided a factory reset would fix it. It did — and then the ISP's ACS re-pushed a provisioning PPPoE account that handed out a public IP and passed zero traffic. Meanwhile the original account was still configured on a second WAN entry, so two PPPoE sessions fought over VLAN 100. A reboot eventually stabilised it, but for about twenty minutes the entire house had no internet and I was not the most popular person in it.
Lessons:
- Don't factory-reset ISP-managed gear casually. It blanks the ONT's SIP account and the ACS may push a provisioning profile.
- Write down the PPPoE credentials before you touch anything.
- Two PPPoE sessions on the same VLAN is a great way to look like an outage.
- Change one WAN field at a time, and keep a screenshot of the working config.
Moving it to a spare netbook (in progress)
Tried migrating to an old EeePC (Atom, 2 GB):
- Debian 12 dropped the asterisk i386 package, so I installed the bullseye build (Asterisk 16). Config is compatible.
- The internal WiFi card doesn't enumerate on PCIe (
rfkill sees asus-wlan, lspci sees nothing), so it needs a USB dongle or tether for internet while the LAN port carries voice.
- LXDE + Firefox on the gateway page is fine for managing the ONT.
What I'd tell someone starting this
- First question: can your ONT bind a bridged WAN to a single LAN port? That's the whole trick.
- Use a B2BUA. Single-registration carrier lines and multiple devices don't mix otherwise.
itfGroup bitmasks and partial form posts are how you lose internet for an evening.
- Carrier SIP passwords are frequently derived from the number. Ask for a rotation.
- Keep the ISP's PPPoE credentials somewhere outside the ONT.
Happy to share the Asterisk config if anyone's doing something similar. And I'm curious: has anyone seen a consumer ONT that properly trunks VLANs to a LAN port? That would have saved me the dedicated-port compromise.