summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-pbx/root/etc/pbx-asterisk/extensions.conf.TEMPLATE
blob: f3edac384bf8449aea7c5418ba87bc3a43cd7be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[general]
static = yes
writeprotect = yes
clearglobalvars = no

[globals]

[default]

[context-user-hangup]
exten =>   s,1,Hangup()
exten => _X.,1,Hangup()

[context-catch-all]
exten   => _[!-~].,1,Dial(SIP/${EXTEN},60,r)

[default-incoming-call-context]
exten => s,1,NoOp(${CALLERID})
exten => s,n,Set(SOURCECONTEXT=default-incoming-call-context)
exten => s,n,Set(SOURCEEXTEN=s)
exten => s,n,Goto(blacklist-call-context,s,1)
exten => s,n(doneblacklist),NoOp()
exten => s,n,Goto(disa-check-call-context,s,1)
exten => s,n(donedisacheck),Dial(|LOCALUSERS|,60,r)

#include extensions_incoming.conf
#include extensions_incoming_gtalk.conf
#include extensions_blacklist.conf
#include extensions_callthrough.conf
#include extensions_user.conf