[SIP/10]              ; Channel name
Position=1            ; Button number in the console
Label="10 Fax"        ; Text label for the button
Extension=10          ; Extension to reach that channel
Context=sip           ; Context where that extension is defined
Mailbox=10@sip        ; The voicemail mailbox to monitor
Icon=1                ; There are 6 icons available
Url=http://www.asternic.org  ; Optional, add link to button label
Target=_new                  ; Optional, open link in this target
No_Rectangle=0        ; Optional: If enabled, it will not draw the button
                      ; rectangle, only the icons inside
Background=bg.jpg     ; Optional: it will load that jpg as the button 
                      ; background. It should match the size as specified
                      ; in op_style.cfg btn_width and btn_height.
VoiceMailExt=910@vm   ; extension@context to use for transferring a call
                      ; directly to voicemail
Privacy=false         ; if set to true, it will hide callerid info for
                      ; the button
GroupCount=1          ; Will show number of channels in use instead of clid
Astdbkey=10           ; If using astdb functions, enable it for this button
                      ; using the key provided
SpyExt=20@spy

[SIP/11]
Position=n            ; Position 'n' will be the next available
Label="Multiline%0aLabel"  ; %0a is the new line character
Extension=11
Context=sip
Icon=1
Server=1              ; If you omit the Server, it will default to 1

[SIP/12]
Position=n
Label="12 Ernest"
Extension=11
Context=sip
Icon=1
Server=2            ; If you monitor more than one server change this

[_SIP/.*]           ; You can use REGEXP. Prefix the button with an
Position=1,2        ; underscore followed by your expression
                    ; (you cannot use & and = as they are reserved)
Label="SIP Guest"
Extension=-1        ; If set to -1 you will not be able to transfer
                    ; to this button
Context=internos
Icon=1

[PARK/701]
Position=17
Icon=3
Extension=700
Label="Park 701"

[SIP/16]
Position=6
Label="16 Nicolás"       ; you can use unicode for extended characters
Extension=16
Context=internos
Icon=1
Mailbox=16@internos

[CAPI[contr1/NNNNNNNNN]] ; where NNNN is the ISDN number. If you
Position=22,23             ; specify more than one position, the button
                         ; will be considered a 'trunk', each call will be
                         ; displayed in a separate button
Label="External CAPI"        
Extension=-1
Context=in-extern
Icon=4 

[SIP/17]
Position=7
Label="17 Martin"
Extension=17
Context=internos
Icon=1
Mailbox=17@internos

[IAX2/3002]
Position=3
Label="3002 IAX Client"
Extension=3002
Context=iaxcontext
Icon=1

[901]                ; Meetme must be defined by its room number
Position=8
Label="Meetme 901"
Extension=901
Context=conferences
Icon=5

[902]
Position=9
Label="Meetme 902"
Extension=902
Icon=5

[Zap/1]
Position=10
Label="External 1"
Extension=-1
Icon=2

[Zap/2]
Position=11
Label="External 2"
Extension=-1
Icon=2

[QUEUE/SALES]                 ; queues must be defined by its name
Position=12
Label="Sales Queue"
Extension=-1            ; -1 to disable transfers to this button
Icon=3
Alarm=30^alarm.php?queue=sales^_new^   ; Timer Alarm. If timer reachs 30 seconds, open/popup alarm.php in _new target

[QUEUE/SUPPORT]
Position=13-18          ; each position will be used by users waiting
                        ; on that position number
Label="Support Queue"
Extension=-1            ; -1 to disable transfers to this button
Icon=3

[Local/5555555@sip]
Position=26
Label="Speed Dial"
Extension=5555555
Context=sip
Icon=2

[IAX2/iaxtel]
Position=15,16
Label="Iaxtel"
Extension=-1
Icon=2

[SIP/provider]
Position=20
Label=Sip Provider
Extension=-1
Icon=2



; buttons with panel context will be displayed in their
; own panel, you have to append ?context=NAME when loading
; the swf file
;
;[IAX2/iaxtel]
;Position=15,16
;Label="Iaxtel"
;Extension=-1
;Icon=2
;Panel_context=sip      

; You can draw rectangles anywhere in the screen. The canvas sixe is 996x600
;

[rectangle]
x=748
y=35
width=252
height=370
line_width=3
line_color=ffff10
fade_color1=ffff10
fade_color2=ffff3F
rnd_border=2
alpha=30
layer=top       ; top    = above buttons
                ; bottom = below buttons

[rectangle]
x=498
y=35
width=252
height=220
line_width=3
line_color=ff1010
fade_color1=ff1010
fade_color2=a01000
rnd_border=2
alpha=20
layer=top
panel_context=*   ; The item will be persistant across contexts

[rectangle]
x=498
y=255
width=252
height=295
line_width=3
line_color=10ff10
fade_color1=10ff10
fade_color2=10ff00
rnd_border=2
alpha=20
layer=top

[rectangle]
x=-1
y=35
width=502
height=515
line_width=3
line_color=1010ff
fade_color1=1010ff
fade_color2=1010ff
rnd_border=2
alpha=10
layer=top

; you can include configuration files
;
;include => more_rectangles.cfg

[LEGEND]
x=800
y=50
text=Zap Lines
font_size=32
font_color=000000
font_family=Times New Roman  ; only used when use_embed_fonts=0
use_embed_fonts=1            ; if set to 1 it will use an embeded Arial type font
                             ; that looks consistently between platforms/os

[LEGEND]
x=535
y=50
text=Conferences
font_size=32
font_color=FF0000
font_family=Arial
use_embed_fonts=1

[LEGEND]
x=555
y=270
text=Queues
font_size=32
font_color=000000
font_family=Arial
use_embed_fonts=1

[LEGEND]
x=160
y=40
text=Extensions
font_color=000000
font_size=32
font_family=Arial    
use_embed_fonts=1

[LEGEND]
x=75
y=75
text=Local
font_size=24
font_family=Arial    
font_color=000000
use_embed_fonts=1

[LEGEND]
x=315
y=75
text=Remote
font_color=000000
font_size=24
font_family=Arial
use_embed_fonts=1

[IMAGE]
src=logo.jpg
x=30
y=30



# The entry below will create ONE button
# showing the number of ZAP channels used
# for an E1 trunk (zap/1 to zap/31
#
# Interesting bits: regexp, groupcount, and count
#
# groupcount will count number of channels used
# count will set and limit the number of sessions matched
;[_Zap\/(\d$|1\d$|2\d$|3[01]$)]
;Position=70
;Count=31
;Label=Trama 1
;Icon=2
;groupcount=1


# The following entry same as above but
# for 2nd E1 line (zap/32 to zap/62)
;[_Zap\/(3[2-9]$|4\d$|5\d$|6[012]$)]
;Position=71
;Count=31
;Label=Trama 2
;Icon=2
;groupcount=1


;include => more_legends.cfg

# Experimental auto_sip buttons:
# they match any sip peers as de regexp
# and fill all matching peers starting
# at position 'Starting_Position' and 
# substitutes variables found in
# the sip peer entry
#
#[AUTO/SIP/1.$]  ; matches SIP/1X
#Context = ${CONTEXT}
#Extension= ${CHANNEL}
#Label = ${CHANNEL}
#Icon = 1
#Starting_Position=1
#Server=1
#Panel_Context=auto

#[AUTO/SIP/.*] ; matches SIP/*
#Context=${CONTEXT}
#Extension=${ACCOUNTCODE}
#Mailbox=${VOICEMAILBOX}
#Label=${CHANNEL}
#Icon=1
#Accountcode=${ACCOUNTCODE}
#Starting_Position=20
#Server=2
#Panel_Context=auto

# Variables for AUTO/SIP buttons:
#
# ${CONTEXT} sip context 
# ${CALLERID} full callerid (eg: john <12>)
# ${CLIDNUM} callerid number (eg: 12)
# ${CLIDNAME} callerid name (eg: john)
# ${VOICEMAILBOX} full voicemailbox (eg: 12@default)
# ${VOICEMAILBOXNUM} voicemailbox number (eg: 12)
# ${VOICEMAILBOXCONTEXT} voicemailbox context (eg: default)
# ${ACCOUNTCODE} accountcode
# ${CHANNEL} channel name without "SIP/"

