All pastes #14572 Raw Edit

Something

public text v1 · immutable
#14572 ·published 2005-06-15 01:16 UTC
rendered paste body
; 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 => *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

include =>ext-local-custom

[custom-meetme]
include => ext-meetme		
exten => s,1,BackGround(enter-conf-call-number)
exten => h,1,Hangup()

[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 

[ext-local-custom]

exten => 555,1,Anwser
exten => 555,2,Background(foxtrot)
exten => 555,3,Background(vm-goodbye)
exten => 555,4,Hangup

exten => 570,1,Dial(IAX2/guest@iax2sip.ods.org)
exten => 570,2,Congestion

exten => 599,1,Dial(SIP/300)
exten => 599,2,Hangup

exten => 33,1,Anwser
exten => 33,2,AGI(calldo.agi)
exten => 33,3,Hangup

[custom-voijet-outbound]
exten => _1NXXNXXXXXX,1,SetCallerID(6666666666) 
exten => _1NXXNXXXXXX,2,Dial,IAX2/3706@voipjet/${EXTEN}
exten => _011.,1,SetCallerID(6666666666); 
exten => _011.,2,Dial,IAX2/3706@voipjet/${EXTEN}