Skip to content

Asterisk sccp.conf example

This page is part of my tutorial Cisco IP Phones on Asterisk with chan-sccp.

;===========================
; General definitions
;===========================

[general]
servername = Asterisk
keepalive = 60
debug = 1
context = phones
dateformat = D.M.YY
bindaddr = ::
port = 2000
disallow=all
allow=g722
allow=alaw
allow=ulaw
allow=g729
firstdigittimeout = 16
digittimeout = 8
autoanswer_ring_time = 1
autoanswer_tone = 0x32
remotehangup_tone = 0x32
transfer_tone = 0
transfer_on_hangup = off
dnd_tone = 0x0
simulate_enbloc = yes

callwaiting_tone = 0x2d
musicclass=default
language=de
deny=0.0.0.0/0.0.0.0
permit=internal                                         ; 'internal' is automatically converted to these private cidr address:
                                                        ; 127.0.0.0/255.0.0.0, 10.0.0.0/255.0.0.0,
                                                        ; 172.0.0.0/255.224.0.0, 192.168.0.0/255.255.0.0
;permit=192.168.1.0/255.255.255.0
localnet = internal                                     ; (MULTI-ENTRY) All RFC 1918 addresses are local networks, example '192.168.1.0/255.255.255.0'
;externip = 77.44.22.33                                 ; External IP Address of the firewall, required in case the PBX is running on a seperate host behind it. IP Address that we're going to notify in RTP media stream as the pbx source address.
dndFeature = on
sccp_tos = 0x68
sccp_cos = 4
audio_tos = 0xB8
audio_cos = 6
video_tos = 0x88
video_cos = 5
echocancel = on
silencesuppression = off
private = yes
callanswerorder=oldestfirst
mwilamp = on

;====================================
; Definitions
;====================================

;====================
; First phone
;====================

; !! REPLACE MAC ADDRESS HERE !!
[SEP00192FEEA4FC]
description = First
; !! CHANGE DEVICE TYPE ACCORDINGLY !!
devicetype = 7940
button = line,201
type = device
keepalive = 60
cfwdall = on
cfwdbusy = off
cfwdnoanswer = off
dnd = silent
directrtp = off
earlyrtp = progress
private = on
mwilamp = wink
transfer = on
park = on

;====================
; Line 200
;====================

[201]
id = 201
type = line
pin = 201
label = 201
description = 201
cid_name=First
cid_num=201
context = phones
incominglimit = 4
transfer = on
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
echocancel = on
silencesuppression = off