Difference between revisions of "Linksys SPA3000"
Jondecker76 (Talk | contribs) |
Jondecker76 (Talk | contribs) (→General Information) |
||
Line 9: | Line 9: | ||
Also, please realize that these instructions are for manually setting up the spa3000. In the near future, the process will be automated, and if this feature is available at the time you are reading this, then you should go the automatic route. | Also, please realize that these instructions are for manually setting up the spa3000. In the near future, the process will be automated, and if this feature is available at the time you are reading this, then you should go the automatic route. | ||
+ | |||
+ | Please set aside some time to do this manual setup - as you will see, there are a lot of steps involved and it may take you quite some time! | ||
== Setup == | == Setup == |
Revision as of 16:54, 16 January 2009
General Information
The Sipura (now bought out by Linksys) spa 3000 is a pstn (analog phone line) to Asterisk gateway device that provides a SIP interface for 1 FXO port (analog phone line) and 1 FXS port (analog phone). This allows you to use the Telecom section of LMCE, and use Asterisk to send/recieve/route phone calls.
Most office environments have a phone in each room with their own extension number. Most homes, however, are set up with 1 common line (extension) that all phones are connected to - when a call comes in, all phones ring together. LMCE will allow you to have either setup (if you have enough FXS ports to support the number of extensions you want). Since the spa 3000 has only 1 FXS port, I am going to show you how to set it up so that all phones on the main house phone line will be treated as one extension and ring together. The picture below illustrates the installation method that I'm going to outline here.
Another interesting feature of the spa3000, is that if the LMCE network goes down, or if there is a loss of power, the spa3000 will bridge the FXO and FXS ports, bypassing LMCE and Asterisk alltogether, so that you will still have use of your phones in such emergencies.
Also, please realize that these instructions are for manually setting up the spa3000. In the near future, the process will be automated, and if this feature is available at the time you are reading this, then you should go the automatic route.
Please set aside some time to do this manual setup - as you will see, there are a lot of steps involved and it may take you quite some time!
Setup
We are going to accomplish this setup in 3 steps: 1- Configuring the Phone Line in the web admin (FreePBX) 2- Adding the device for the internal phone line (FXS port) 3) Configuring the spa3000 (as we will need information from the previous 2 steps to complete)
Step 1 - Configuring the Phone Line
First, log into the web admin at 192.168.80.1, then navigate to Advanced->Configuration->Phones Setup. This will bring you to the FreePBX Admin page On the left hand side, click on "Trunks", then click "Add SIP Trunk" on the page the follows. You will now have to fill out the folowing information:
Outbound Caller ID: House Line
Never Override Caller ID: leave unchecked
Maximum Channels: 1 (this must be set to 1 as a pstn line can only handle 1 call at a time)
Disable Trunk: leave unchecked
Monitor Trunk Failures: leave the Enable checkbox unchecked
Dial Rules: Leave blank
Dial rules wizards: leave this alone
Outbound Dial Prefix: leave blank
Trunk Name: House Line (note: remember this! we have to match this in the spa3000 setup!)
Peer Details:
allow=ulaw canreinvite=no context=from-trunk disallow=all dtmfmode=rfc2833 host=dynamic incominglimit=1 nat=never port=5061 qualify=yes secret=lmce type=friend username=House Line
USER Context: leave blank
USER Details: leave blank
Register String: Leave blank
go ahead and save the changes now!
Next, we are going to setup the Outbound Routes. In FreePBX, on the left, click on "Outbound Routes", and add the following for the new route:
Route Name: House Line Out
Route Password: leave blank
Emergency Dialing: leave unchecked
Intra Company Route: leave unchecked
Music On Hold?: leave at default
Dial Paterns:
112 411 911 9|.XXX
Dial Patterns Wizards: leave this alone
Trunk Sequence: select the SIP/House Line option from the drop down at the top position (this is the trunk we created earlier). If you already have VOIP setup, and you are adding the pstn as a second line, you may want to change the sequence order to suit your needs. All this sequence does, is if a call fails while trying the first sequence, then the call will be tried with the next one, and so on.
Submit your changes!
Next, we will setup the inbound routes. In FreePBX, click on "Inbound Routes", and add the following for the new route:
Description: Leave blank
DID Number : your line phone number, I.e. 800-555-1212
Caller ID Number: leave blank
Zaptel Channel: Leave blank
Fax Handling Section - leave these as-is
Privacy Manager : No
Options Settings: Leave as-is
lastly, in the Set Destination settings, select the last radio button, Custom App. Type the following in the text box for Custom App: custom-linuxmce,102,1
submit your changes.
One last thing to do while we are in FreePBX. You should see towards the top of the page an orange bar that should say "Apply Configuration Changes". Click this, then when prompted, select to continue with reload.
Step 2 - Adding the device template for the FXS port (your internal phone/phones) In the web admin, on the left pane under devices, select Phones. On the resulting page, you should see all of the Orbiter Embedded Phones that your system already has. At the bottom of this page, click the "Add Device" button, then select "Generic Phone" from the Device Template picker. Click the "Pick device template" button. Now notice that you have a new phone device in you list. Change the name to something like "House Line", set the PK_FloorplanObjectType to Pluto Telephone, set the Phone Type to SIP. Notice that the PhoneNumber is already filled out. LEAVE THIS ALONE AND REMEMBER IT! This will be the extension of your internal analog phones (or whatever single phone you have plugged into the FXS Port!) Also, you can assign this phone a room (it really doesn't matter which one you choose) and make sure the "Controlled By" column says Asterisk. If it does not say "Asterisk", click on it and choose Asterisk (Asterisk) - from the dropdown. When finished, Hit the Update button at the bottom of the screen to save these changes. You will have to reload your router, and do a quick regen on all orbiters manually (from the Devices->Orbiters section)
Step 3 - Configuring the spa3000 (almost done!)