root/trunk/op_buttons.cfg

Revision 74, 7.1 kB (checked in by root, 7 months ago)

Fix regexp sample in op_buttons.cfg

Line 
1 [SIP/10]              ; Channel name
2 Position=1            ; Button number in the console
3 Label="10 Fax"        ; Text label for the button
4 Extension=10          ; Extension to reach that channel
5 Context=sip           ; Context where that extension is defined
6 Mailbox=10@sip        ; The voicemail mailbox to monitor
7 Icon=1                ; There are 6 icons available
8 Url=http://www.asternic.org  ; Optional, add link to button label
9 Target=_new                  ; Optional, open link in this target
10 No_Rectangle=0        ; Optional: If enabled, it will not draw the button
11                       ; rectangle, only the icons inside
12 Background=bg.jpg     ; Optional: it will load that jpg as the button
13                       ; background. It should match the size as specified
14                       ; in op_style.cfg btn_width and btn_height.
15 VoiceMailExt=910@vm   ; extension@context to use for transferring a call
16                       ; directly to voicemail
17 Privacy=false         ; if set to true, it will hide callerid info for
18                       ; the button
19 GroupCount=1          ; Will show number of channels in use instead of clid
20 Astdbkey=10           ; If using astdb functions, enable it for this button
21                       ; using the key provided
22 SpyExt=20@spy
23
24 [SIP/11]
25 Position=n            ; Position 'n' will be the next available
26 Label="Multiline%0aLabel"  ; %0a is the new line character
27 Extension=11
28 Context=sip
29 Icon=1
30 Server=1              ; If you omit the Server, it will default to 1
31
32 [SIP/12]
33 Position=n
34 Label="12 Ernest"
35 Extension=11
36 Context=sip
37 Icon=1
38 Server=2            ; If you monitor more than one server change this
39
40 [_SIP/.*]           ; You can use REGEXP. Prefix the button with an
41 Position=1,2        ; underscore followed by your expression
42                     ; (you cannot use & and = as they are reserved)
43 Label="SIP Guest"
44 Extension=-1        ; If set to -1 you will not be able to transfer
45                     ; to this button
46 Context=internos
47 Icon=1
48
49 [PARK/701]
50 Position=17
51 Icon=3
52 Extension=700
53 Label="Park 701"
54
55 [SIP/16]
56 Position=6
57 Label="16 Nicolás"       ; you can use unicode for extended characters
58 Extension=16
59 Context=internos
60 Icon=1
61 Mailbox=16@internos
62
63 [CAPI[contr1/NNNNNNNNN]] ; where NNNN is the ISDN number. If you
64 Position=22,23             ; specify more than one position, the button
65                          ; will be considered a 'trunk', each call will be
66                          ; displayed in a separate button
67 Label="External CAPI"       
68 Extension=-1
69 Context=in-extern
70 Icon=4
71
72 [SIP/17]
73 Position=7
74 Label="17 Martin"
75 Extension=17
76 Context=internos
77 Icon=1
78 Mailbox=17@internos
79
80 [IAX2/3002]
81 Position=3
82 Label="3002 IAX Client"
83 Extension=3002
84 Context=iaxcontext
85 Icon=1
86
87 [901]                ; Meetme must be defined by its room number
88 Position=8
89 Label="Meetme 901"
90 Extension=901
91 Context=conferences
92 Icon=5
93
94 [902]
95 Position=9
96 Label="Meetme 902"
97 Extension=902
98 Icon=5
99
100 [Zap/1]
101 Position=10
102 Label="External 1"
103 Extension=-1
104 Icon=2
105
106 [Zap/2]
107 Position=11
108 Label="External 2"
109 Extension=-1
110 Icon=2
111
112 [QUEUE/SALES]                 ; queues must be defined by its name
113 Position=12
114 Label="Sales Queue"
115 Extension=-1            ; -1 to disable transfers to this button
116 Icon=3
117 Alarm=30^alarm.php?queue=sales^_new^   ; Timer Alarm. If timer reachs 30 seconds, open/popup alarm.php in _new target
118
119 [QUEUE/SUPPORT]
120 Position=13-18          ; each position will be used by users waiting
121                         ; on that position number
122 Label="Support Queue"
123 Extension=-1            ; -1 to disable transfers to this button
124 Icon=3
125
126 [Local/5555555@sip]
127 Position=26
128 Label="Speed Dial"
129 Extension=5555555
130 Context=sip
131 Icon=2
132
133 [IAX2/iaxtel]
134 Position=15,16
135 Label="Iaxtel"
136 Extension=-1
137 Icon=2
138
139 [SIP/provider]
140 Position=20
141 Label=Sip Provider
142 Extension=-1
143 Icon=2
144
145
146
147 ; buttons with panel context will be displayed in their
148 ; own panel, you have to append ?context=NAME when loading
149 ; the swf file
150 ;
151 ;[IAX2/iaxtel]
152 ;Position=15,16
153 ;Label="Iaxtel"
154 ;Extension=-1
155 ;Icon=2
156 ;Panel_context=sip     
157
158 ; You can draw rectangles anywhere in the screen. The canvas sixe is 996x600
159 ;
160
161 [rectangle]
162 x=748
163 y=35
164 width=252
165 height=370
166 line_width=3
167 line_color=ffff10
168 fade_color1=ffff10
169 fade_color2=ffff3F
170 rnd_border=2
171 alpha=30
172 layer=top       ; top    = above buttons
173                 ; bottom = below buttons
174
175 [rectangle]
176 x=498
177 y=35
178 width=252
179 height=220
180 line_width=3
181 line_color=ff1010
182 fade_color1=ff1010
183 fade_color2=a01000
184 rnd_border=2
185 alpha=20
186 layer=top
187 panel_context=*   ; The item will be persistant across contexts
188
189 [rectangle]
190 x=498
191 y=255
192 width=252
193 height=295
194 line_width=3
195 line_color=10ff10
196 fade_color1=10ff10
197 fade_color2=10ff00
198 rnd_border=2
199 alpha=20
200 layer=top
201
202 [rectangle]
203 x=-1
204 y=35
205 width=502
206 height=515
207 line_width=3
208 line_color=1010ff
209 fade_color1=1010ff
210 fade_color2=1010ff
211 rnd_border=2
212 alpha=10
213 layer=top
214
215 ; you can include configuration files
216 ;
217 ;include => more_rectangles.cfg
218
219 [LEGEND]
220 x=800
221 y=50
222 text=Zap Lines
223 font_size=32
224 font_color=000000
225 font_family=Times New Roman  ; only used when use_embed_fonts=0
226 use_embed_fonts=1            ; if set to 1 it will use an embeded Arial type font
227                              ; that looks consistently between platforms/os
228
229 [LEGEND]
230 x=535
231 y=50
232 text=Conferences
233 font_size=32
234 font_color=FF0000
235 font_family=Arial
236 use_embed_fonts=1
237
238 [LEGEND]
239 x=555
240 y=270
241 text=Queues
242 font_size=32
243 font_color=000000
244 font_family=Arial
245 use_embed_fonts=1
246
247 [LEGEND]
248 x=160
249 y=40
250 text=Extensions
251 font_color=000000
252 font_size=32
253 font_family=Arial   
254 use_embed_fonts=1
255
256 [LEGEND]
257 x=75
258 y=75
259 text=Local
260 font_size=24
261 font_family=Arial   
262 font_color=000000
263 use_embed_fonts=1
264
265 [LEGEND]
266 x=315
267 y=75
268 text=Remote
269 font_color=000000
270 font_size=24
271 font_family=Arial
272 use_embed_fonts=1
273
274 [IMAGE]
275 src=logo.jpg
276 x=30
277 y=30
278
279
280
281 # The entry below will create ONE button
282 # showing the number of ZAP channels used
283 # for an E1 trunk (zap/1 to zap/31
284 #
285 # Interesting bits: regexp, groupcount, and count
286 #
287 # groupcount will count number of channels used
288 # count will set and limit the number of sessions matched
289 ;[_Zap\/(\d$|1\d$|2\d$|3[01]$)]
290 ;Position=70
291 ;Count=31
292 ;Label=Trama 1
293 ;Icon=2
294 ;groupcount=1
295
296
297 # The following entry same as above but
298 # for 2nd E1 line (zap/32 to zap/62)
299 ;[_Zap\/(3[2-9]$|4\d$|5\d$|6[012]$)]
300 ;Position=71
301 ;Count=31
302 ;Label=Trama 2
303 ;Icon=2
304 ;groupcount=1
305
306
307 ;include => more_legends.cfg
308
309 # Experimental auto_sip buttons:
310 # they match any sip peers as de regexp
311 # and fill all matching peers starting
312 # at position 'Starting_Position' and
313 # substitutes variables found in
314 # the sip peer entry
315 #
316 #[AUTO/SIP/1.$]  ; matches SIP/1X
317 #Context = ${CONTEXT}
318 #Extension= ${CHANNEL}
319 #Label = ${CHANNEL}
320 #Icon = 1
321 #Starting_Position=1
322 #Server=1
323 #Panel_Context=auto
324
325 #[AUTO/SIP/.*] ; matches SIP/*
326 #Context=${CONTEXT}
327 #Extension=${ACCOUNTCODE}
328 #Mailbox=${VOICEMAILBOX}
329 #Label=${CHANNEL}
330 #Icon=1
331 #Accountcode=${ACCOUNTCODE}
332 #Starting_Position=20
333 #Server=2
334 #Panel_Context=auto
335
336 # Variables for AUTO/SIP buttons:
337 #
338 # ${CONTEXT} sip context
339 # ${CALLERID} full callerid (eg: john <12>)
340 # ${CLIDNUM} callerid number (eg: 12)
341 # ${CLIDNAME} callerid name (eg: john)
342 # ${VOICEMAILBOX} full voicemailbox (eg: 12@default)
343 # ${VOICEMAILBOXNUM} voicemailbox number (eg: 12)
344 # ${VOICEMAILBOXCONTEXT} voicemailbox context (eg: default)
345 # ${ACCOUNTCODE} accountcode
346 # ${CHANNEL} channel name without "SIP/"
347
Note: See TracBrowser for help on using the browser.