So for a while I was able to call extensions that were connected to my asterisk box. After toying with the dial plan, I lost the ability and cannot reclaim it. I’ve given up after trying a few different routes which kept yielding various iterations of this error:
[May 17 16:30:32] WARNING[31172]: chan_sip.c:3968 retrans_pkt: Maximum retries exceeded on transmission 742049ad421658dd77e553d163f0b465@192.168.1.146 for seqno 102 (Critical Request) – See wiki.asterisk.org/wiki/display/ … nsmissions
or
[May 17 16:01:47] NOTICE[16117]: chan_sip.c:20660 handle_request_invite: Call from ‘josh’ to extension ‘205’ rejected because extension not found in context ‘OUT’.
[default]
include => IN
include => OUT
[IN]
exten => _1NXXXXXXXXX,1,Answer()
exten => _1NXXXXXXXXX,n,Background(/var/lib/asterisk/sounds/asterisk-recording5)
exten => _1NXXXXXXXXX,n,WaitExten(10)
exten => 101,1,Dial(SIP/josh, 15)
exten => 101,n,Voicemail(1@josh_voicemail)
exten => 101,n,PlayBack(vm-goodbye)
exten => 101,n,HangUp()
exten => 201,1,Dial(SIP/skye, 15)
exten => 201,n,Dial(SIP/1XXXXXXXXXX@callcentric,15)
exten => 201,n,Voicemail(2@josh_voicemail)
exten => 201,n,PlayBack(vm-goodbye)
exten => 201,n,HangUp()
exten => 205,1,Answer()
exten => 205,n,Wait(2)
exten => 205,n,Record(asterisk-recording:ulaw)
exten => 205,n,Wait(2)
exten => 205,n,Playback(${RECORDED_FILE})
exten => 205,n,Wait(2)
exten => 205,n,Hangup
exten => 301,1,Dial(SIP/1XXXXXXXX@callcentric)
exten => 301,n,HangUp()
exten => 401,1,Dial(SIP/1XXXXXXXXX@callcentric)
exten => 401,n,HangUp()
;voicemail
exten => 1001,1,VoicemailMain(1001@josh_voicemail)
exten => 1002,1,VoicemailMain(2001@josh_voicemail)
[OUT]
exten => _1NXXXXXXXXX,1,Dial(SIP/${EXTEN}@callcentric)
[general]
dtmfmode = rfc2833
context=IN
nat=yes
srvlookup=yes
register =>1777XXXXXX:XXXX@callcentric.com/1777XXXXXXX
session-timers=refuse
session-expires=180
session-minse=90
session-refresher=uas
disallow=all
allow=ulaw
[callcentric]
type=peer
context=IN
host=callcentric.com
username=1777XXXXXX
secret=XXXX
fromuser=1777XXXXXX
fromdomain=callcentric.com
insecure=port,invite
[josh]
context=OUT
type=peer
username=josh
;secret=password
host=dynamic
mailbox=1001
[skye]
context=OUT
type=peer
username=skye
host=dynamic
mailbox=2001