[asterisk-users] How to use Sipura SPA3k POTS line to dial
Asterisk SIP phones?
Doug Crompton
doug at crompton.com
Tue Nov 14 22:54:57 MST 2006
Below is my config for spa3k fxo. I do not show the settings in the spa3k
which must reflect settings here, port, username, secret, etc. I have
DTMF set to inband here and in spa3k to fix a problem with DTMF not
working for menus from PSTN. This was discussed earlier and is a problem
in asterisk that may (or may not) be solved in 1.4. I am using earlier
version. Inband must also be specifed in spa3k pstn.
[sipurafxo1]
type=peer
username=sipurafxo1
secret=xxxxxxxxx
canreinvite=no
context=from-pstn
host=dynamic
nat=no
port=5061
disallow=all
allow=alaw
allow=ulaw
allow=gsm
allow=g723.1
dtmfmode=inband
In extensions.conf. This is a little fancy but the bottom line is that it
ends up in either a day or night mode. Only day shown. The spa3k fxo in
sip calls the from-pstn but the pstn-day-time (below) could be relabeled
from-pstn to always go to phones. The night mode basically goes to VM.
INRINGSEXT and INRINGSDEV are just variables defined to -
INRINGSDEV=SIP/sipurafxs1&SIP/grandstream406 ; ring analog phones on spa3k
fxs
INRINGSEXT=405 ; the extension to ring for incomming calls
The stdexten macro is just the standard one in sample extension file.
[from-pstn]
exten => s,1,GotoIf($[ ${day-night} = 0 ]?2:10
exten => s,2,GotoIfTime(9:30-23:59,*,*,*?pstn-day-time,s,1
exten => s,3,GotoIfTime(0:00-09:29,*,*,*?night-time,s,1
exten => s,10,GotoIf($[ ${day-night} = 1 ]?pstn-day-time,s,1
exten => s,11,GotoIf($[ ${day-night} = 2 ]?night-time,s,1
[pstn-day-time]
exten => s,1,SetGlobalVar(RingTimeout=35)
exten => s,2,NoOp("${CALLERID}")
exten => s,3,Macro(stdexten,${INRINGSEXT},${INRINGSDEV},"")
On Tue, 14 Nov 2006, Larry Alkoff wrote:
> My SIP phones can dial out through Sipura SPA3k to POTS for local and
> 911 calls _but_ incoming POTS calls are being swallowup somehow.
>
> Am I on the right track with the code snippit below?
>
> sip.conf:
> ---------
> In sip.conf the following code is _supposed_ to ring the SIP phones when
> a POTS line call comes in through Sipuara to Asterisk.
>
> [spa3k-pstn-in] ; Pots-line-in from Sipura
> ; If you're using Asterisk, this goes into the Incoming settings
> ; For your Trunk
> host=dynamic
>
> type=friend ; should be peer if incoming only ??
>
> context=[macro-ringall] ;ring all the sip phones
>
> secret=xxxxx
> dtmfmode=rfc2833
> disallow=all
> allow=ulaw
> insecure=very
>
>
> extensions.conf
> ----------------
> context to ring all SIP phones when a POTS call comes into SPA3k:
>
> [macro-ringall] ; ring all SIP phones
> exten => s,1,Dial(SIP/120&SIP/121&SIP/122&SIP/124&SIP/125&SIP/126&SIP/127)
> exten => s,2,hangup
>
> --
> Larry Alkoff N2LA - Austin TX
> Using Thunderbird on Linux
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
"Those that sacrifice essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." -- Ben Franklin (1759)
****************************
* Doug Crompton *
* Richboro, PA 18954 *
* 215-431-6307 *
* *
* doug at crompton.com *
* http://www.crompton.com *
****************************
More information about the asterisk-users
mailing list