ansible/roles/asterisk/templates/extensions.conf.j2

24 lines
666 B
Text
Raw Normal View History

2024-11-25 01:06:18 +00:00
[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
2024-11-25 04:16:18 +00:00
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)
2024-11-25 01:06:18 +00:00
same = n,Hangup()
; 7+ digit calls are routed outside via the PSTN
exten => _NXXXXXX.,1,Dial(PJSIP/pstn/${EXTEN})
same = n,Hangup()