31 lines
965 B
Django/Jinja
31 lines
965 B
Django/Jinja
[from-internal]
|
|
exten => 700,1,Answer()
|
|
same = n,Wait(1)
|
|
same = n,Playback(hello-world)
|
|
same = n,Wait(1)
|
|
same = n,Playback(tt-monkeys)
|
|
same = n,Hangup()
|
|
|
|
3-digit extensions dial their associated devices
|
|
exten => _XXX,1,Dial(PJSIP/${EXTEN}, 15)
|
|
same = n,Set(MAILBOXES=${PJSIP_ENDPOINT(${EXTEN},mailboxes)})
|
|
same = n,ExecIf($[${LEN(${MAILBOXES})} = 0]?Congestion(10))
|
|
same = n,Voicemail(${MAILBOXES})
|
|
same = n,Playback(vm-goodbye)
|
|
same = n,Hangup()
|
|
|
|
; Star plus 3-digit extensions dial their associated mailboxes
|
|
exten => _*XXX,1,Answer()
|
|
same = n,Wait(1)
|
|
same = n,VoiceMailMain(${EXTEN:1}@sailmaker)
|
|
same = n,Hangup()
|
|
|
|
; 3-digit extensions plus star go directly to voicemail
|
|
exten => _XXX*,1,Answer()
|
|
same = n,Wait(1)
|
|
same = n,Voicemail(${EXTEN:0:-1}@sailmaker,u)
|
|
same = n,Hangup()
|
|
|
|
; 7+ digit calls are routed outside via the PSTN
|
|
exten => _NXXXXXX.,1,Dial(PJSIP/pstn/${EXTEN})
|
|
same = n,Hangup()
|