summaryrefslogtreecommitdiffstats
path: root/default/routing.conf
blob: e7adcc9000cc627b1c72aabc570c4e94864afc76 (plain) (blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Linux-Call-Router routing configuration "routing.conf"


# Ruleset: MAIN
# Calls with different origins will be processed in different rulesets.

[main]
#interface=xyz				: goto ruleset=xyz
extern					: goto ruleset=extern
intern					: goto ruleset=intern
					: disconnect cause=31

# Ruleset: EXTERN
# All calls from external lines are processed here.

[extern]
dialing=1234 remote=asterisk		: remote application=asterisk
dialing=0,1234				: intern extension=200
dialing=200-299				: intern
dialing=81				: partyline room=42
#timeout=6				: intern extension=200
default					: disconnect cause=1


# Ruleset: INTERN
# All calls from internal ports are processed here.

[intern]
dialing=0				: extern
dialing=1				: extern capability=digital-unrestricted
dialing=200-299				: intern
dialing=3				: pick
dialing=5 enblock			: reply
dialing=5				: reply select
dialing=6 enblock			: redial
dialing=6				: redial select
dialing=7				: abbrev
dialing=80				: vbox-play
dialing=81				: partyline room=42
dialing=90				: powerdial
dialing=91				: callerid
dialing=92				: calleridnext
#dialing=93				: login
#dialing=94				: powerdial
#dialing=950 real			: callback
#dialing=953				: forward diversion=cfu
#dialing=954				: forward diversion=cfb
#dialing=955				: forward diversion=cfnr delay=26
#dialing=956				: forward diversion=cfp
#dialing=957				: forward diversion=cfu dest=vbox
#dialing=958				: forward diversion=cfb dest=vbox
#dialing=959				: forward diversion=cfnr dest=vbox delay=20
#dialing=96				: dtmf
#dialing=970				: calculator connect
dialing=99				: test
default					: disconnect cause=1 display="Invalid Code"