Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (45 sloc) 1.78 KB
; extensions.conf - the Asterisk dial plan
[incoming]
exten => _X.,1,Answer()
exten => _X.,n,Playback(ascending-2tone)
exten => _X.,n,Read(get,"silence/1",,,,1)
exten => _X.,n,GotoIf($[ 1${get} = 18 ]?confcall:dial)
exten => _X.,n(confcall),ConfBridge(8)
exten => _X.,n(dial),Dial(SIP/100,30)
exten => _X.,n,Voicemail(100@default)
exten => _X.,n,Hangup()
[friends]
{{#if_display_expiration_notice}}
;expiration notice
exten => _X.,1,Answer()
exten => _X.,n,System(/usr/bin/tts-de 'Dein Abonnement ist abgelaufen oder läuft bald ab. Bitte verlängern. Deine Host-ei-di ist: {{hostid_phonetic}}.')
exten => _X.,n,Playback(/tmp/tts)
exten => _X.,n,System(/usr/bin/tts-en 'Your subscription has expired or is about to expire. Please renew. Your Host i.d. is: {{hostid_phonetic}}.')
exten => _X.,n,Playback(/tmp/tts)
exten => _X.,n,Hangup()
exten => 1,1,Answer()
exten => 1,n,System(/usr/bin/tts-de 'Dein Abonnement ist abgelaufen oder läuft bald ab. Bitte verlängern. Deine Host-ei-di ist: {{hostid_phonetic}}.')
exten => 1,n,Playback(/tmp/tts)
exten => 1,n,System(/usr/bin/tts-en 'Your subscription has expired or is about to expire. Please renew. Your Host i.d. is: {{hostid_phonetic}}.')
exten => 1,n,Playback(/tmp/tts)
exten => 1,n,Hangup()
{{/if_display_expiration_notice}}
{{^if_display_expiration_notice}}
{{#addresses}}
exten => {{phone}},1,Dial(SIP/100@{{hostname}})
{{/addresses}}
;global addresses
{{#global_addresses}}
exten => 01{{phone}},1,Dial(SIP/100@{{hostname}}.eb)
{{/global_addresses}}
;statusmsg
exten => 1,1,Answer()
exten => 1,n,Ringing()
exten => 1,n,System(/usr/bin/generate-enigmabox-statusmsg)
exten => 1,n,Playback(ascending-2tone)
exten => 1,n,Playback(silence/1)
exten => 1,n,Playback(/tmp/tts)
exten => 1,n,Hangup()
;confcall
exten => 8,1,ConfBridge(8)
{{/if_display_expiration_notice}}