Elektrine lite

← Feed

@evgandr@mastodon.bsd.cafe

Post #2176109

2026-02-07 19:02 UTC

As I wrote before (https://mastodon.bsd.cafe/@evgandr/115912395421390028) I tried to use TURN server for communication with my relatives, but failed to setup secure enough solution. So, I decided to try an old and reliable solution — Asterisk. With the help of a book "Asterisk: The Definitive Guide" from J.V. Meggelen & R. Bryant & L. Madsen, of course. First, I was forced to build the asterisk package by myself (from ports, ofc), since the binary version from NetBSD repository compiled with the all DB support, except my favourite PostgreSQL database. By the way, adding users and writing dialplan with the help of aforementioned book was not so hard as I expected :drgn_happy_blep:. Same for network setup. Since, I'm using PJSIP I just opened SIPS port and a range of UDP ports for RTP protocol on the my firewall. Despite, my home network hidden behind NAT on the router, there are no big problems with networking — end-user devices and an Asterisk server connected with use of simple star topology. Surpisingly, the quality of the voice call is excellent comparing with service, provided by local cellular network operators. I suppose, that the secret in used codecs, or it is because there are not so much users (only 2) of my service. #Asterisk #NetBSD #sip #VoIP

Replies (4)

  • @evgandr@mastodon.bsd.cafe this graph implies that the devices can communicate through a non-ISP channel 😭😭

    Open ##3183559

  • @shapr@recurse.social 2026-02-07 19:47

    @evgandr@mastodon.bsd.cafe good job! I used to have a job doing tech support for asterisk and you have done better than 90% of Digium customers in 2013.

    Open ##3183560

  • @vinishor@bsd.network 2026-02-07 21:33

    @evgandr@mastodon.bsd.cafe Nice setup! I'm interested to build something similar with a VoIP adapter to use old analog phones, but I have a question while reading your schematics : the phone 1 and 2 are connected through others ISPs, but are they directly connected to the ISP box or to a small computer that can connect to Asterisk ? I'm a newbie in this field, so I might miss something

    Open ##3183565

  • @h4890@alive.bar 2026-02-07 23:33

    @evgandr@mastodon.bsd.cafe Which clients are you using?

    Open ##3183566