Greetings all. I’m an asterisk newbie and I’m just getting my feet wet. I’ve got asterisk up and running, my peers (2) are registered as is my SIP trunk to my provider. I can dial between extensions, but I cannot dial to the outside world. My sip.conf is as follows:
[general]
register => [username:password@sip.flowroute.com]
allow=ulaw
type=friend
secret=password
defaultuser=username
host=US-West-WA.sip.flowroute.com
dtmfmode=rfc2833
context=inbound
canreinvite=no
allow=ulaw
insecure=port,invite
fromdomain=US-West-WA.sip.flowroute.com
[1000]
type=friend
nat=force_rport,comedia
defaultuser=1000
secret=123456
host=dynamic
context=default
[1001]
type=friend
nat=force_rport,comedia
defaultuser=1001
secret=123456
host=dynamic
context=default
My extensions.conf is as follows:
extension.conf
[globals]
AREACODE=253
TECHPREFIX=12345678
OUTBOUNDTRUNK=sip.flowroute.com
[outgoing]
exten => _1NXXNXXXXXX,1,Dial(SIP/{TECHPREFIX}{EXTEN}@flowroute)
exten => _NXXNXXXXXX,1,Dial(SIP/{TECHPREFIX}1{EXTEN}@flowroute)
exten => _NXXXXXX,1,Dial(SIP/{TECHPREFIX}1{AREACODE}{EXTEN}@flowroute)
exten => _011.,1,Dial(SIP/{TECHPREFIX}${EXTEN:3}@flowroute)
[default]
include => outbound-long-distance
exten => 1000,1,Dial(SIP/1000)
exten => 1001,1,Dial(SIP/1001)
[outbound-long-distance]
exten => _1NXXNXXXXXX,1,Dial({OUTBOUNDTRUNK}/{EXTEN:1})
I know it’s something simple, but I am entirely new to this stuff and I have nobody to turn to but this community. Can anyone help me simply just put in place a dial plan to dial a number on the PSTN? TIA