News:

"The phone is a remarkably complex, simple device,
and very rarely ever needs repairs, once you fix them." - Dan/Panther

Main Menu

Who is also running an Asterisk phone server as a hobby or is planning to do so?

Started by Volker, November 04, 2022, 05:09:11 PM

Previous topic - Next topic

markosjal

Ok so OP has not posted the reply here so I will in the event someone else runs into this issue and needs a solution

I received a PM stating that shortening the password worked and hardware ATA now registers.. The auto Generated passwords are too long for many devices and some special characters may be an issue too.

Phat Phantom's phreaking phone phettish

Volker

I have spent many hours with the ChatGPT AI system in the meantime since my last post and I am thrilled. I think it is a real "game changer". As ChatGPT itself admitted when asked, it still has little experience with the Asterisk programming language, so there are still many bugs. But the program is adaptive and will get better with time.

The program already knows Python quite well, because it is a very popular program and accordingly many requests exist. Thus the AI program learns and becomes better and better. To convert the digits of a Swedish dial, it converted a working AGI script from PHP to Python. It ran on the first try. However, it had not converted the 9. I explained this to ChatGPT and explained again, quite precisely digit by digit, how I wanted the conversion I wanted. ChatGPT understood this and immediately built in the correct for loop. After that, the program ran perfectly and reliably without any changes. I have very little knowledge of Python. When asked, ChatGPT even explained to me line by line how the program worked. There are not many teachers who have this patience for a complete beginner.

The project is presented and documented at https://elektronikbasteln-pl7-de.translate.goog/schwedische-waehlscheibe-agi-php-skript-fuer-asterisk-wandelt-die-gewaehlten-nummern-um?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=de .

I have great hope that in a few years ChatGPT will know its way around Asterisk and will be a great help.

Volker

Volker

Addendum: There is now also an AGI script for New Zealand dials available. Here is the code:

https://elektronikbasteln-pl7-de.translate.goog/schwedische-waehlscheibe-agi-php-skript-fuer-asterisk-wandelt-die-gewaehlten-nummern-um?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=de

ChatGBT also helped me with this and on the second try the script worked. ChatGBT is able to learn.

Since I don't have a New Zealand phone for testing, I improvised a bit, as you can see in the photo.
Volker

dsk

For that phone (Elektrisk Bureau) you could print out a std dial center, maybe from this? Or a ring to put under the dial. Not sure if it fits LME.

dsk

#64
Quote from: dsk on January 23, 2023, 10:10:45 AMFreePBX 15.0.29  after running som updates. I downloaded the raspbx-10-10-2020 from this page: http://www.raspberry-asterisk.org/downloads/

I had to use a keboard and screen to chang the root password, and set the right time zone. Setting time zone in Freepbx alone was not enough to get everything right.

You may call  17772922141149@in.callcentric.com or just 17772922141149 from Callcentric, and get the Norwegian time. (in English)  :)

https://www.callcentric.com/faq/4/130

Sipbroker is also a way to make calls from regular phones (and cellphones) to abroad for a reasonable cost... so find your local number here: http://sipbroker.com/sipbroker/action/pstnNumbers?fbclid=IwAR2inxM_NrZNQEYlylc9fRWx6AzM--1X-lp7GXLogtTN6Qlttyp7o-WcypI[/size]

Wait for the voice, and dial *011170  are you putting the number on a cell phone and calling via the listed number, just store the the listed number (comma) *011170  and everything goes automatic. The comma i is a pause to wait for the answer/voice.  If the pause is to short just use ,, (comma comma)  :) If you use the  , *011170  you will reach my clock, but it may be busy, because it is not made for many calls at the same time.

Volker

This example of a lotto generator based on a random number generator with speech output  shows how easy it has become to write complicated software with the help of an AI system. The English sound files were created with a text-to-speech program. Even the text of the web page was partly written by ChatGPT according to my keywords:

https://elektronikbasteln-pl7-de.translate.goog/lottozahlengenerator-als-agi-skript-in-python-fuer-asterisk-mit-hilfe-von-chatgpt-erstellt?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=en

With the Callcentric number 1777 868 2055 you can reach my Asterisk server.  Continue with CallThrough. There is an announcement with the request to enter the desired destination number and to terminate with #. After the voice instruction then dial 341# and listen to the lotto generator. Everything is in English. I would also be very interested to know how real the voice of the speaker sounds and if the translation is ok.

Unfortunately, the program cannot yet predict future lottery numbers. But I am working on it.  :)
Volker

markosjal

Quote from: dsk on February 09, 2023, 02:16:57 AMSipbroker is also a way to make calls from regular phones (and cellphones) to abroad for a reasonable cost... so find your local number here: http://sipbroker.com/sipbroker/action/pstnNumbers?fbclid=IwAR2inxM_NrZNQEYlylc9fRWx6AzM--1X-lp7GXLogtTN6Qlttyp7o-WcypI[/size]

Wait for the voice, and dial *011170  are you putting the number on a cell phone and calling via the listed number, just store the the listed number (comma) *011170  and everything goes automatic. The comma i is a pause to wait for the answer/voice.  If the pause is to short just use ,, (comma comma)  :) If you use the  , *011170  you will reach my clock, but it may be busy, because it is not made for many calls at the same time.



I guess you are off and running now
Phat Phantom's phreaking phone phettish


Hill Haven Telephone Company

There is also this wonderful asterisk tutorial by the phreaknet peeps.  It works great
https://docs.phreaknet.org/

Follow that youll be golden

Volker

I have now installed APIBAN on my Asterisk server. APIBAN is a free service that blocks unwanted SIP traffic. This works wonderfully. There are servers in operation around the world that act as honeypots to collect malicious IP addresses and make them available to other SIP servers. Blacklists are created automatically in Iptables and updated regularly. In addition, the length of the blacklist can be limited automatically. You don't have to worry about these malicious sip scanners anymore. It all runs fully automatically in the background. I am really thrilled. Here are my practical instructions:

https://elektronikbasteln-pl7-de.translate.goog/apiban-schuetzt-sip-telefon-server-automatisch-vor-boesartigen-angriffen-aus-dem-internet?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=en

And here is the video of Fred Posner, who created APIBAN:




For me there is no more reason not to run SIP servers accessible via the Internet and to network them. Here are all my tutorials about Asterisk on a Raspberry Pi:

https://elektronikbasteln-pl7-de.translate.goog/asterisk-auf-einem-raspberry-pi?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=en


Volker

Volker

APIBAN was very busy overnight. It is a powerful tool and blocked attacks from almost 40 IPs in 24 hours. APIBAN has blocked almost 1000 IPs in my list. Fail2Ban has almost nothing to do.

apiban_24h_result.jpg
Volker

markosjal

You have your SIP Port open to the public , really? I mean I know there are times you need that but for most home , hobby or even come more advanced servers it is best to NOT open the SIP port
Phat Phantom's phreaking phone phettish

Volker

Of course the SIP port is always open, because over 30 of my subscribers are only reachable out there via the Internet. I have no other choice. If I don't do port forwarding, I get big trouble from some subscribers, because for them the server has to be reachable continuously. They expect the service to be reachable at all times, of course. A telephone server has to run around the clock. Otherwise it is not a phone server.

However, I don't use port 5060, which is common for SIP, and most of those malicious SIP scanners target port 5060. Anyway, thanks to APIBAN my SIP server passed the practical test. It now runs maintenance-free without any interventions around the clock. That's the way it should be.

No attacks have occurred today. These attacks usually come in waves with many different IPs at the same time to overload the server. So these are professionals at work.
Volker

markosjal

Yes if you are supporting stations outside of your LAN, but that is beyond a hobby or home server. It sounds more like you are running a commercial service.

What you really need is an SBC


You might also be amazed to see how call and registration attempts decrease if you use non-standard SIP ports vs the use of standard ports.
Phat Phantom's phreaking phone phettish

Volker

For me, it's not commercial. I don't charge money for it and I don't guarantee anything. It is a hobby that gives me a lot of pleasure and nice contacts. I also learn a lot in the process. And others also have fun with it, especially if they can operate their old dial telephones with it. So the basic idea is similar to C*NET. But I don't see myself as a competitor to C*NET. On the contrary. My server is permanently connected to C*NET and each of my subscribers can reach C*NET by extension and vice versa. New subscribers are always welcome.

You don't even have to have a phone number from me to use my server, which serves as an interface between different SIP servers. Here's an example: Many have a number with Callcentric. One dials the Callcentric number 17778682055 - wait for dial pause/announcement (in English) - then dial 8867 001 736 5000# in one go. Don't forget the hash or pound at the end. Then you are connected to a test number 001 736 5000 of C*NET playing music (Pensylvania 6 Five Thousand, Glenn Miller). With the prefix of 8867 you can reach any number of C*NET. The numbers of C*NET can be found on https://www.ckts.info/directory/.

Technical background: A connection with Callcentric to my server is established. The call is then forwarded via an IAX2 connection to a C*NET server in the USA. This is not only possible with Callcentric according to this pattern. It also works with Iptel, Sip2Sip, AntiSip, OpenSips and some others.

My motivation is that I am also a radio amateur (SM5ZBS). I wanted to try something else than always wireless connections, which should also be more reliable. But it must be "homebrewed". By the way, you can also reach german amateur radio repeaters via my server. This even works from Callcentric. But I'm not allowed to reveal that publicly, because then I'll get in trouble.

Volker