[incoming]
exten => s,1,Dial(SIP/$EXTEN)
exten => s,2,Playback(vm-goodbye)
exten => s,3,Hangup
[outgoing]
exten => _0X.,1,Answer
exten => _0X.,2,Dial(CAPI/<1615>:${EXTEN},,Ttr)
exten => _0X.,3,Congestion
exten => _0X.,4,Hangup
[x-lite]
exten => _0X,1,NoOp("Call for "${EXTEN})
exten => _0X,2,Dial(CAPI/${EXTEN},60,tr)
exten => _0X,3,Congestion
include => outgoing
[general]
static=yes
writeprotect=yes
[default]
exten => _0X,1,Dial({SIP/$EXTEN},60)
exten => _0X,2,Congestion
exten => _0X,102,Busy
[macro-stdiax]
; ${ARG1} - user to ring (IAX)
; ${ARG2} - voicemail number
exten => s,1,Dial(IAX2/${ARG1}|20|Ttr)
exten => s,2,Voicemail2(u${ARG2})
exten => s,3,Hangup
exten => s,102,Voicemail2(b${ARG2})
exten => s,103,Hangup
[fullaccess]
;include => parkedcalls
include => local
[local]
exten => 101,1,Macro(stdiax,dan,${EXTEN})
exten => 102,1,Macro(stdiax,cami,${EXTEN})
exten => 200,1,Answer
exten => 200,2,Wait(1)
exten => 200,3,VoicemailMain2
exten => 200,4,Hangup
exten => 201,1,Answer
exten => 201,2,Wait(1)
exten => 201,3,VoiceMailMain2(s${CALLERIDNUM})
exten => 201,4,Hangup
exten => 205,1,AbsoluteTimeout(60)
exten => 205,2,SetLanguage(ro)
exten => 205,3,Playback(demo-abouttotry)
exten => 205,4,Dial(IAX2/[email protected]/s@default)
exten => 205,5,Playback(demo-nogo)
exten => 205,6,Hangup
exten => 206,1,Answer
exten => 206,2,Playback(demo-echotest)
exten => 206,3,Echo
exten => 206,4,Playback(demo-echodone)
exten => 206,5,Hangup
exten => 207,1,AbsoluteTimeout(60)
exten => 207,2,SetLanguage(en)
exten => 207,3,Playback(Beep)
exten => 207,4,Echo
exten => 207,5,Playback(demo-echodone)
exten => 207,6,Hangup
exten => 209,1,AbsoluteTimeout(30)
exten => 209,2,SetLanguage(ro)
exten => 209,3,Answer
exten => 209,4,Wait(3)
exten => 209,5,DateTime
exten => 209,6,Hangup
[noaccess]
exten => s,1,Ring
exten => s,2,Wait(5)
exten => s,3,Answer
exten => s,4,Playback(ss-noservice) ; invalid extension
exten => s,5,Hangup