Setup Guide for using your SPA3000 / SPA3102 FXO adapter with Axon
This quick-start guide will help you setup your new Linksys/Sipura FXO adapter you have purchased for your Axon PBX phone system. At the end of this guide you will be able to make calls to your PSTN (also known as POTS) line from a phone on your Axon PBX and also receive calls from your PSTN phone line through your PBX.
FIRST THINGS FIRST
Thre first step is to physically setup your FXO adapter.
Take a standard phone cable (RJ11) and connect it to the "Phone" port on the adapter
NOTE: DO NOT PLUG THE PHONE CABLE CONNECTED TO THE "Phone" PORT INTO A WALL PHONE JACK, YOU MAY DAMAGE YOUR EQUIPMENT, AND IT WONT RING THE OTHER PHONES ON THE LINE (WITHOUT REWIRING) IF THAT IS YOUR INTENTION. THE "Phone" PORT IS FOR PHONES ONLY.
Take the same RJ11 phone cable and connect the other end to any analogue / standard telephone.
Take a second RJ11 phone cable and connect it to your PSTN wall phone jack, or whatever phone jack you are trying to convert to a VoIP line.
Take the same RJ11 phone cable and connect the other end to the "Line" port on the FXO adapter.
Take the 5v Power adapter, connect it to the FXO adapter and plug it into an active power outlet.
The adapter should turn on and a green LED status light should indicate this.
ACCESSING FXO ADAPTER CONFIG PAGE
Next, it is time to start configuring your FXO adapter.
Pick up the phone connected to the "Phone" port on the adapter and dial * * * *
You will be transfered to an IVR menu. From this menu, you will need to dial 110#
Write down the IP address it gives you, you will need it later for further configuration.
Note: If you have changed any settings before reading this guide, it is best to reset the device to factory default settings to make sure all settings are correct. To do this, dial 73738# from the same IVR menu. Press 1 to confirm when prompted.
Now open any browser on the same network as the FXO adapter and go to:
http://[ADAPTER IP ADDRESS]/admin/advanced
where the IP address is replaced with the one you wrote down earlier, example:
http://192.168.1.30/admin/advanced
If you receive a user name/password prompt, you are in bad luck. Most likely the device has been locked to a certain Voip service and you won't be able to change the settings. Try contacting the people you bought it from and see if you can obtain an unlock user/pass to access the device.
Depending on the device you may either have 2 sets of tabs with the top one having "Router" and "Voice" tabs, or only 1 set of tabs that all the devices have (Info, system, SIP, ...). If you have the Router and Voice tabs, select Voice.
CONFIGURING THE ADAPTER FOR USE WITH AXON
1) Click on the "Line 1" tab
2) Make sure Line Enable is set to Yes
3) Under the SIP Settings header, change the SIP port to 5070 (Try 5070 first, and only if you cannot get this setup to work, then come back and try another port number)
4) Under the Proxy and Registration header, type in the IP address of the computer with Axon installed into the "Proxy:" text box
5) Make sure use outbound proxy is set to No
6) Under subscriber information set the display name to FXS1
7) Set the User ID and Password to FXS1 as well
8) (I think this step is optional), set the Dial Plan at the bottom to "(xx.)" with no quotes. If you leave the standard dialing plan you may encounter problems dialing certain numbers on the phone especially if you do not live in a country in the North American region. The (xx.) dial plan accepts pretty much any dialed phone numbers.
9) Click on the "PSTN Line" tab
10) Make sure Line Enable is set to Yes
11) Under the SIP Settings header, set the SIP port to 5060
12) Under the Proxy and Registration header, type in the IP address of the computer with Axon installed into the "Proxy:" textbox
13) Again, make sure use outbound proxy is set to No
14) Under Subscriber information set the display name to FXO1
15) set the User ID and Password to FXO1 as well
16) Under the Dial Plans header, type in "S0<:701>" (no quotes) into the Dial Plan 1: textbox. This is very important. You can change 701 to whatever extension or group you want to ring when a PSTN call is received in Axon. If you wanted to ring extension 101, you would type S0<:101> exactly.
17) Under the VoIP-To-PSTN Gateway Setup header, set VoIP-To-PSTN Gateway Enable to Yes
18) Set VoIP Caller Auth Method to None
19) Set VoIP Caller Default DP to 2 (This step is very important! If you leave it at 1, you won't be able to dial out, you will simply hear a "tone" when dialing and you will be disconnected. Also check to make sure that the Dial Plan 2 textbox (under the one modified in step 16) is set to (xx.)
20) Under the PSTN-To-VoIP Gateway Setup header, set PSTN-To-VoIP Gateway Enable to Yes
21) Set PSTN Caller Auth Method to None
22) Set PSTN CID For VoIP CID to No (You can try with Yes, but in some cases it may prevent Axon from answering your phone calls altogether).
23) Set PSTN Caller Default DP to 1 if it is not that already
24) Under the FXO Timer Values (sec), set PSTN Answer Delay to 3 or 4 (Either should be fine. This tells the FXO adapter how long to wait before routing the call to Axon. Usually, this should be 3-4 seconds to allow time for Caller ID information to be sent. It is important to change this step! If you leave it at 16, you will have to wait many many rings before axon receives the call)
25) If you live outside North America, you may need to configure additional Regional settings for your device (See Regional tabs). For example Caller ID information is transmitted differently in different regions of the world, so if you are having trouble receiving Caller ID, it is possible that is the problem.
AXON CONFIGURATION
You are now done with the FXO adapter configuration. You can press "Submit All Changes" now if you wish, although it may take a few minutes after you setup Axon before it "clicks" in and registers, so I prefer to keep the window open and set up axon first before submitting.
Open Axon's web configuration page. If you have created any external lines or extensions for the FXO adapter already, I suggest you delete them and just return to how your Axon was before the introduction of the adapter just because some settings you have made changes to may conflict with this setup and the guide might not indicate what those settings should be set back to.
26) Go to the Extensions tab in Axon and add a new extension with Extension ID (or User Name) FXO1
This is the extension that calls from the PSTN will come in on. When a call comes through on the PSTN line, the FXO adapter is kind of like a softphone with extension FXO1 and it will dial the Axon group/extension itself instead of acting like an "external line"
27) Set the Display Name and Password to FXO1 as well
28) Set the dialing plan to one you will use for the phones on the PBX system which you want to have access to the PSTN line
29) Save the changes, and create another extension with Extension ID (or User Name) FXS1
This extension is the extension of the phone connected to the FXO adapter, so when you call the FXS1 line the phone on the FXO adapter will ring.
30) Set the Display Name and Password to FXS1 as well
31) Save the changes, and then go to the External Line tab
32) Create a new External line for your FXO adapter like "FXO LINE"
33) Unlike the instructions from NCH, in the server address enter [iP ADDRESS OF FXO ADAPTER]:5061
For example 192.168.1.30:5061
34) For the username enter anything such as "user", it does not matter.
35) Leave the password field blank, or put any random text in it, it doesn't matter either.
36) Set the "Incoming Calls Ring On Extension or Group" to an extension of your choice. Note the extension you chose in the FXO adapter settings should override this setting, so if you are trying to figure out why the wrong phone extension rings, refer back to your SIPURA adapter settings (see step 16).
37) Optional: You can add FXS to the group (example 701) that configured the FXO adapter to ring when an incoming call comes in so that the phone connected to the FXO adapter will also ring. You can also make a seperate group like 702 with just the FXS extension in it so you can dial that phone internally from a phone which can only dial numbers and not letters.
38) If you haven't done so, now is a good time to click the "Submit all Changes" button in the Sipura SPA configuration window. Your FXO and Axon should now try and communicate with each other after this.
39) You are now DONE!!! You should now have a working PBX system where you can place calls out through any Axon connected phone through the PSTN lines and have any PSTN phone call come through your Axon SIP/VoIP system.
40) If you are seeing errors in the Axon Window / Logs, Do NOT Panic, everything is fine, trust me (see the end of this guide for more details).
Now is a good time to setup your dialing plans in Axon so for example if the dialed number starts with 0 make it use the PSTN line. After configuring your dial plan, test it out on a phone connected to the PBX or the FXO adapter. Assuming all works well, now test inbound dialing. Use a mobile (cell) phone and dial the PSTN phone number and allow for a few seconds for the FXO adapter to kick in and transfer the call to Axon.
You're Done!
Here is my actual complete configuration settings for the FXO adapter for your reference, ignore
some of the configuration I have changed in areas such as the System tab as this is not relevant.
http://scorptek.org/MISC/advanced.htm
Explanation to errors in the Axon window / log such as this one:
21:11:38 Register attempt for sip:user@192.168.1.30:5061 failed
21:11:38 501 Not Implemented
Although this error appears, your PBX system should work perfectly. All incoming calls should go through the PBX and ring the nominated extension/group and all outgoing calls on the "FXO LINE" should be able go through on the PSTN line as well. This is the only method currently that seems to work, the way NCH explains the configuration in their instructions does not seem to work correctly, and leaving the Server blank for the external line seems to do nothing at all. With this configuration Axon is trying to register the line with the username "User" and password "Password" but can't, thus the error; however everything is fine and the FXO adapter can still handle this configuration and calls made through this "Not Implemented Line." In other words, just ignore it.
Ok thats it folks, hope everything works out for you ok. It took me quite a while to figure this out and get it working and I just want to thank a couple of the users who I got help/information from: Francoz and Fredtheman