General News
SPA3000 Config for Asterisk / FreePBX
SPA3000 Config for Asterisk / FreePBX
Getting a Linksys SPA 3000 working with FreePBX can take a long time to setup and configure. To make this process easier for UK users, I have uploaded my SPA3000 configuration.
To use the configuration , click on this link (will open in another window) you should use the 'Save Page As' option by right mouse clicking in your browser.
When downloaded, you will need to make a number of changes using a text editor.
Search the html file and replace :-
| Search | Replace with | |
| A.A.A.A | Line1 Proxy IP address | Asterisk Server Address |
| BBB | Line 1 Display Name | |
| CCC | Line 1 User ID | Extension number |
| DDD | Line 1 Password | Extension Password |
| E.E.E.E | PSTN Proxy IP address | Asterisk Server Address |
| FFF | PSTN Display Name | |
| GGG | PSTN User ID | 1-pstn |
| HHH | PSTN Password | 1-pstn password |
| III | PSTN Dial Plan 2 insert YOUR PSTN number | Landline number |
| J.J.J.J |
IP Address of the SPA3000 |
When all of the details have been entered, open the file in your web browser and click on
"Submit all changes" at the bottom of the screen. This should write all of this data directly
to your SPA and also leaves you with a full backup should you create a configuration problem later.
To configure FreePBX, I followed the 'How To' on the FreePBX forum. The page is long and quite complex so I have simplified the settings below :)
In Trunks create (1-pstn) :-

This allows for calls starting 01, 02, 03, 050, 080, 0870 and 0845 as well as any 6 digit number which will have area code 01483 prepended to it (change area code for your own).

disallow=all
allow=ulaw
canreinvite=no
context=from-trunk
dtmfmode=rfc2833
host=dynamic
incominglimit=1
nat=never
port=5061
qualify=yes
secret=xxxxx
type=friend
username=1-pstn
Replace secret=xxxxx with the PSTN password used on the SPA-3000 (HHH).
Leave Incoming Settings and Registration blank.
For the Inbound routes setup the following.

Note the DID Number must match the number entered as III in dial plan2 of the SPA-3000
The BT route is a normal incoming line and can be sent to any destination - I use an IVR ;)
Save your settings in Asterisk and keep your fingers crossed 
You should now have an extension phone plugged into the SPA-3000 which will become your backup phone should either the power fail or the SPA-3000 is unable to connect to the Asterisk server. For safety (so that you can dial emergency services) you should not use a 'powered' phone.