banaction = ufw
banaction_allports = ufw
[Definition]
failregex = .*NOTICE.* .*: Request '.*' from '.*' failed for '<HOST>:.*' .*- Failed to authenticate
.*NOTICE.* .*: Request '.*' from '.*' failed for '<HOST>:.*' .*- No matching endpoint found
ignoreregex =
[asterisk-full]
Included = true
enabled = true
port = 5060,5061
filter = asterisk
action = ufw
sendmail[name=ASTERISK, dest=<куда>, sender=<от_кого>]
maxretry = 4
logpath = /var/log/asterisk/full
findtime = 21600
bantime = 604800
;=========================================================================================
;
; general definitions
;
;=========================================================================================
[general]
servername = Asterisk PBX2
keepalive = 60
debug = 0
context = office ; default context
dateformat = D.M.Y
bindaddr = 0.0.0.0
port = 2000
disallow=all
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
callwaiting_tone = 0x2d
musicclass=default
language=en
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
private = on
callanswerorder=oldestfirst
hotline_enabled=yes ;can devices without configuration register
hotline_context=from-internal-xfer ; context for hotline
hotline_extension=911 ; extension will be dialed on offHook
;=========================================================================================
;
; actual definitions
;
;=========================================================================================
[SEPXXXXXXXXXXXX] ; MAC of 7937G
description = Where_Is_Your_Phone ;
devicetype = 7937
type = device
button = line, 2XXX ; Number of Phone
tzoffset = +0
transfer = on
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
[2XXX] ; Number of phone
id = 2XXX ; Number of Phone
type = line
label = Phone 2XXX
description = Line 2XXX
cid_name = scisco_loh ; caller id
cid_num = 2XXX ; caller id number
echocancel = off
context = office
transfer = on
vmnum = 600
trnsfvm = 1000
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=en
echocancel = on
silencesuppression = off