I will get an actual after 5pm CLI output tonight, but this is what it looks like. It acts like a normal call, but times out after this point instead of connecting.
asterisk*CLI>
-- Executing [XXXXXXXXXX@school:1] Dial("SIP/106-b710b7e0", "SIP/trunk-out/+XXXXXXXXXX") in new stack
-- Called trunk-out/+XXXXXXXXXX
extensions.conf
[code][general]
static=yes
writeprotect=no
[globals]
TRUNK=SIP/trunk-out
HSPAGE=SIP/412&SIP/416&SIP/417&SIP/418&SIP/419&SIP/420&SIP/422&SIP/424&SIP/426&SIP/427&SIP/428&SIP/431&SIP/433&SIP/436&SIP/440&SIP/441&SIP/444&SIP/445&SIP/447&SIP/448&SIP/449
MSPAGE=SIP/301&SIP/302&SIP/303&SIP/304&SIP/305&SIP/306&SIP/325
TESTPAGE=SIP/423
[outgoing]
exten => 911,1,Dial(${TRUNK}/911)
exten => 9911,1,Dial(${TRUNK}/911)
exten => 9111,1,Dial(${TRUNK}/911)
exten => 9991,1,Dial(${TRUNK}/911)
exten => 99911,1,Dial(${TRUNK}/911)
exten => 999111,1,Dial(${TRUNK}/911)
exten => _1900XXXXXXX,1,Congestion(4)
exten => _1900XXXXXXX,n,Hangup()
exten => _900XXXXXXX,1,Congestion(4)
exten => _900XXXXXXX,n,Hangup()
exten => _XXXXXXX,1,Dial(${TRUNK}/+1208${EXTEN})
exten => _XXXXXXX,n,Congestion(4)
exten => _XXXXXXX,n,Hangup()
exten => _XXXXXXXXXX,1,Dial(${TRUNK}/+1${EXTEN})
exten => _XXXXXXXXXX,n,Congestion(4)
exten => _XXXXXXXXXX,n,Hangup()
exten => _XXXXXXXXXXX,1,Dial(${TRUNK}/+${EXTEN})
exten => _XXXXXXXXXXX,n,Congestion(4)
exten => _XXXXXXXXXXX,n,Hangup()
[frombandwidth]
exten => +12087473764,1,Answer()
exten => +12087473764,n,Wait(2)
exten => +12087473764,n,Goto(school,2,1)
exten => +12087473303,1,Answer()
exten => +12087473303,n,Wait(2)
exten => +12087473303,n,Goto(school,3,1)
exten => +12087473411,1,Answer()
exten => +12087473411,n,Wait(2)
exten => +12087473411,n,Goto(school,4,1)
exten => _+1208.,1,Answer()
exten => _+1208.,n,Set(TIMEOUT(digit)=4)
exten => _+1208.,n,Set(TIMEOUT(response)=10)
exten => _+1208.,n,Wait(2)
exten => _+1208.,n,Background(wssd_greeting)
exten => _+1208.,n,Wait(8)
exten => _+1208.,n,Playback(goodbye)
exten => _+1208.,n,Hangup()
exten => 101,1,Answer()
exten => 101,n,Wait(2)
exten => 101,n,Dial(SIP/100,15,Ttr)
exten => 101,n,Dial(SIP/100&SIP/101,15,Ttr)
exten => 101,n,Voicemail(100,u)
exten => 101,n+101,Voicemail(100,b)
exten => 101,n,Hangup()
include => school
[school]
exten => 1,1,Dial(SIP/100,15,Ttr)
exten => 1,n,Dial(SIP/100&SIP/101,10,Ttr)
exten => 1,n,Voicemail(100,u)
exten => 1,n+101,Voicemail(100,b)
exten => 2,1,Dial(SIP/200&SIP/206,15,Ttr)
exten => 2,n,Dial(SIP/200&SIP/206&SIP/209,15,Ttr)
exten => 2,n,Dial(SIP/200&SIP/206&SIP/209&SIP/205,10,Ttr)
exten => 2,n,Voicemail(200,u)
exten => 2,n+101,Voicemail(200,b)
exten => 3,1,Dial(SIP/300,20,Ttr)
exten => 3,n,Dial(SIP/300&SIP/305,10,Ttr)
exten => 3,n,Voicemail(300,u)
exten => 3,n+101,Voicemail(300,b)
exten => 4,1,Set(TIMEOUT(digit)=4)
exten => 4,n,Set(TIMEOUT(response)=10)
exten => 4,n,Background(high_school_greeting)
exten => 4,n,Wait(8)
exten => 4,n,Playback(goodbye)
exten => 4,n,Hangup()
exten => 106,1,Dial(SIP/106&SIP/108,20,Ttr)
exten => 106,n,Voicemail(106,u)
exten => 106,n+101,Voicemail(106,b)
exten => 108,1,Goto(school,106,1)
exten => 400,1,Dial(SIP/400&SIP/401,15,Ttr)
exten => 400,n,Dial(SIP/400&SIP/401&SIP/405,10,Ttr)
exten => 400,n,Voicemail(400,u)
exten => 400,n+101,Voicemail(400,b)
exten => 4999,1,SIPAddHeader(Call-Info: answer-after=0)
exten => 4999,n,Page(${HSPAGE})
exten => 4999,n,Hangup()
exten => 3999,1,SIPAddHeader(Call-Info: answer-after=0)
exten => 3999,n,Page(${MSPAGE})
exten => 3999,n,Hangup()
exten => 7999,1,Goto(ivr_menu,s,1)
exten => 8000,1,Playback(school_menu_joke)
exten => 8000,n,Hangup()
exten => _3XX,1,Macro(dialMSExtension,${EXTEN})
exten => _XXX,1,Macro(staff,${EXTEN})
include => voicemail
include => badext
include => outgoing
[badext]
exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(frombandwidth,main,1)
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup()
[voicemail]
exten => _50XXX,1,Wait(1)
exten => _50XXX,n,VoicemailMain(${EXTEN:2}) ; just ask for the password we’re already in their vmail
exten => _50XXX,n,Hangup()
exten => 50,1,VoicemailMain ; ask for everything, user (extension) and password - see voicemail.conf
exten => 50,n,Hangup()
exten => _*XXX,1,Voicemail(${EXTEN:1},u)
[macro-staff]
exten => s,1,Dial(SIP/${ARG1},20,Tt)
exten => s,2,Voicemail(${ARG1},u) ; Unavailable message
exten => s,102,Voicemail(${ARG1},b) ; Busy message - Remember they can record Name, Busy, and Unavailable
include => badext
[macro-dialMSExtension] ; after direct dialing MS extension, bounce to secretary
exten => s,1,Dial(SIP/${ARG1},20,Tt)
exten => s,2,Dial(SIP/300,10,Tt)
exten => s,3,Voicemail(${ARG1},u) ; Unavailable message
exten => s,102,Voicemail,(${ARG1},b) ; Busy message - Remember they can record Name, Busy, and Unavailables
include => badext
[ivr_menu]
exten => s,1,Answer()
exten => s,n,Set(TIMEOUT(digit) = 8)
exten => s,n,Set(TIMEOUT(response) = 8)
exten => s,n,Background(what_to_do)
exten => s,n,Goto(s,1)
exten => 001,1,Record(wssd_greeting.ulaw)
exten => 001,n,Goto(ivr_menu,s,1)
exten => 002,1,Playback(wssd_greeting)
exten => 002,n,Goto(ivr_menu,s,1)
exten => 007,1,Record(high_school_greeting.ulaw)
exten => 007,n,Goto(ivr_menu,s,1)
exten => 008,1,Playback(high_school_greeting)
exten => 008,n,Goto(ivr_menu,s,1)
exten => 009,1,Record(middle_school_greeting.ulaw)
exten => 009,n,Goto(ivr_menu,s,1)
exten => 010,1,Playback(middle_school_greeting)
exten => 010,n,Goto(ivr_menu,s,1)
exten => 011,1,Record(elementary_school_greeting.ulaw)
exten => 011,n,Goto(ivr_menu,s,1)
exten => 012,1,Playback(elementary_school_greeting)
exten => 012,n,Goto(ivr_menu,s,1)
exten => 013,1,Record(what_to_do.ulaw)
exten => 013,n,Goto(ivr_menu,s,1)
exten => 014,1,Playback(what_to_do)
exten => 014,n,Goto(ivr_menu,s,1)
exten => i,1,Goto(ivr_menu,s,1)
exten => t,1,Goto(ivr_menu,s,1)[/code]
sip.conf
[code][general]
port=5060
bindaddr=0.0.0.0
disallow=all
allow=ulaw
tos_sip=cs3
tos_audio=ef
tos_video=af41
context=school
rtptimeout=60
jbenable=yes
[100]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Sherry Phillips
secret=100
mailbox=100
[101]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Melvin Beutler
secret=101
mailbox=101
[102]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Nancy Cox
secret=102
mailbox=102
[103]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=FA Special Ed
secret=103
mailbox=103
[104]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Jaron Packer
secret=104
mailbox=104
[105]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Brian Mendenhall
secret=105
mailbox=105
[106]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Cole Tarbet
secret=106
mailbox=106
[107]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Hank Povey
secret=107
mailbox=107
[108]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Server Room
secret=108
mailbox=108
[109]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Choir Room
secret=109
mailbox=109
[110]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Fine Arts Lab
secret=110
mailbox=110
[112]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Neil Fuller
secret=112
mailbox=112
[200]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Amy Lemmon
secret=200
mailbox=200
[201]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=JoBeth Morrison
secret=201
mailbox=201
[203]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Cindy Hull
secret=203
mailbox=203
[204]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Lori Koller
secret=204
mailbox=204
[205]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Melissa Waddoups
secret=205
mailbox=205
[206]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=EL Workroom
secret=206
[209]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=EL Library
secret=209
mailbox=209
[210]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Melinda Royer
secret=210
mailbox=210
[212]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=RuthAnn Camp
secret=212
mailbox=212
[216]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=EL Lunch Room
secret=216
mailbox=216
[217]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Lori Zilles
secret=217
mailbox=217
[218]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Cindy White
secret=218
mailbox=218
[219]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Geraldine Gunnell
secret=219
mailbox=219
[220]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Joan Harrison
secret=220
mailbox=220
[224]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Julie Nash
secret=224
mailbox=224
[225]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Leah Lucherini
secret=225
mailbox=225
[227]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Katie Mathews
secret=227
mailbox=227
[228]
type=friend
host=dynamic
dtmfmode=rfc2833
secret=228
mailbox=228
[230]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Arien Shumway
secret=230
mailbox=230
[231]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Mandi Moser
secret=231
mailbox=231
[233]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Vicky Palmer
secret=233
mailbox=233
[234]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Gregg Defriez
secret=234
mailbox=236
[236]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=EL Music Room
secret=236
mailbox=236
[240]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Elwell Boys Locker
secret=240
[241]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Elwell Girls Locker
secret=241
[288]
type=friend
host=dynamic
callerid=EL Student Phone
dtmfmode=rfc2833
secret=288
[300]
type=friend
host=dynamic
dtmfmode=rfc2833
secret=300
callerid=Susan Doney
mailbox=300
vmexten=300
[301]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Tyler Brown
secret=301
mailbox=301
[302]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Shari Turnbow
secret=302
mailbox=302
[303]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Tyson Moser
secret=303
mailbox=303
[304]
type=friend
host=dynamic
dtmfmode=rfc2833
secret=304
mailbox=304
[305]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Kathy Bright
secret=305
mailbox=305
vmexten=305
[306]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Daran Smart
secret=306
mailbox=306
[307]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=MS Resource
secret=307
mailbox=307
[325]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=AnnaBeth Olson
secret=325
mailbox=325
[488]
type=friend
host=dynamic
callerid=EL Student Phone
dtmfmode=rfc2833
secret=0000
[400]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Christy Thornley
callerid=400
secret=0000
mailbox=400
[401]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Susan Blair
secret=0000
mailbox=401
[405]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Spencer Barzee
secret=0000
mailbox=405
[412]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Edward Kimpel
secret=0000
mailbox=412
[416]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=John Abbott
secret=0000
mailbox=416
[417]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Lucinda Bingham
secret=0000
mailbox=417
[418]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=HS Lounge
secret=0000
mailbox=418
[419]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Amanda Hansen
secret=0000
mailbox=419
[420]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Kathy Winward
secret=0000
mailbox=420
[422]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Chapter 1
secret=0000
mailbox=420
[423]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=HS Lunch Room
secret=0000
mailbox=423
[436]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Jim Summers
secret=0000
mailbox=436
[424]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Marcia Kendall
secret=0000
mailbox=424
[425]
type=friend
host=dynamic
dtmfmode=rfc2833
secret=0000
callerid=Jean Paskins
mailbox=425
[426]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Boys Locker
secret=0000
mailbox=426
[427]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Girls Locker
secret=0000
mailbox=427
[428]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Joseph Grimm
secret=0000
mailbox=428
[431]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Tyler Telford
secret=0000
mailbox=431
[433]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Legrand Leavitt
secret=0000
mailbox=433
[436]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Jim Summers
secret=0000
mailbox=436
[437]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=HS Blue Room
secret=0000
mailbox=437
[439]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Bonnie Neilsen
secret=0000
mailbox=439
[440]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Neil Fuller
secret=0000
mailbox=440
[441]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Alan Hatch
secret=0000
mailbox=441
[444]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Lynda Smith
secret=0000
mailbox=444
[447]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Weight Room
secret=0000
mailbox=447
[448]
type=friend
host=dynamic
dtmfmode=rfc2833
callerid=Joann Wade
secret=0000
mailbox=448
[449]
type=friend
host=dynamic
dtmfmode=rfc2833
secret=0000
callerid=Colleen Henderson
mailbox=449
[450]
type=friend
host=dynamic
dtmfmode=rfc2833
secret=0000
callerid=Jeff Phillips
[trunk-out]
type=peer
host=172.22.9.3
port=5060
reinvite=no ; testing ghost calls
canreinvite=no ; testing ghost calls
fromuser=+12087473502
dtmfmode=rfc2833
[trunk-in]
type=peer
host=172.22.9.3
port=5060
nat=yes ; required here!
reinvite=no ; required!
canreinvite=no ; required!
context=frombandwidth ; arbitrary name for context
dtmfmode=rfc2833[/code]