ansible/roles/asterisk/templates/extensions.conf.j2
2024-11-25 11:31:12 -05:00

23 lines
666 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,Voicemail(${EXTEN}@sailmaker)
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()
; 7+ digit calls are routed outside via the PSTN
exten => _NXXXXXX.,1,Dial(PJSIP/pstn/${EXTEN})
same = n,Hangup()