Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


HOWTO: SPA-3102 and FreePBX

From a FACTORY RESET or FACTORY NEW box:

 

SPA-3102 Web Administration:

 

Regional Tab:

Remove Feature Codes

 

PSTN Line Tab:

Proxy: YOURASTERISKBOX

User ID: SOMEUSERID

Password: SOMEPASSWORD

Echo Supp Enable: No

Echo Canc Adapt Enable: No

Dial Plan 1: (S0<:DIDNUMBER>)

or IF PASSING CID INFO: Dial Plan 1: (S0<:s>)

Dial Plan 2: (*x.|x.)

Line 1 VoIP Caller DP: 2

VoIP Caller Default DP: 2

 

PSTN Ring Thru Line 1: No

PSTN CID For VoIP CID: Yes

 

VoIP Answer Delay: (default 0) 1

PSTN Answer Delay: (default 16) 5

 

FXO Port Impedence: 220+820||120nf (MAY NEED TO TWEAK FOR ECHO REMOVAL)

SPA To PSTN Gain: (default 0) 5 (MAY NEED TO TWEAK FOR ECHO REMOVAL)

PSTN To SPA Gain: (default 0) 5 (MAY NEED TO TWEAK FOR ECHO REMOVAL)

 

FreePBX Trunk Setup:

 

Trunk Name: spapstn

Peer Details:

dtmfmode=rfc2833
secret=SOMEPASSWORD
type=peer
username=SOMEUSERNAME

 

USER Context: from-spapstn

User Details:

context=from-trunk
host=dynamic
dtmfmode=rfc2833
secret=SOMEPASSWORD
type=user
username=SOMEUSERNAME

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I wish it were this simple

wiseoldowl's picture

I've seen "simple" instructions all over the web for setting up an SPA-3000/3102 and most of them leave out some small but important points. If the above works for you that's great, but if not you may want to go to http://www.freepbx.org/support/documentation/howtos/howto-linksys-sipura... (or just start there to begin with). As with many things there is no one "right" way to do it, but there are plenty of ways that do not yield a satisfactory result.

What makes me pounce on this page with this comment is the fact that the author included a USER context and User details, and those are totally unnecessary and can cause problems, so I suspect he's just copying (bad and/or incomplete) instructions from elsewhere. I'm betting that some folks will have problems receiving incoming calls with the above setup, and will not understand why (hint: the context statement will never be seen). I'm not prepared to categorically state that the above absolutely won't work, because I haven't tried this particular set of instructions, but I'd be really surprised if it does work with no issues. It's kind of like looking at a bridge built with toothpicks - I can't absolutely state that it won't support my weight, but I sure wouldn't walk across it!

If anyone tries this and finds it does work exactly as shown, I'll retract the above, but if you don't feel like experimenting I'd really suggest starting at http://www.freepbx.org/support/documentation/howtos/howto-linksys-sipura...

Wow.. You assume a lot..

drmessano's picture

Wow.. You assume a lot..

This is a setup I built over days of experimenting. This is not copied from anywhere else on the web.

In this scenario the SPA-3102 PSTN REGISTERS to the box. It does not just sit there and act as an outbound proxy, which is what MOST of the setup docs for the SPA-3102 have it do. The SPA-3102 also does not need to have a fixed IP or even exist on the same LAN. It will work fine over a NAT'ed connection with no inbound ports to the box which none of the setup docs I have seen will allow.

FYI.. I attempted to simply use a PEER, but found that incoming registration would fail with host=dynamic in the peer. In placing the details in the user context, I was unable to make outgoing calls. This was a compromise and it worked and currently WORKS WELL.

Before you go slamming someone's How-TO and accusing the author of copying instructions from somewhere else, I would check your facts.


Others have worked hard on this problem as well...

wiseoldowl's picture

Others have worked on this problem as well, and have developed the page at http://www.freepbx.org/support/documentation/howtos/howto-linksys-sipura... (and yes, I was one of the contributors there - that entire page was imported from the old AussieVoIP site). You could have added your observations as a comment there, but chose to start a different page on the same topic, which may confuse people, and you don't address many of the concerns that are covered on the original page. Note I did not say that your method would not work (obviously it works for you), and my suspicion that you were copying information you'd seen elsewhere may have been invalid (however most everyone trying to do this searches the web for whatever documentation is out there - you mean to tell me that you came up with this without consulting any other web page?).

The problem is, if you look at the other page (http://www.freepbx.org/support/documentation/howtos/howto-linksys-sipura...) you will see it is quite a bit longer, and there is a reason for that - setting up one of these devices can be tricky, depending on your particular setup and the type of PSTN line or device (e.g. output of another VoIP adapter) that you are trying to connect to. I just wanted to note that your instructions may not work for some people and in that case, they should go to the original page on the topic, the one that's been up for many months now. However, if someone tries your instructions and finds that they work, that's great, and I wish they would leave comments noting such - personally, I'm always open to a better way of doing things.

I really would like to see your post and the other post combined, so people can get all the information in one place, but because this miserable (explicatives deleted) software won't let anyone other than the original author edit the post, I realize you couldn't have done that if you'd wanted to, however you could have added a comment. Anyway, sorry if I was a little hard on your post, it is good to see other ways of accomplishing the same thing.

Again, I took nothing from

drmessano's picture

Again, I took nothing from the other posts. I found and even implemented one way of doing it, and found it to be a complete kludge. Sadly, I even directed users to it in the past, but figured there had to be a better way. I factory a SPA-3102 and kept playing with the PSTN settings until I knew exactly what made it tick. Documented it all, cleaned it up, and it's been my guide since. I am not gonna keep defending whether or not I came up with this.

What I posted here is VERY, VERY simple, and that is the point. I noted the tweaks for impedence and gains.. Beyond tweaking for the PSTN a little (as noted), there is nothing else.

I'd rather not post something as a comment if I don't agree with the length or structure of the original. I think every How-To should stand on it's own, and not be filled with addendums and correction in the comment fields. Perhaps this shorter How-To will supercede the other post, or perhaps it's too short and simple and won't get any hits. It's here for the users to decide. This isn't a competition, it's about sharing information.

dm