forked from wifreaks/PJSIP-Movistar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extensions.conf
123 lines (103 loc) · 4.8 KB
/
extensions.conf
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[general]
autofallthrough=yes
extenpatternmatchnew=yes
clearglobalvars=yes
[from-movistar]
exten => 999999999,1,Goto(home,11,1)
[home]
exten => _[67]XXXXXXXX,1,Goto(moviles,${EXTEN},1)
exten => _[89]XXXXXXXX,1,Goto(fijo,${EXTEN},1)
exten => 112,1,Goto(emergencias,${EXTEN},1)
exten => _[118]XX,1,Goto(informacion,${EXTEN},1)
exten => _[0]XX,1,Goto(info-ciudadana,${EXTEN},1)
exten => _[100]X,1,Goto(operadoras-movistar,${EXTEN},1)
;exten => _[13]XX,1,Goto(operadoras,${EXTEN},1)
;exten => _[14]XX,1,Goto(operadoras,${EXTEN},1)
;exten => _[15]XX,1,Goto(operadoras,${EXTEN},1)
;exten => _[16]XX,1,Goto(operadoras,${EXTEN},1)
;exten => _[17]XX,1,Goto(operadoras,${EXTEN},1)
;exten => _[116]XXX,1,Goto(infancia,${EXTEN},1)
exten => 11,1,NoOP(Incoming from Movistar)
same => n,Dial(PJSIP/100&PJSIP/101&PJSIP/102&PJSIP/103&PJSIP/104,60)
same => n,Hangup
exten => 100,1,NoOP(Call for Ext.100)
same => n,Dial(PJSIP/100)
same => n,Hangup
exten => 101,1,NoOP(Call for Ext.101)
same => n,Dial(PJSIP/101)
same => n,Hangup
[moviles]
exten => _[67]XXXXXXXX,1,NoOP(Llamadas a moviles)
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)
[fijo]
exten => _[89]XXXXXXXX,1,NoOP(Llamadas a Fijo y 80X - 90X)
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)
[informacion]
exten => _[118]XX,1,NoOP(Llamadas a numeros de informacion de directorio)
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)
[emergencias]
exten => 112,1,NoOP(Llamadas a Emergencias)
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)
[infancia]
exten => _[116]XXX,1,NoOP(Llamadas a atencion a la infancia y niños desaparecidos)
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)
[info-ciudadana]
exten => _[0]XX,1,NoOP(Llamadas a numeros de atencion e informacion ciudadana)
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)
[operadoras-movistar]
exten => _[100]X,1,NoOP(Llamadas a Movistar)
;exten => _[13]XX,1,NoOP(Llamadas a )
;exten => _[14]XX,1,NoOP(Llamadas a atencion al cliente Orange)
;exten => _[15]XX,1,NoOP(Llamadas a atencion al cliente Jazztel)
;exten => _[16]XX,1,NoOP(Llamadas a )
;exten => _[17]XX,1,NoOP(Llamadas a )
same => n,Set(CALLERID(all)=999999999 <999999999>)
same => n,NoOp(CALLERID(all))
;same => n,set(calltime=${STRFTIME(${EPOCH},,%C%y-%m-%d+%H:%M:%S)})
;same => n,MixMonitor(/var/lib/asterisk/recordings/inside/${calltime}.-.${CALLERID(num)}-${EXTEN}.wav,b)
same => n,DBdeltree(lastcallerout)
same => n,set(DB(lastcallerout/lastcallerout)=${EXTEN})
same => n,Dial(PJSIP/Movistar_endpoint/sip:${EXTEN}@telefonica.net:5070,60)
same => n,1,Hangup(21)