Accessing AllStarLink from a SIP telephone

I managed to get my Western Electric rotary phone connected to ASL using an ATA.

I have been using a SHARI AllStarLink node for some time as a means to tinker and learn about AllStarLink (ASL) and to explore the wide web of nodes around the globe that are connected to this vast network.

ASL (HamVoIP being the flavor of it on my node) is based on Asterisk, an open source PBX system that is capable of handling the most complex telephony tasks and could conceivably be used to replicate or even replace nearly all voice switching capabilities of the public switched telephone network. On the K6TZ repeater system, we have configured the repeater node to handle phone patch requests over VoIP, eliminating the need for a copper line to offer radio to telephone network connectivity. This means that members can key in a code followed by a phone number on the 446.400 repeater to initiate a phone call to any number in the USA.

I had also heard that ASL could provide for direct access to radio linking through SIP connections, sort of a reverse autopatch, whereby one could dial into the node from a SIP telephone to access and link to nodes throughout the ASL network. In setting out to configure my own SHARI node for this, I ran across a few inconsistencies on how to accomplish this so I am writing up this article to document what worked for me.

The first place I turned was the official ASL wiki documentation. It is helpful but somewhat incomplete in its explanation. Below I’ll outline the steps and try to explain them in a bit more detail, adding some additional configuration to support multiple SIP extensions.

The first step is to locate and edit the /etc/asterisk/modules.conf file. I am including the full path to all files since it can be challenging for newbies and experienced users alike to find them, especially when tinkering in ASL is not a daily task.

We must edit the modules.conf to be sure the SIP module is loaded by ensuring that the following line is present:

load => chan_sip.so ; Session Initiation Protocol (SIP)

You may see this line in your file beginning with noload. Simple change it to load and save the file.

Next locate the /etc/asterisk/sip.conf file and open it in your favorite editor. In this file we will append the following code to add one new SIP extension to our node. Note that I am calling this extension 101. Conceivably you can use whatever extension number you wish. Note that anything after a semicolon on a line is a comment instructing you to change the particular contents to something that makes sense for your setup.

[101] ; Can be practically any extension number you wish
deny=0.0.0.0/0.0.0.0
secret=pass!!word ; set this to a SECRET PASSWORD you create
dtmfmode=rfc2833
canreinvite=no
context=sip-phones
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/12345 ; Change to your assigned ASL node number
permit=0.0.0.0/0.0.0.0
callerid=Ham Shack ; pick your own Caller ID for this extension

You could add multiple SIP extensions with different numbers (for example: 102, 103, etc.) if you had more than one SIP handset or ATA.

Once you have completed editing the sip.conf file, save it and open /etc/asterisk/extensions.conf.

Here we will need to add a new “context” called sip-phones to define how these extensions will work. In this case, we want to dial our node number and be connected to our SHARI node via VoIP. We will also let the system know how to handle calls placed to these extensions. This will allow us to pick up one handset (e.g. 101) and dial another extension (e.g. 102) and have it ring.

Be sure to change 12345 to your node number in the lines below.

[sip-phones]
exten => 12345,1,Answer
exten => 12345,n,Wait(2)
exten => 12345,n,Playback(rpt/node)
exten => 12345,n,Playback(digits/1) ;say node digits one at a time
exten => 12345,n,Playback(digits/2)
exten => 12345,n,Playback(digits/3)
exten => 12345,n,Playback(digits/4)
exten => 12345,n,Playback(digits/5)
exten => 12345,n,Rpt,12345|P|${CALLERID(name)} ;

exten => 101,1,NoOp(SIP Phone 1)
exten => 101,n,Dial(SIP/101)

exten => 102,1,NoOp(SIP Phone 2) ; if you have a second extension, 
exten => 102,n,Dial(SIP/102) ; be sure to include these two lines.

Now that you have made the config file changes, we must restart the Asterisk Server on the node. ssh into your node and select menu item 13.

HamVoIP Main Menu Screen accessed via SSH

Example client configuration screen from a Grandstream SIP handset

The node is now ready to accept incoming connections from SIP handsets and ATAs. Configuration of your hardware will vary by vendor but basically you will want to name the SIPM account something like “AllStarLink” and point the SIP Server setting to the IP address of your node (this assumes you are on the same local area network as your node). The SIP Authentication ID is the extension number you defined in sip.conf. which in this case is 101. The Password will be whatever you changed it to (hopefully not pass!!word but it really doesn’t matter much if you are on your own network behind a firewall). If your phone or client asks for a SIP port, the default is 5060. That’s pretty much it. Your save the configuration and your SIP phone should register with your node as its PBX. You can dial into your ASL node by picking up the line and entering your node number. Once it is connected, you can dial around using the same DTMF commands you are used to, including *3 + node number to connect to outside nodes.

One important thing to note is that hanging up the line won’t disconnect links. It simply disconnects your SIP phone from your ASL node instance. If you pick the line back up and dial your node number again, your session is restored as you left it.

If you wish to dial another SIP phone extension on your new PBX, simply pick up the line and dial the extension number. In this example, picking up extension 101 and dialing 102 on the keypad will ring extension 102.

You can configure inexpensive SIP phones like the Grandstream GXP1620 (note that this particular model requires Ethernet and does not have WiFi capabilities), an ATA like the Cisco ATA 192 – for use with a standard landline phone, or even smartphone SIP apps like Zoiper (iOS / Android) as long as your phone is connected to the same network as your ASL node.

Technical Mentoring and Elmering Net – 8/17/2023

The audio archive of this net can best be followed by downloading the .mp3 file for the appropriate date here and listening with the media player of your choice. You can move the progress slider forward or backward to the subject of interest to you.

We had another interesting net tonight with 10 check-ins plus net control Dave, AI6VX. Tonight’s topics included:

  • What devices are available to me to check the overall health of my Lead-acid batteries?
  • Packet Radio.
  • Approaching tropical storm (Hurricane Hillary, no pun intended!).
  • Club meeting presentation by Dave, AI6VX, tomorrow (check sbarc.org for details).
  • Club picnic this Sunday (check sbarc.org for details).

Tune in to the SBARC TM&E Net every Thursday at 8:00 PM local (2000 Hrs) and see what interesting ham radio questions might arise or ask some of your own! All club members and visitors are encouraged to check in to the net each week.

SBARC Club Meeting – August 18, 2023

General Club Meeting – August, 18 2023

This month we are going to have a presentation from board member Dave AI6VX.

Printed Circuit Board Layout and Fabrication

Dave Schmidt AI6VX will talk about printed circuit board design including creating the schematic, circuit layout using Kicad, and fabrication and how to order online. It’s not as hard as you think!

SBARC General Club Meeting
Friday, August 18, 2023 at 7:30 PM (Doors open at 7pm)
Goleta Union School District Board Room
401 North Fairview Avenue in Goleta

Zoom Details:

Topic: SBARC General Club Meeting
Time: August 18, 2023 07:00 PM Pacific Time

Join Zoom Meeting

https://us02web.zoom.us/j/87271784684?pwd=ZWlzd0I1enF3Sy8wOUhHVUsrclRZQT09

Meeting ID: 872 7178 4684 – Passcode: 568466

Post expires at 11:15pm on Friday August 18th, 2023 but will still be available in the archives.

Technical Mentoring and Elmering Net – 8/10/2023

The audio archive of this net can best be followed by downloading the .mp3 file for the appropriate date here and listening with the media player of your choice. You can move the progress slider forward or backward to the subject of interest to you.

We had another interesting net tonight with 8 check-ins plus net control Frank, K6FLD. Tonight’s topics included:

  • TCAD for pcb design, building and pcb stuffing.
  • UHF dummy load and testing VHF SWR level around 440 MHz.
  • Santa Barbara Electronics Supply status re. opening its doors to the public.

Tune in to the SBARC TM&E Net every Thursday at 8:00 PM local (2000 Hrs) and see what interesting ham radio questions might arise or ask some of your own! All club members and visitors are encouraged to check in to the net each week.

Technical Mentoring and Elmering Net – 8/03/2023

The audio archive of this net can best be followed by downloading the .mp3 file for the appropriate date here and listening with the media player of your choice. You can move the progress slider forward or backward to the subject of interest to you.

We had another interesting net tonight with 9 check-ins plus net control Brian, K6BPM. Tonight’s topics included:

  • Annual SBARC BBQ August 20th at Stowe Grove Park.
  • Cox vs. other mail servers (Apple, Gmail, etc.) My Cox e-mail isn’t receiving Mail Chimp e-mails from the SBARC list server.
  • Brave internet Browser.
  • Freespoke search engine.
  • NextDNS.IO
  • Where can I purchase vintage vacuum tubes for ham radios/amplifiers?

Tune in to the SBARC TM&E Net every Thursday at 8:00 PM local (2000 Hrs) and see what interesting ham radio questions might arise or ask some of your own! All club members and visitors are encouraged to check in to the net each week.

Rig Expert AA-170 Antenna Analyzer

Rig Expert AA-170 Antenna Analyzer

Good condition. Covers all HF bands+2 meters. Comes w/software manual and CD plus owner’s manual. $200

  • Frequency range: 0.1 to 170 MHz
  • Frequency entry: 1 kHz resolution
  • SWR measurement range: 1 to 10
  • SWR measurement for 50 and 75-Ohm systems
  • SWR display: numerical or easily-readable bar
  • R and X range: 0-1000, -1000-1000 in numerical mode, 0-200, -200-200 in graph mode.

 

 

 

 

SBARC Fundraising Item

All SBARC fundraising items are available for viewing at the Club Station on Saturday mornings between 9 am and noon.

Pay online here to reserve your purchase.