Worth a sticky.
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.