Difference between revisions of "Linksys spa-3102"

From LinuxMCE
Jump to: navigation, search
(Troubleshooting)
(Setting up a 'Ring All' Extension)
 
(16 intermediate revisions by 8 users not shown)
Line 1: Line 1:
=Linksys SPA-3102=
+
[[Category: Hardware]]
 +
[[Category:Telecom]]
 +
[[Category:VoIP]]
 +
[[Category:ATA]]
 +
{{merge|Linksys SPA3102}}
 +
{| align="right"
 +
  | __TOC__
 +
  |}
  
 
====Specifications====
 
====Specifications====
Line 9: Line 16:
 
**Telephony Interfaces 1 phone (FXS), 1 line (FXO)
 
**Telephony Interfaces 1 phone (FXS), 1 line (FXO)
 
**IP Telephony Features Echo cancellation (G.168)
 
**IP Telephony Features Echo cancellation (G.168)
 +
{{p}}
  
=Setting up with linuxMCE=
+
=Setting Up With LinuxMCE=
  
==Configuring the Device==
+
==Configuring The Device==
 
*Step 1 - Initial setup.
 
*Step 1 - Initial setup.
 
**Connect the SPA-3102 to your internal network (the one connected to the lmce subnet)
 
**Connect the SPA-3102 to your internal network (the one connected to the lmce subnet)
 
**Proceed with initial configuration via the administration page. Once you set passwords and locale settings, you can move to the next step
 
**Proceed with initial configuration via the administration page. Once you set passwords and locale settings, you can move to the next step
 
**Note, you can leave the dhcp and network settings as is. We will not be using the routing functions of this device. You will need to make a note on the address assigned to the device.
 
**Note, you can leave the dhcp and network settings as is. We will not be using the routing functions of this device. You will need to make a note on the address assigned to the device.
 +
**Log in to the LinuxMCE web admin.  Go to Wizard -> Devices -> Phones -> Add Device (bottom of the page).  For device template select '''Generic SIP softphone'''.  Rename the phone to something like '''SPA-3102 Line 1''' and hit update.  Note the extension of the phone.  You will need it later.
 +
**If you want the phone attached to your SPA-3102 (Line 1) to ring when people call, you should go to Wizard -> Devices -> Phone Lines, and click '''Settings''' for the appropriate phone line(s).  There you can modify the ringing behaviour of your new phone.
  
 
*Step 2 - SIP connection settings.  
 
*Step 2 - SIP connection settings.  
Line 36: Line 46:
 
****For 'Use Auth Id' I chose no.
 
****For 'Use Auth Id' I chose no.
 
***'''Dial Plans'''
 
***'''Dial Plans'''
****Under '''Dial Plan 2''' add this ''''(<S0:600>)'''
+
****Under '''Dial Plan 2''' add this ''''(<S0:s>)'''
 
***'''PSTN-To-VoIP Gateway Setup'''
 
***'''PSTN-To-VoIP Gateway Setup'''
 
****PSTN-To-VoIP Gateway Enable: '''Yes'''
 
****PSTN-To-VoIP Gateway Enable: '''Yes'''
Line 44: Line 54:
 
*****This is the dial plan we changed earlier.
 
*****This is the dial plan we changed earlier.
 
*****You may need to change some of the other items such as FXO timing, but thats beyond this article for now.
 
*****You may need to change some of the other items such as FXO timing, but thats beyond this article for now.
 +
** Click the ''Line 1'' settings.
 +
*** ''Line Option'' Set to enable.
 +
*** '''Sip Settings'''
 +
**** Make sure the port is set to '''5061'''
 +
*** '''Proxy and registration'''
 +
**** Proxy: the '''ip''' address of your core.
 +
**** Register: Yes.
 +
**** Make calls without registration: - Not tested but set to yes.
 +
**** Answer calls without registration: Not tested but set to yes.
 +
*** '''Subscriber Information'''
 +
****For ''Display Name'' I put 'Line 1'.
 +
****For ''user id'' I put the extension I created for this phone (see Step 1).
 +
****For ''password'' I put the password for the extension (the extension number by default)
 +
****For 'Use Auth Id' I chose no.
 +
 +
{{p}}
  
 
==Configuring FreePBX ==
 
==Configuring FreePBX ==
Line 56: Line 82:
 
***Outbound Caller ID : Caller ID for calls placed out on this trunk.
 
***Outbound Caller ID : Caller ID for calls placed out on this trunk.
 
***Maximum channels: Set this to '1'
 
***Maximum channels: Set this to '1'
***Dial Rules : '''Still working on this part'''. Idealy, it would be used for local non toll calls as well as 911 or any other local services.
+
***Dial Rules : '''Still working on this part'''. Ideally, it would be used for local non toll calls as well as 911 or any other local services.
 +
 
 
**Outgoing Settings
 
**Outgoing Settings
  allow=ulaw
+
 
  canreinvite=no
+
context: House Line
  context=from-pstn
+
 
  disallow=all
+
allow=all
  dtmfmode=rfc2833
+
context=DID_trunk_2
  host=192.168.80.233
+
dialformat=${EXTEN:1}
  incominglimit=1
+
hasexten=no
  nat=never
+
hasiax=no
  port=5061
+
hassip=yes
  qualify=yes
+
port=5061
  secret=xxx <----extension password
+
registeriax=no
  type=friend
+
registersip=no
  username=xxx <----username on the spa-3102 that you set should be pstn
+
secret=12345678
 +
trunkname=Custom - telecom
 +
trunkstyle=customvoip
 +
username=pstn
  
 
**Incoming Settings
 
**Incoming Settings
***This is currently empty.
+
 
 +
context: pstn
 +
 
 +
allow=ulaw&alaw&g723.1&gsm
 +
context=from-pstn
 +
dialformat=${EXTEN:1}
 +
disallow=all
 +
hasexten=no
 +
hasiax=no
 +
hassip=yes
 +
host=dynamic
 +
port=5061
 +
registeriax=no
 +
registersip=no
 +
secret=210
 +
trunkname=Custom - telecom
 +
trunkstyle=customvoip
 +
type=friend
 +
username=pstn
 +
{{p}}
  
 
==Routing Calls==
 
==Routing Calls==
Currently, the call routing in this setup is incorrect. It will route into the linuxMCE telcom system, but it will not have the proper caller ID information. Im currently working on this.  
+
Currently, the call routing in this setup is incorrect. It will route into the linuxMCE telcom system, but it will not have the proper caller ID information. Im currently working on this. Please see update below
 +
 
 +
 
 +
===Setup update===
 +
I was able to get linuxMCE to treat the PSTN phone calls the same as ip calls. I can now get the caller ID (Partially in some cases) from the calls as they come in, and I no longer use the work around below.
 +
 
 +
To set this up properly, I did the following:
 +
*Created an Inbound Route in the freePBX panel called 'House Line', the same user context as the incoming settings for my PSTN Trunk.
 +
*Duplicated the settings similar to my Broadvoice settings, but there arent many. Whats critical is to make sure at the bottom, you send it to the custom app with this:
 +
custom-linuxmce,102,1
 +
*Reload the panel and test it out.
 +
-golgoj4 19-jul-08
 +
 
  
 
===Setting up a 'Ring All' Extension===
 
===Setting up a 'Ring All' Extension===
 +
*NOTE* this is a workaround i originally used in my attempts to figure this out. The setup above is the recommended path.
 +
 
To bring the call in, i experimented with different methods and found some success here.  
 
To bring the call in, i experimented with different methods and found some success here.  
 
*Go to the freePBX main panel.
 
*Go to the freePBX main panel.
Line 88: Line 151:
 
**You can experiment with the other settings, but for now we move onto '''Destination if no answer'''.
 
**You can experiment with the other settings, but for now we move onto '''Destination if no answer'''.
 
**Choose the last option (Custom App)  and enter this into the box:
 
**Choose the last option (Custom App)  and enter this into the box:
  custom-linuxmce,102,1
+
custom-linuxmce,102,1
 
*Save and apply changes.
 
*Save and apply changes.
 
*Test out the phone line.
 
*Test out the phone line.
 +
 +
{{p}}
  
 
=Troubleshooting=
 
=Troubleshooting=

Latest revision as of 03:59, 20 October 2012

It has been suggested that this article or section be merged with Linksys SPA3102


Specifications

The Linksys SPA3102 features the ability to connect standard telephones and fax machines to IP-based data networks with the additional benefit of an integrated connection for legacy telephone network "hop-on, hop-off" applications.

  • IP Telephony features
    • VoIP Protocols SIP v2
    • Voice Codecs G.711, G.723.1, G.729a, G.726
    • Telephony Interfaces 1 phone (FXS), 1 line (FXO)
    • IP Telephony Features Echo cancellation (G.168)



Setting Up With LinuxMCE

Configuring The Device

  • Step 1 - Initial setup.
    • Connect the SPA-3102 to your internal network (the one connected to the lmce subnet)
    • Proceed with initial configuration via the administration page. Once you set passwords and locale settings, you can move to the next step
    • Note, you can leave the dhcp and network settings as is. We will not be using the routing functions of this device. You will need to make a note on the address assigned to the device.
    • Log in to the LinuxMCE web admin. Go to Wizard -> Devices -> Phones -> Add Device (bottom of the page). For device template select Generic SIP softphone. Rename the phone to something like SPA-3102 Line 1 and hit update. Note the extension of the phone. You will need it later.
    • If you want the phone attached to your SPA-3102 (Line 1) to ring when people call, you should go to Wizard -> Devices -> Phone Lines, and click Settings for the appropriate phone line(s). There you can modify the ringing behaviour of your new phone.
  • Step 2 - SIP connection settings.
    • Click the PSTN Line settings.
    • Choose 'Admin' and 'Advanced' option in the top left right corner to see all available options.
      • Do not change anything other than what you need. There are a lot of options!
      • Line Option Set to enable.
      • Sip Settings
        • Make sure the port is set to 5061
      • Proxy and registration
        • Proxy: the ip address of your core.
        • Register: Yes.
        • Make calls without registration: - Not tested but set to yes.
        • Answer calls without registration: Not tested but set to yes.
      • Subscriber Information
        • For Display Name I put 'Landline'.
        • For user id I put the extension I created for this line.
        • For password I put the password for the extension
        • For 'Use Auth Id' I chose no.
      • Dial Plans
        • Under Dial Plan 2 add this '(<S0:s>)
      • PSTN-To-VoIP Gateway Setup
        • PSTN-To-VoIP Gateway Enable: Yes
        • PSTN Ring Thru Line 1: No
        • PSTN CID For VoIP CID: Yes
        • PSTN Caller Default DP: 2
          • This is the dial plan we changed earlier.
          • You may need to change some of the other items such as FXO timing, but thats beyond this article for now.
    • Click the Line 1 settings.
      • Line Option Set to enable.
      • Sip Settings
        • Make sure the port is set to 5061
      • Proxy and registration
        • Proxy: the ip address of your core.
        • Register: Yes.
        • Make calls without registration: - Not tested but set to yes.
        • Answer calls without registration: Not tested but set to yes.
      • Subscriber Information
        • For Display Name I put 'Line 1'.
        • For user id I put the extension I created for this phone (see Step 1).
        • For password I put the password for the extension (the extension number by default)
        • For 'Use Auth Id' I chose no.



Configuring FreePBX

  • Step 1
    • Log into the webadmin.
    • Using the top navigations, goto Advanced -> Configuration -> Phones Setup.
      • This will take you to the freePBX panel. Take care to only change designated settings as you can mess things up.
    • On the left hand side, choose Trunks from the menu.
    • This will show you the existing trunks (phone lines). Choose Add Trunk.
    • Then choose Add Sip Trunk.
    • Next are the options presented:
      • Outbound Caller ID : Caller ID for calls placed out on this trunk.
      • Maximum channels: Set this to '1'
      • Dial Rules : Still working on this part. Ideally, it would be used for local non toll calls as well as 911 or any other local services.
    • Outgoing Settings
context: House Line
allow=all
context=DID_trunk_2
dialformat=${EXTEN:1}
hasexten=no
hasiax=no
hassip=yes
port=5061
registeriax=no
registersip=no
secret=12345678
trunkname=Custom - telecom
trunkstyle=customvoip
username=pstn
    • Incoming Settings
context: pstn
allow=ulaw&alaw&g723.1&gsm
context=from-pstn
dialformat=${EXTEN:1}
disallow=all
hasexten=no
hasiax=no
hassip=yes
host=dynamic
port=5061
registeriax=no
registersip=no
secret=210
trunkname=Custom - telecom
trunkstyle=customvoip
type=friend
username=pstn



Routing Calls

Currently, the call routing in this setup is incorrect. It will route into the linuxMCE telcom system, but it will not have the proper caller ID information. Im currently working on this. Please see update below


Setup update

I was able to get linuxMCE to treat the PSTN phone calls the same as ip calls. I can now get the caller ID (Partially in some cases) from the calls as they come in, and I no longer use the work around below.

To set this up properly, I did the following:

  • Created an Inbound Route in the freePBX panel called 'House Line', the same user context as the incoming settings for my PSTN Trunk.
  • Duplicated the settings similar to my Broadvoice settings, but there arent many. Whats critical is to make sure at the bottom, you send it to the custom app with this:
custom-linuxmce,102,1
  • Reload the panel and test it out.

-golgoj4 19-jul-08


Setting up a 'Ring All' Extension

*NOTE* this is a workaround i originally used in my attempts to figure this out. The setup above is the recommended path.

To bring the call in, i experimented with different methods and found some success here.

  • Go to the freePBX main panel.
  • On the left side, choose 'Ring Groups'
  • On the top right side, choose Add Ring Group
    • Group Description : I put House Line.
    • Ring Strategy: Ring All
    • Extension List: Here I added an extension that didnt exist, so it would move on to the bottom.
    • You can experiment with the other settings, but for now we move onto Destination if no answer.
    • Choose the last option (Custom App) and enter this into the box:
custom-linuxmce,102,1
  • Save and apply changes.
  • Test out the phone line.



Troubleshooting

This isn't a proper setup by any means, but it will be improved.