In this article I will try to explain that how to configure Sipura 3000 PSTN with Asterisk.
First of all let’s analyize a little background of Sipura devices, After that maybe we will try to configure Sipura spa 3000 gateway with Asterisk.
Sipura SPA-3000 Analogue Phone Adapter
The SPA-3000 continues to deliver on Sipura Technology’s mission to provide market leading, best-in-class VoIP end points providing freedom and opportunity to service providers and end users.
The SPA-3000 features VoIP adapter functionality found in the SPA-2000 and SPA-1000/1 with the additional benefit of an integral connection for legacy phone network� applications. SPA-3000 users will be able to leverage their broadband phone service connections more than ever by automatically routing local calls from cell phones and land lines to a VoIP service provider and vice versa.
Configuration:
I have already written some notes on Sipura device but This one a little long – hopefully not too boring! ![]()
Asterisk side configuration:
In your Sip.conf file you need something along the lines of…
|
Code: |
|
; This one is for the ‘line’ connection to the outside world |
Obviously passwords need to be set – things like callerids can be changed – canreinvite could be set to yes but I have an Internet connection so the asterisk box needs to stay in the loop to get through my firewall.
OK that’s the sip.conf – a quick note on my extentions.conf in this example.
context=nicepeople is where I stick my phones (OK – devices) that I use – each can call each other and access the outside world etc… Normal extentions.conf stuff really.
context=bell is used to hold my analogue lines (ma-bell:) I’ve got a few inbound macros that run to screen incoming calls so all my inbound stuff from the outside world goes through the same context.
Sipura side configuration:
Your SPA is where the fun starts ![]()
Now You may have to try things a few times and get back to me if it doesn’t work and I’ll look a bit deeper.
First off – log-in as administrator and select advanced view. If I don’t talk about a setting – its the default.
OK going in tab order
System
The easy one, set your IP address/ dns/ gateway to fit within your network on the system tab.
Regional
Caller ID Method = Bellcore(N.Amer,China) – Although I’m in the UK, on an NTL analogue line, they use Bell core standards for caller line id.
Line1
Line Enable = yes
Sip Port = 5060
Proxy = ip address of your asterisk box
Register = Yes
The next bit (still on the Line1 tab) correspond to the part of your sip.conf file we were setting above.
Display Name = LinkSys1
User ID = LinkSys1
Password = password
Auto PSTN Fallback = Yes
PSTN Line
Line Enable = yes
Sip Port = 5061
Proxy = ip address of your asterisk box
Register = Yes
This is similar to the Line1 tab and also ties into your sip.conf file. The difference this time is this is for the actual analogue line (the one that you plug into the wall not the phone!).
Display Name = LinkSysOut
User ID = LinkSysOut
Password = password
Dialplan 8 = S0< :s> ; this is key later on. I’ve picked dialplan 8 but you can use any spare – as long as you make a note of the dialplan you use. The < :s> basically says go to the first or start extension within the context that we set in sip.conf (I set this to [bell])
VoIP-To-PSTN Gateway Enable = yes (you do want to dial out I guess.)
PSTN-To-VoIP Gateway Enable = yes (and we do want inbound calls)
PSTN CID For VoIP CID = yes passes the caller id.
PSTN Caller Default DP = 8 – Remember I said you can pick your own dial plan above – this is where you tell it which one you have set the S0< :s> in.
You may have to play with these to get the spa to detect call ending…
Detect CPC = yes
Detect Polarity Reversal = yes This made the biggest difference with NTL – as soon as the line drops this picks it straight away! I used to use a x100p clone card which took a while to detect disconnection – this is right on the button!
Detect Disconnect Tone = yes
Sorry if this is a bit long winded – but I had the problem, when I was looking into this originally, where others would post the config but not really explain what was doing what – hopefully this does a little better



Nice tutorial… But, you haven’t mension about “extention.conf” clearly… Can you do it?
Sravana, Please explain what you need to know to configure your SPA 3000 in extensions.conf?
It’s very simple, just change the example context to your own context in sip.conf, offcourse you must have defined those context in extensions.conf. And hardly you need to put 2 lines in your Asterisk extensoins.conf, one for incoming and other one for outgoing.
If you still have doubts, please see here : http://networks.pk/forum/viewtopic.php?t=13
If it doesn’t have kindly post your question there we will try to help you.
Hai syedsauds . Thanks for your’s reply. Iam new to Sipura SPA3000. Eight of our team members were stayed in a Lab. These was a one PSTN line comming inside the lab. Every one had one SJPhone on his Desktop system.
So, What I want is? I want to give extensions to everyone and then everyone can recieve calls from his SJPhone and can call outside.
I could understood the sip.conf, But Iam not understading extensions.conf… Can you give the exact changes which I have to enter in my extensions.conf based on my requirement. I don’t want voice mail. We want to access that PSTN line among all.
Reply back as much as possible.
Thanking you
I noticed that a calling coming thru the “pstn” -> voip -> line1 is getting the “extension/trunkname” now
allthough i’ve never mentioned the callerid in sip.conf and in spa3000 it’s empty (callerid thru voip is enabled)…
without the “pstn2voip” my dect phone will show the correct callerid… with pstn2voip it will show the asterisk callerid? how come? how to fix it?
another issue is…When the spa3000 can’t connect to your asterisk box (your internet is down… ) then all calls from your pstn line going to your line1 is unanswered for… no pstn fallback on “pstn” only on “line1″
or do you have a solution for this?
Please email me back!
would you share your extension.conf & sip.conf? (here or via email)
Thanks before.
Hi,
I’m finding your info about UK ntl very useful as I’m on ntl, too. So thanks very much about that! As I can’t find much info about other regional settings for uk ntl, would you know, for example, what the disconnect tone is? I’ve seen three settings used for BT[
400@-30;20(*/0/1)
and
400@30,400@30;2(*/0/1+2)
and
400@-30,400@-30;2(*/0/1+2) ], but nothing for ntl. I have trouble with pstn calls disconnecting.
Also would you happen to know what value the PSTN Long Silence Duration is, ie. secs or mins?
Thanks in advance for any tips,
Jorg
(spa3102)
I have done a fair old bit on the 3000/3102 and it is definitely THE FXO device of choice for the UK (where I reside) However one real bug bear that no one seems to address is the sensible use of it as follows:
local handset dials out, spa should first try to route via asterisk BUT if asterisk can’t/won’t route (for whatever reason) then it would be nice for the asterisk server to send back SIP headers/infos to the effect that “you ain’t getting a ringing tone baby” which it would be jolly marvellous for the spa to go “no probs – will dial out via the FXO then
Any takers ?
As always anyone needing to be connected to my free test server is WELCOME
I’m having problem getting CID from PSTN line. CID is enabled on PSTN however when I connect it to SPA I don’t see “Last PSTN Caller”.
Where you trying to see the CID? on Asterisk or on the phone that is connected to SPA FXS port?