Skip to content

Commit 60b75ca

Browse files
committed
2 parents 8c301dd + 820acd3 commit 60b75ca

File tree

1 file changed

+42
-5
lines changed

1 file changed

+42
-5
lines changed

README.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
![Asterisk](https://img.shields.io/badge/Asterisk-22.1.1-brgreen)
44
![FreePBX](https://img.shields.io/badge/FreePBX-17.0.19.23-brgreen)
55

6-
7-
# RasPBX Background
6+
# RasPBX
87
Installation of Asterisk and FreePBX GUI on Raspberry Pi
98

109
- "[Asterisk](https://www.asterisk.org/)" is a PBX communication server
@@ -17,7 +16,9 @@ So... this repository intends to document the process of creating an up-to-date
1716
- FreePBX 17 (2024-08-02)
1817
- Rasp Pi OS, Debian 12 Bookworm (2024-11-19)
1918

20-
This is based on snippets from various sources, primarily https://www.dslreports.com/forum/r30661088-PBX-FreePBX-for-the-Raspberry-Pi .
19+
This guide is based on my own experience combined with snippets from various sources, primarily https://www.dslreports.com/forum/r30661088-PBX-FreePBX-for-the-Raspberry-Pi .
20+
21+
# Installation
2122

2223
## 1.) Install Raspberry Pi OS (20mins)
2324
- a.) Download the latest OS image from https://www.raspberrypi.com/software/operating-systems/ . I'm using [2024-11-19-raspios-bookworm-arm64-lite.img.xz](https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-11-19/2024-11-19-raspios-bookworm-arm64-lite.img.xz)
@@ -124,15 +125,22 @@ [email protected]'s password: raspberry
124125
```
125126
- b.) The FreePBX installation should continue as in previous steps, and will complete with the message `FreePBX Installation Complete`
126127

127-
## 8.) FreePBX Administration
128+
129+
# FreePBX Configuration
130+
131+
## 8.) FreePBX Settings
128132
- a.) Log in to the web GUI in a browser by going to `raspbx.local`
129133
- b.) Assign an administrator account credentials. I'll choose `asterisk`, `asterisk`
130134

131135
<img src="https://github.com/playfultechnology/RasPBX/blob/main/images/raspbxlocal.jpg" alt="FreePBX Administration" />
132136

133-
e with the message `FreePBX Installation Complete`
137+
- c.) Go to Asterisk - SIP Settings and click **Detect Network Settings**. Ensure that this fills in the Local Networks address (failure to do this will mean that any call will be cut-off after 30 seconds)
138+
<img src="https://github.com/playfultechnology/RasPBX/blob/main/images/freepbxnat.jpg" alt="FreePBX NAT settings" />
139+
- d.) **IMPORTANT** to save changes, click both the Submit button AND the Apply Config button!
134140

135141
## 9.) Create Extensions
142+
An “extension” is the name for any destination on the Asterisk phone network – it defines the number that is dialled to call a physical telephone, a “virtual” software telephone, or access a “feature” service (like the speaking clock or an automated message line). Every number that you want players to be able to dial a number and have something happen needs to have an associated extension.
143+
To create a new extension associated with a telephone, perform the following steps:
136144
- a.) Go Connectivity->Extensions
137145
- b.) Add Extension + Add New SIP [chan_pjsip] Extension
138146
- c.) There are several options, but only three are required:
@@ -145,3 +153,32 @@ Display Name: Handset
145153
Secret: 82f5d5f5e4410fc003bd4c120bb06b6c
146154
```
147155
- d.) **IMPORTANT** to save changes, click both the Submit button AND the Apply Config button!
156+
157+
# Connecting a Phone Handset to an Extension
158+
To connect a regular analog phone to the network requires a VoIP phone adaptor. This section explains how to configure the Linksys PAP2T device to map the handset plugged into Line 1 to the extension created in the previous section. Note that if you use a different ATA your settings may differ slightly, but the general approach should remain the same.
159+
- a.) Open a web browser and navigate to the web interface for your ATA device.
160+
- b.) Log on to the management screen (click the Admin Login link at the top right of the page), and click on the Line 1 tab to configure the device plugged into Line 1.
161+
- c.) Change the following settings:
162+
- **Proxy**: This should be set to the static IP address assigned to your Raspberry Pi running Asterisk. E.g. 192.168.1.33.
163+
- **Display Name**: This should match the “_Display Name_” set in the FreePBX extension configuration in the previous section.
164+
- **User ID**: This should match the “_User Extension_” set in the FreePBX extension
165+
- **Password**: This should match the “_Secret_” set in the FreePBX extension
166+
167+
<img src="https://github.com/playfultechnology/RasPBX/blob/main/images/linksys.jpg" alt="LinkSys Settings" />
168+
169+
# Creating a Virtual Softphone
170+
You can also make and receive calls using a software client mapped to an extension. I’m using the free program MicroSIP to simulate a VOIP phone on my PC.
171+
- a.) Download MicroSIP from https://www.microsip.org/
172+
- b.) Set up account information as follows:
173+
- **Account Name**: This should match the “_Display Name_” set in the FreePBX extension
174+
- **SIP Server** and **SIP Proxy**: These should both be set to the static IP address assigned to your Raspberry Pi running Asterisk. E.g. 192.168.1.33.
175+
- **Username**: This should match the “_User Extension_” set in the FreePBX extension
176+
- **Domain**: This should be set to `localhost`
177+
- **Password**: This should match the “_Secret_” set in the FreePBX extension
178+
-
179+
- Setup the connection information as shown in Figure 8.
180+
As when setting up the ATA in the previous section, the Username and Password must match the Extension and Secret set up in Asterisk
181+
The SIP Server and SIP Proxy should be the IP address assigned to the Raspberry Pi that is running Asterisk.
182+
Domain should be set to “localhost”
183+
184+

0 commit comments

Comments
 (0)