9107d82d7c640a004b8b8098a671f7f5e88b4f72
[librecmc/librecmc-fossil.git] /
1 ; extensions.conf - the Asterisk dial plan
2
3 [incoming]
4 exten => _X.,1,Answer()
5 exten => _X.,n,Playback(ascending-2tone)
6 exten => _X.,n,Read(get,"silence/1",,,,1)
7 exten => _X.,n,GotoIf($[ 1${get} = 18 ]?confcall:dial)
8 exten => _X.,n(confcall),ConfBridge(8)
9 exten => _X.,n(dial),Dial(SIP/100,30)
10 exten => _X.,n,Hangup()
11
12 [friends]
13 {{#addresses}}
14 exten => {{phone}},1,Dial(SIP/100@{{hostname}})
15 {{/addresses}}
16
17 ;global addresses
18 {{#global_addresses}}
19 exten => 01{{phone}},1,Dial(SIP/100@{{hostname}}.eb)
20 {{/global_addresses}}
21
22 ;echo test
23 exten => 1,1,Answer()
24 ;exten => 1,n,Playback(tt-somethingwrong)
25 exten => 1,n,Playback(tt-weasels)
26 exten => 1,n,Playback(tt-monkeysintro)
27 exten => 1,n,Playback(tt-monkeys)
28 exten => 1,n,Echo()
29 exten => 1,n,Playback(vm-goodbye)
30 exten => 1,n,Hangup()
31
32 ;confcall
33 exten => 8,1,ConfBridge(8)
34