Now I’m tryng this dialplan
[default]
; Wait 15 seconds for an answer (pick up the local phone)
exten => s,1,Wait(10)
; Answer the phone
exten => s,2,Answer
; They must respond within 10 seconds
; else jump to priority t (terminate call)
exten => s,4,DigitTimeout(3)
exten => s,5,ResponseTimeout(10)
exten => t,2,Hangup
[from-dahdi]
exten => 1796522,1,Dial(DAHDI/g12/${EXTEN})
exten => 1796522,2,Hangup()
[local]
;
; Master context for local, toll-free, and iaxtel calls only
;
include => default
include => from-dahdi
exten => 600,1,Playback(demo-echotest) ; Let them know what’s going on
exten => 600,2,Echo ; Do the echo test
exten => 600,3,Playback(demo-echodone) ; Let them know it’s over
dialplan show said
[ Context ‘func_periodic_hook_context’ created by ‘func_periodic_hook’ ]
‘beep’ (CID match ‘’) => 1. Answer() [func_periodic_hook]
2. Playback(beep) [func_periodic_hook]
‘hook’ (CID match ‘’) => 1. Set(EncodedChannel=${CUT(HOOK_CHANNEL,-,1-2)}) [func_periodic_hook]
2. Set(GROUP_NAME=${EncodedChannel}${HOOK_ID}) [func_periodic_hook]
3. Set(GROUP(periodic-hook)=${GROUP_NAME}) [func_periodic_hook]
4. ExecIf($[${GROUP_COUNT(${GROUP_NAME}@periodic-hook)} > 1]?Hangup()) [func_periodic_hook]
5. Set(ChannelToSpy=${URIDECODE(${EncodedChannel})}) [func_periodic_hook]
6. ChanSpy(${ChannelToSpy},qEB) [func_periodic_hook]
[ Context ‘local’ created by ‘pbx_config’ ]
‘600’ => 1. Playback(demo-echotest) [extensions.conf:27]
2. Echo() [extensions.conf:28]
3. Playback(demo-echodone) [extensions.conf:29]
Include => ‘default’ [pbx_config]
Include => ‘from-dahdi’ [pbx_config]
[ Context ‘from-dahdi’ created by ‘pbx_config’ ]
‘1796522’ => 1. Dial(DAHDI/g12/${EXTEN}) [extensions.conf:14]
2. Hangup() [extensions.conf:15]
[ Context ‘default’ created by ‘pbx_config’ ]
‘s’ => 1. Wait(10) [extensions.conf:4]
2. Answer() [extensions.conf:6]
4. DigitTimeout(3) [extensions.conf:9]
5. ResponseTimeout(10) [extensions.conf:10]
‘t’ => 2. Hangup() [extensions.conf:11]
-= 7 extensions (20 priorities) in 4 contexts. =-