; This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP's Asterisk dialplan.
; All custom context should contain the string 'custom' in it's name
; Extensions in AMP have access to the 'from-internal' context.
; The context 'from-internal-custom' is included in 'from-internal' by default
[from-internal-custom]
;1234,1,Playback(demo-congrats) ; extensions can dial 1234
;1234,2,Hangup()
;h,1,Hangup()
;include => custom-recordme ; extensions can also dial 5678
exten => 99,1,Flash()
exten => 99,2,Dial(SIP/5001)
exten => *60,1,Answer
exten => *60,2,Playback(at-tone-time-exactly)
exten => *60,3,SayUnixTime(,,IMp)
exten => *60,4,Playback(beep)
exten => *60,5,Hangup
exten => *61,1,Answer
exten => *61,2,AGI(weather.agi)
exten => *61,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *62,3,Hangup
exten => *65,1,Answer
exten => *65,2,AGI(festival-script.pl|Your phone number is ${CALLERIDNUM}.)
exten => *65,3,Hangup
exten => *66,1,Answer
exten => *66,2,AGI(festival-script.pl|Susan is a tool! Yep I went there props to me.)
exten => *66,3,Hangup
exten => *100,1,Answer
exten => *100,2,Goto(itunes,s,1)
[itunes]
exten => s,1,AGI(festival-script.pl|eye-tunes remote control. press 1 to play. 2 to pause. 3 to skip. 4 to rewind. 5 for status))
exten => s,2,Wait(1)
exten => s,3,Background(custom/itunes)
exten => 1,1,AGI(itunesremote.sh|1)
exten => 1,2,Playback(itunes.stats)
exten => 2,1,AGI(itunesremote.sh|2)
exten => 3,1,AGI(itunesremote.sh|3)
exten => 4,1,AGI(itunesremote.sh|4)
exten => 5,1,AGI(itunesremote.sh|5)
exten => 5,2,Playback(itunes.stats)
[custom-meetme]
include => ext-meetme
exten => s,1,BackGround(enter-conf-call-number)
exten => h,1,Hangup()
[custom-evm]
exten => s,1,GoTo(VoiceMailMain(default))
[custom-disa]
exten => s,1,DISA,1234|from-internal
[custom-wakeupext]
exten => s,1,Answer
exten => s,2,AGI(wakeup-ext.php);
exten => s,3,Hangup
; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-count2four]
;s,1,SayDigits(1234)
;s,2,Hangup
; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Call Group
;[custom-recordme]
;exten => 5678,1,Wait(2)
;exten => 5678,2,Record(/tmp/asterisk-recording:gsm)
;exten => 5678,3,Wait(2)
;exten => 5678,4,Playback(/tmp/asterisk-recording)
;exten => 5678,5,Wait(2)
;exten => 5678,6,Hangup
[custom-callcellnpd]
exten => s,1,Dial(SIP/bv,18046479800)
[from-pstn-mck]
;include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
;include => ext-did
include => from-pstn-timecheck-mck
;exten => s,1,Goto(ext-group,2,1)
;exten => s,3,Goto(aa_2,s,1)
[from-pstn-timecheck-mck]
exten => .,1,Goto(s,1) ; catch-all matching for calls that have DID info (if a DID route hasn't matched them)
exten => s,1,GotoIf($[${IN_OVERRIDE} = forcereghours]?from-pstn-reghours-mck,s,1:)
exten => s,2,GotoIf($[${IN_OVERRIDE} = forceafthours]?from-pstn-afthours-mck,s,1:)
exten => s,3,GotoIfTime(${REGTIME}|${REGDAYS}|*|*?from-pstn-reghours-mck,s,1:)
exten => s,4,Goto(from-pstn-afthours-mck,s,1)
[from-pstn-reghours-mck]
exten => s,1,Goto(ext-group,2,1)
exten => s,3,Goto(aa_2,s,1)
[from-pstn-afthours-mck]
exten => s,1,Answer()
exten => s,2,Goto(aa_2,s,1)
[mckesson-fax]
exten => s,1,Goto(ext-fax,in_fax,1)