All pastes #48723 Raw Edit

Something

public text v1 · immutable
#48723 ·published 2006-04-09 11:21 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

include => custom-speed-dial

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

; CallingCard application
;add an incoimf route for the DID to Custom App: (un-comment next line)
;custom-callingcard,s,1

; un-comment the 6 lines below to work on incoming DIDs
;[custom-callingcard]
;exten => s,1,Answer
;exten => s,2,Wait,2
;exten => s,3,DeadAGI,a2billing.php
;exten => s,4,Wait,2
;exten => s,5,Hangup

[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

; system wide speed dial app
 
[custom-speed-dial] 
;Speed dialing record 
exten => _3003XX.,1,DBput(SysSpeed/${EXTEN:3:3}=${EXTEN:6}) 
exten => _3003XX.,2,SayDigits(${EXTEN:6}) 
exten => _3003XX.,3,playback(at) 
exten => _3003XX.,4,playback(position) 
exten => _3003XX.,5,SayDigits(${EXTEN:3:3}) 
exten => _3003XX.,6,Hangup 
 
;Speed dialing recall and dial 
exten => _3XX,1,DBget(speedref=SysSpeed/${EXTEN}) 
exten => _3XX,2,playback(pls-wait-connect-call) 
exten => _3XX,3,Goto(outbound-allroutes,${speedref},1) 
exten => _3XX,102,playback(that-number) 
exten => _3XX,103,playback(is-not-in-the) 
exten => _3XX,104,playback(speed-dial) 
exten => _3XX,105,playback(system) 
exten => _3XX,106,playback(pls-try-again) 
exten => _3XX,107,playback(goodbye) 
exten => _3XX,108,Macro(hangupcall) 
 
;Speed dialing recall and tell caller what it is, part one 
exten => _*3XX,1,Answer 
exten => _*3XX,2,DBget(speedref=SysSpeed/${EXTEN:1}) 
exten => _*3XX,3,SetVar(speedreflocation=${EXTEN:1}) 
exten => _*3XX,4,Goto(menu-SysSpeed,s,1) 
exten => _*3XX,102,playback(speed-dial) 
exten => _*3XX,103,playback(num-not-in-db) 
exten => _*3XX,104,playback(pls-try-again) 
exten => _*3XX,105,playback(goodbye) 
exten => _*3XX,106,Macro(hangupcall) 
 
 
[menu-SysSpeed] 
;Speed dialing recall and tell caller what it is 
exten => s,1,background(speed-dial) 
exten => s,2,saydigits(${speedreflocation}) 
exten => s,3,background(has-been-set-to) 
exten => s,4,saydigits(${speedref}) 
exten => s,5,background(press-1) 
exten => s,6,background(to-call-this-number) 
exten => s,7,background(or) 
exten => s,8,background(hangup-try-again) 
exten => s,9,background(silence/5) 
exten => s,10,background(goodbye) 
exten => s,11,Macro(hangupcall) 
exten => 1,1,Goto(custom-speed-dial,${speedreflocation},1) 

; 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