Asterisk Forum

TMCnet
  INDUSTRIES
  VERTICALS
  PUBLICATIONS
  FREE RESOURCES
  INTERNATIONAL
  EVENTS
  ABOUT TMC
  COMMUNITIES


Welcome to TMC's VoIP Forums
  VoIP Forum Active Forum TopicsActive Forum Topics  VoIP Forum Display List of Forum MembersForum Memberlist  VoIP Forum Forum HelpForum Help
 
  VoIP Forum Forum RegisterForum Register  VoIP Forum Forum LoginForum Login
Asterisk Forum
 VoIP Forums : Asterisk Forum
Forum SubjectTopic:

Asterisk with SPA-3000

(Forum Topic Closed Topic Closed)
Forum Post Reply to ForumForum Post New Topic
Author
Message << Prev Topic | Next Topic >>
Joe
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 28 September 2004 at 9:46am | IP 192.0.0.141  

How to Connect SPA-3000 to Asterisk so Asterisk will answer?
After setting up Asterisk on Gentoo the extension.conf contains [demo] context; but my asterisk is not answering?
 
In SPA-3000 in PSTN Line - tab under Dial Plan 1 I have:
S0<:demo@10.0.0.101>
Default dial plan is set to 1.
My box's IP where Asterisk is running has IP: 10.0.0.101 Line 1 - tab has:
SIP Settings Port: 5060
Nat is disabled as both Asterisk and SPA-3000 are behind firewall.
 
What am I missing?
Back to Top Forum View Joe's Profile Forum Search for other posts by Joe
 
gregmarconi
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 28 September 2004 at 9:59am | IP 192.0.0.141  

Sipura 3000 -> PSTN Config for Incoming

- Add a dialplan (ie - Dial Plan 1/Dial Plan 2) with a SIP URL destination as follows:

S0<:1000@192.168.1.50> (where the IP address is that of your * instance, also ensure the extension is properly accessible in you extensions.conf)

- Enable both the VoIP to PSTN Gateway and the PSTN to VoIP Gateway

- Set the default dialplan under PSTN to VoIP Gateway to the dialplan where you inserted the above SIP URL

Asterisk Configuration for Outgoing

- extensions.conf

[globals]
PSTN_GW=192.168.1.51:5062

[pstn]
exten => s,1,Dial(SIP/${EXTEN}@${PSTN_GW})

If behind a firewall this should be okay. If not, then of course you would want to configure with HTTP digest in mind.
Back to Top Forum View gregmarconi's Profile Forum Search for other posts by gregmarconi
 
Ben Fernando
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 28 September 2004 at 10:20am | IP 192.0.0.141  

I saw this in another forum that is worth reading:
 
You might want to configure with HTTP Digest in mind anyway. Here's what my configuration looks like (note I had to pull a nightly * from CVS to make this work right):
 
PSTN Tab:
 
SIP Credentials (Proxy, User ID, Password) point to an extension in sip.conf. This allows the SPA-3000 to make a call to the * box as well as allow the * box to call the SPA-3000.
 
Dial Plan 8: S0<:666> (666 is an extension on my * box)
 
VoIP-To-PSTN Gateway Enable: Yes
VoIP Caller Auth Method: Yes
One Stage Dialing: Yes
VoIP User 1 Auth ID: user
VoIP User 1 Password: password
VoIP User 1 DP: none (this means pass whatever the remote end sends)
PSTN-To-VoIP Gateway Enable: Yes
PSTN Caller Auth Method: None
PSTN CID For VoIP CID: Yes
PSTN Caller Default DP: 8
PSTN Answer Delay: 5
VoIP Answer Delay: 1
 
In sip.conf, I have my SPA-3000 PSTN Line extension (54) defined as follows (I also have a seperate extension for "Line 1" of the SPA-3000 with identical settings):
 
[54]
; spa3k line 2 (pstn)
type=friend
host=dynamic
context=home
secret=whatever
callerid="PB SPA3k PSTN" <54>
mailbox=54
dtmfmode=rfc2833
canreinvite=no
nat=0
 
Also in sip.conf, I also have an entry to make outgoing calls via the SPA-3000:
 
[pstn-spa3k]
type=peer
auth=md5
secret=areyououtofyourmind
username=pinky
host=spa3k.phoneboy.com
fromuser=splat
port=5061
dtmfmode=rfc2833
nat=no
context=home
 
In extensions.conf I have:
 
exten => _#9.,1,Dial(SIP/${EXTEN:2}@pstn-spa3k,60,tr)
exten => _#9.,2,Playback(abandon-all-hope)
exten => _#9.,3,Congestion.
 
Basically, this setup allows me to route my PSTN Line (which is actually a Broadvox-supplied SPA-2000) into my Asterisk server. I can also make calls out this device from other extensions on my Asterisk server.
Back to Top Forum View Ben Fernando's Profile Forum Search for other posts by Ben Fernando
 
Mike
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 28 September 2004 at 10:45am | IP 192.0.0.141  

Here's what I did.  I created an extension that goes to my "mainmenu", ie:

exten => 7000,1,Goto(mainmenu,s,2)

Then I setup the SPA-3000 to dial that extension when a call comes in according to the FAQ entry on Sipura's website:

http://www.sipura.com/support/spa3000faq/Section_3.html#4

4: How can I forward all PSTN callers to a VoIP number?

A: You can use specify a dial plan to be used by the default PSTN caller with a hot line syntax: (S0<:voip_number>) where voip_number is replaced with the actual phone number (or sip url) of the VoIP destination.

So I used: (S0<:7000>) and it works great. 

In my experience Sipura has an excellent product, I use both the SPA- 2000 and SPA-3000, and they are both great.

I've had _far_ less problems with Sipura products then I have had with Digium X100P cards. Especially when it comes to echo. Sipura's email support is also exceptional, I often get replies to emails within minutes, and they have even implemented feature requests and sent me a beta firmware within days.

Back to Top Forum View Mike's Profile Forum Search for other posts by Mike
 
John Covert
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 13 October 2004 at 9:46am | IP 24.91.111.15  

I found another way to connect my SPA-3000 to Asterisk.

The advantage is that the PSTN line is not answered until Asterisk actually
answers the call. (Using the "default dial plan" method, the SPA first
answers the call and then passes it to Asterisk.)

I have set the SPA parameters as follows:
1. Line 1 and PSTN line each have distinct and separate User IDs and
passwords, and there are entries for each in Asterisk's sip.conf, with
type=friend, and DIFFERENT contexts for each. Make sure that they both
appear as registered (Registration State on the Info tab).
2. PSTN Ring Thru Line 1 is "yes". PSTN-To-VoIP Gateway Enable is "no"
(if that is yes, then if Asterisk doesn't answer, the SPA eventually will, and
I don't want that, but you might).
3. In the User 1 tab, I have Cfwd Sel1 Caller set to the userid of the PSTN
line, and Cfwd Sel1 Dest set to an extension in the context for the PSTN
line.
4. In extensions.conf, in the context for the PSTN line, before doing
anything else, I do a SetCallerID so that _if_ the call were to ring or be
transferred back to Line1, it would not be picked up by the Selective Call
Forwarding setting.
5. On the PSTN User tab, I have Default Ring set to "Follow Line 1".

Seems to work great. One caution: I don't have incoming CallerID service
on my PSTN line. It's possible that if you do, you might have to be a bit
more clever with the Selective Call Forwarding matching and with how you
modify the caller ID when asterisk calls Line 1.

/john

P.S.: After I upgraded the SPA firmware from 2.0.9 to 2.0.10 I had to
change sip.conf dtmfmode from rfc2833 to inband for the pstn line. It
seems this version of the firmware broke DTMF transmission (not for
dialling but after a call is established).
Back to Top Forum View John Covert's Profile Forum Search for other posts by John Covert
 
ichilton
VoIP and Call Center Newbie
Forum VoIP and Call Center Newbie


Joined: 06 November 2004
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 06 November 2004 at 4:28am | IP 80.6.255.189  

Hi,

John Covert wrote:
I found another way to connect my SPA-3000 to Asterisk.  The advantage is that the PSTN line is not answered until Asterisk actually answers the call.

Has anyone else had this working?

Thanks

--ian

 

Back to Top Forum View ichilton's Profile Forum Search for other posts by ichilton
 
ichilton
VoIP and Call Center Newbie
Forum VoIP and Call Center Newbie


Joined: 06 November 2004
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 06 November 2004 at 4:40am | IP 80.6.255.189  

Hi,

Also, John - if you are still around, is there any chance you could post or send over the relevent parts of your asterisk and spa configs?

Thanks

--ian

Back to Top Forum View ichilton's Profile Forum Search for other posts by ichilton
 
Tom
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 06 November 2004 at 9:23pm | IP 68.194.42.69  

John's instructions do the trick (nice find), but I'll add that I find that caller-ID isn't being passed all the way to the final SIP extension :(

I end up seeing the PSTN Line 'user id' (the same as is in <Cfwd Sel1 Caller>) instead of the telco-provided caller-id info. I have <PSTN CID For VoIP CID> = Yes and have tried various time settings for <PSTN Ring Thru Delay>.

Might be something I'm doing wrong, of course and I hope, but I tend to think that this seemingly simplistic feature (call it 'simple one-stage PSTN-VoIP gateway with caller-ID passthru') is somehow just not possible given the current firmware. I see lots of references in the manual to "VoIP gateway auto-answers the call ..."

If someone figures out how to do this I'll be 100% satisfied (I'm already very impressed with the product) as it will suit my needs perfectly.

FYI - firmware is version 2.0.11(GWa)

 

Back to Top Forum View Tom's Profile Forum Search for other posts by Tom
 
ichilton
VoIP and Call Center Newbie
Forum VoIP and Call Center Newbie


Joined: 06 November 2004
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 07 November 2004 at 4:10am | IP 80.6.255.189  

Hi Tom,

Tom wrote:
John's instructions do the trick (nice find), but I'll add that I find that caller-ID isn't being passed all the way to the final SIP extension :(


Thanks for confirming this for me. I'd be interested to see the relevent parts of your Asterisk and SPA-3000 config if you wouldn't mind posting/pm'ing them.

You should post this problem in the Sipura forum on voxilla.com and send it to support@sipura.com - there may be a way round it, or if it is a firmware thing they may be able to fix it for the next firmware release.

Thanks!

--ian

Back to Top Forum View ichilton's Profile Forum Search for other posts by ichilton
 
Tom
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 09 November 2004 at 3:33pm | IP 63.88.139.130  

I'll post some details later today when I'm back home. That should make it crystal clear.

My next step is to bring this up on voxilla, but, alas, have been busy doing 'real' work for the past few days. Now that I have my second SPA-3000, I'm _really_ interested in getting past this hurdle. Hopefully it's something Sipura will address or clarify.

Unfortuately the few specific messages I've come across so far seem to flatly state, "it's not possible" (even phoneboy said that I think), "not by design," "resource constrained" ... blah blah. I, optimistically, don't believe it but haven't come across an "offical" response from Sipura one way or the other. My hunch is they could do it, rather easily, since it's 99% of the way there (see below).

Through further experimentation I AM able to make caller-ID work, but then came across another stumbling block for the overall plan.

The caller-ID info CAN and WILL be passed to the final SIP destination, before "answering" the PSTN line IF:

1. Caller-ID was supplied on the original call (of course)

2. <PSTN CID For VoIP CID> = Yes

3. <PSTN-To-VoIP Gateway Enable> = No

Here's where it gets tricky:

If, in the User 1 tab, <Cfwd Sel1 Caller> set to the <user id> of the PSTN line, and <Cfwd Sel1 Dest> set to an extension in the asterisk context for the PSTN line ... works ONLY when there's no caller-ID supplied/received or passed-on from PSTN.

The selective forwarding works at this point because it matches the <user ID> of the PSTN line, but the caller-ID passed to the SIP extension is the PSTN line's <user ID> in this case.

To work past that, make sure that <PSTN Ring Thru Delay> is set high enough (i.e. 3 or 4 secs in US) to allow for complete reception of FSK transmission from telco, before ringing thru AND ... here's the kicker ... you CAN'T selective forward on the <user ID> anymore because it's now the CALLER-ID!!!!

So you have to call-forward "always" to make it work now. You can do things like call-forward-selective on, say, 516*, which might help out some folks.

I haven't done anything past this right now, but maybe there's something more that can be done with the wildcard matching in the call-forward fields and tricky digit strip/replace dial-plans or some such ... time will tell.

Keen observer will then say ... but what if I want to use <Line 1> for "regular" SIP/FXS functions. That's the rub ... you CAN'T since it'll always be forwarded.

So close, yet so far.

 

Back to Top Forum View Tom's Profile Forum Search for other posts by Tom
 
ichilton
VoIP and Call Center Newbie
Forum VoIP and Call Center Newbie


Joined: 06 November 2004
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 09 November 2004 at 4:02pm | IP 80.6.255.189  

Hi,

Thanks for the further info - please keep me up to date with how you get on. It would be interesting to get an answer from Sipura on this.

I've seen messages around on Voxilla and the like saying it's not possible to get Asterisk ringing the extensions before the Sipura answers the call - you've already said this bit works, so if that's possible I dont see why they can't get the caller id working too....

Thanks

--ian

Back to Top Forum View ichilton's Profile Forum Search for other posts by ichilton
 
Tom
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 09 November 2004 at 11:00pm | IP 68.194.42.69  

1. Start with 'factory defaults'
2. Assign different "User ID:" to Line 1 and PSTN Line and make sure they register with asterisk (set IP of asterisk server in Proxy: on Line 1 and PSTN Line tabs).


PSTN Line - PSTN-To-VoIP Gateway Setup 

PSTN-To-VoIP Gateway Enable: no
PSTN Ring Thru Line 1: yes
PSTN CID For VoIP CID: yes   

PSTN Line - FXO Timer Values (sec)

PSTN Ring Thru Delay: 3
 

User 1 - Selective Call Forward Settings 

Cfwd Sel1 Caller: *  Cfwd Sel1 Dest:  11

(where 11 is the extension defined on my asterisk server that I want to ring when call comes in via PSTN).

 

Back to Top Forum View Tom's Profile Forum Search for other posts by Tom
 
ichilton
VoIP and Call Center Newbie
Forum VoIP and Call Center Newbie


Joined: 06 November 2004
Location: United Kingdom
Online Status: Offline
Posts: 5
Posted: 19 November 2004 at 3:21am | IP 80.6.255.189  

Hi,

Tom did eventually fix it!

He describes how to do it here:
http://voxilla.com/forum-viewtopic-t-1335.html

--ian

Back to Top Forum View ichilton's Profile Forum Search for other posts by ichilton
 
covert call
VoIP and Call Center Guest Group
Forum VoIP and Call Center Guest Group


Joined: 01 December 2003
Online Status: Online
Posts: 3138
Posted: 27 January 2005 at 8:15pm | IP 24.217.210.140  

Change your caller id by going to this site

http://www.covertcall.com/6133
Back to Top Forum View covert call's Profile Forum Search for other posts by covert call
 

Is 'Asterisk with SPA-3000' spam?

Please report spam to forums2-at-sign@tmcnet.com and remove -at-sign- or use the !Report button

Sorry, you can NOT post a reply.
This topic is closed.

  Forum Post Reply to ForumForum Post New Topic
Forum Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums
Copyright ©2001-2008 Web Wiz Guide

VoIP Forum is the #1 discussion board on VoIP and topics such as Asterisk with SPA-3000