-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensions.confv2
67 lines (50 loc) · 1.64 KB
/
extensions.confv2
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
60
61
62
63
64
65
66
67
[internal]
exten => 7001,1,Answer()
same => n,set(con=1)
;same => n,Monitor(wav,7001,m)
;same => n,MixMonitor(7001.wav,a)
same => n,GOTO(confunction,start,1)
same => n,Dial(SIP/7001,30)
;same => n,Playback(vm-nobodyavail)
same => n,VoiceMail(7001@main)
same => n,Hangup()
exten => 7002,1,Answer()
same => n,set(con=2)
;same => n,Monitor(wav,7002,m)
;same => n,MixMonitor(7002.wav,a)
same => n,GOTO(confunction,start,1)
same => n,Dial(SIP/7002,30)
;same => n,Playback(vm-nobodyavail)
same => n,VoiceMail(7002@main)
same => n,Hangup()
exten => 7003,1,Answer()
;same => n,Monitor(wav,7003,m)
;same => n,MixMonitor(7003.wav,a)
same => n,Dial(SIP/7003,30)
;same => n,Playback(vm-nobodyavail)
same => n,VoiceMail(7003@main)
same => n,Hangup()
[internal]
exten => _XXXX,1,dial(SIP/${EXTEN}@shayan1)
same=> n,hangup()
;exten => 6400,1,Set(MONITOR_FILENAME=${CHANNEL}${CALLERID(num)}${STRFTIME(${EPOCH},,%Y%m%d%H%M%S)})
;same => n,Queue(support)
;same => n,MixMonitor(6400.wav)
;same => n,Hangup()
exten => 8001,1,VoicemailMain(7001@main)
same => n,Hangup()
exten => 8002,1,VoicemailMain(7002@main)
same => n,Hangup()
exten => 8003,1,VoicemailMain(7003@main)
same => n,Hangup()
[confunction]
exten => start,1,Gotoif($[${con}=1]?7001,7001,1:7002,7002,1)
[7001]
exten => 7001,1,Dial(SIP/7001,30)
same => n,hangup()
[7002]
exten => 7002,1,Dial(SIP/7002,30)
same => n,hangup()
[7003]
exten => 7003,1,Dial(SIP/7003,30)
same => n,hangup()