Cisco 7940 oder 7960 an der Fritzbox

Benötigt werden

  • Eine Fritzbox die mit IP-Telefonie (VoIP) umgehen kann.
  • Ein Cisco IP-Telefon 7940 oder 7960
  • Ein TFTP Server.
  • Eine SIP-Firmware von Cisco. z.B. P0S3-08-12-00 (Zu beziehen bei Cisco oder hier.)

Installation und Konfiguration von TFTP DNSMasq unter Linux

Installation

apt-get update
apt-get install dnsmasq

TFTP-Verzeichnis anlegen

mkdir/var/lib/tftpboot

Konfiguration:

vim /etc/dnsmasq.conf

dhcp-range=[IP des Sub-Netzes],proxy
dhcp-boot=pxelinux.0,[IP des TFTP Servers],[IP des Sub-Netzes]
pxe-service=x86PC,"Netzwerk Boot",pxelinux
enable-tftp
tftp-root=/var/lib/tftpboot

Beispiel:

dhcp-range=192.168.110.0,proxy
dhcp-boot=pxelinux.0,192.168.110.5, 192.168.110.0
pxe-service=x86PC,"Netzwerk Boot",pxelinux
enable-tftp
tftp-root=/var/lib/tftpboot

DNSMasq neu starten

service dnsmasq restart bzw. /etc/init.d/dnsmasq restart

 


Konfiguration Telefon

  • Die Datei P0S3-08-12-00.zip entpacken.
    Folgende Dateien sind enthalten:

    OS79XX.TXT
    P0S3-8-12-00.loads
    P0S3-8-12-00.sb2
    P003-8-12-00.bin
    P003-8-12-00.sbn
    XMLDefault.cnf.xml

Die Dateien SIPDefault.cnf und SIP[MAC-Adress].cnf (Beispiel: SIP001790D02EAF.cnf) müssen angelegt und wie folgt konfiguriert werden. In SIPDefault.cnf werden die Parameter konfiguriert die für alle Telefone gültig sind, in der Datei SIP[MAC-Adress].cnf werden die Parameter für das jeweilige Telefon konfiguriert. Eine SIP[MAC-Adress].cnf muss für jedes Telefon angelegt werden.

# SIP Default Generic Configuration File
# Image Version
#image_version: P0S3-8-12-00

# Proxy Server
proxy1_address: "" ; Can be dotted IP or FQDN
proxy2_address: "" ; Can be dotted IP or FQDN
proxy3_address: "" ; Can be dotted IP or FQDN
proxy4_address: "" ; Can be dotted IP or FQDN
proxy5_address: "" ; Can be dotted IP or FQDN
proxy6_address: "" ; Can be dotted IP or FQDN

# Proxy Server Port (default - 5060)
proxy1_port: 5061
proxy2_port: 5062
proxy3_port: 5063
proxy4_port: 5060
proxy5_port: 5060
proxy6_port: 5060

# Proxy Registration (0-disable (default), 1-enable)
proxy_register: 1

# Phone Registration Expiration [1-3932100 sec] (Default - 3600)
timer_register_expires: "3600"

# Codec for media stream (g711ulaw (default), g711alaw, g729a)
preferred_codec: g711ulaw

# TOS bits in media stream [0-5] (Default - 5)
tos_media: 5

# Inband DTMF Settings (0-disable, 1-enable (default))
dtmf_inband: 1

# Out of band DTMF Settings (none-disable, avt-avt enable (default), avt_always - always avt )
dtmf_outofband: avt

# DTMF dB Level Settings (1-6dB down, 2-3db down, 3-nominal (default), 4-3db up, 5-6dB up)
dtmf_db_level: 3

# SIP Timers
timer_t1: 500 ; Default 500 msec

timer_t2: 4000 ; Default 4 sec
sip_retx: 10 ; Default 10

sip_invite_retx: 6 ; Default 6
timer_invite_expires: 180 ; Default 180 sec

####### New Parameters added in Release 2.0 #######

# Dialplan template (.xml format file relative to the TFTP root directory)
dial_template: dialplan

# TFTP Phone Specific Configuration File Directory
tftp_cfg_dir: "" ; Example: ./sip_phone/

# Time Server (There are multiple values and configurations refer to Admin Guide for Specifics)
sntp_server: "192.53.103.104" ; SNTP Server IP Address
sntp_mode: unicast ; unicast, multicast, anycast, or directedbroadcast (default)
time_zone: CET ; Time Zone Phone is in
dst_offset: 1 ; Offset from Phone's time when DST is in effect
dst_start_month: April ; Month in which DST starts
dst_start_day: "" ; Day of month in which DST starts
dst_start_day_of_week: Sun ; Day of week in which DST starts
dst_start_week_of_month: 1 ; Week of month in which DST starts
dst_start_time: 02 ; Time of day in which DST starts
dst_stop_month: Oct ; Month in which DST stops
dst_stop_day: "" ; Day of month in which DST stops
dst_stop_day_of_week: Sunday ; Day of week in which DST stops
dst_stop_week_of_month: 8 ; Week of month in which DST stops 8=last week of month
dst_stop_time: 2 ; Time of day in which DST stops
dst_auto_adjust: 1 ; Enable(1-Default)/Disable(0) DST automatic adjustment
time_format_24hr: 1 ; Enable(1 - 24Hr Default)/Disable(0 - 12Hr)
date_format: D/M/Y

#Do Not Disturb Control (0-off, 1-on, 2-off with no user control, 3-on with no user control)
dnd_control: 0                  ; Default 0 (Do Not Disturb feature is off)

# Caller ID Blocking (0-disbaled, 1-enabled, 2-disabled no user control, 3-enabled no user control)
callerid_blocking: 0            ; Default 0 (Disable sending all calls as anonymous)

# Anonymous Call Blocking (0-disabled, 1-enabled, 2-disabled no user control, 3-enabled no user control)
anonymous_call_block: 0         ; Default 0 (Disable blocking of anonymous calls)

# DTMF AVT Payload (Dynamic payload range for AVT tones - 96-127)
dtmf_avt_payload: 101           ; Default 101

# Sync value of the phone used for remote reset
sync: 1

####### New Parameters added in Release 2.1 #######
 
# Backup Proxy Support
proxy_backup: ""                    ; Dotted IP of Backup Proxy
proxy_backup_port: 5061             ; Backup Proxy port (default is 5060)

# Emergency Proxy Support
proxy_emergency: ""                 ; Dotted IP of Emergency Proxy
proxy_emergency_port: 5060          ; Emergency Proxy port (default is 5060)

Configurable VAD option
enable_vad: 0                       ; VAD setting 0-disable (Default), 1-enable

####### New Parameters added in Release 2.2 ######

# NAT/Firewall Traversal
nat_enable: 1                      ; 0-Disabled (default), 1-Enabled
nat_address: "hostname.dyndns.org" ; WAN IP address of NAT box (dotted IP or DNS A record only)
voip_control_port: 5061            ; UDP port used for SIP messages (default - 5060)
start_media_port: 16384            ; Start RTP range for media (default - 16384)
end_media_port: 32766              ; End RTP range for media (default - 32766)
nat_received_processing: 1         ; 0-Disabled (default), 1-Enabled

# Outbound Proxy Support
outbound_proxy: ""                 ; restricted to dotted IP or DNS A record only
outbound_proxy_port: 5061          ; default is 5060

####### New Parameter added in Release 3.0 #######

# Allow for the bridge on a 3way call to join remaining parties upon hangup
cnf_join_enable : 1                ; 0-Disabled, 1-Enabled (default)

####### New Parameters added in Release 3.1 #######

# Allow Transfer to be completed while target phone is still ringing
semi_attended_transfer: 1       ; 0-Disabled, 1-Enabled (default)

# Telnet Level (enable or disable the ability to telnet into the phone)
telnet_level: 2                 ; 0-Disabled (default), 1-Enabled, 2-Privileged

####### New Parameters added in Release 4.0 #######

# XML URLs
#services_url: ""http://phone-xml.berbee.com/menu.xml"" ; URL for external Phone Services
#directory_url: "http://192.168.110.6/Directory.xml" ; URL for external Directory location
logo_url: "http://192.168.110.6/logo.bmp" ; URL for branding logo #to be used on phone display

# HTTP Proxy Support
http_proxy_addr: ""             ; Address of HTTP Proxy server
http_proxy_port: 80             ; Port of HTTP Proxy Server (80-default)

# Dynamic DNS/TFTP Support
dyn_dns_addr_1: ""              ; restricted to dotted IP
dyn_dns_addr_2: ""              ; restricted to dotted IP
dyn_tftp_addr: ""               ; restricted to dotted IP

# Remote Party ID
remote_party_id: 0              ; 0-Disabled (default), 1-Enabled

####### New Parameters added in Release 4.4 #######
 
# Call Hold Ringback (0-off, 1-on, 2-off with no user control, 3-on with no user control)
call_hold_ringback: 0           ; Default 0 (Call Hold Ringback feature is off)

####### New Parameters added in Release 6.0 #######

# Dialtone Stutter for MWI
stutter_msg_waiting: 0          ; 0-Disabled (default), 1-Enabled

# RTP Call Statistics (SIP BYE/200 OK message exchange)
call_stats: 0                   ; 0-Disabled (default), 1-Enabled

# Belegt den Voice-Mail Button mit der Nummer für den AB
messages_uri: "**600"

# SIP Configuration Generic File (start)
# CISCO 7960G Beispiel Konfiguration für FritzBox 7170
# An den Stellen wo "FritzBox IP" steht muss die IP Adresse der FritzBox eingetragen werden
# An den Stellen wo "Webserver IP" steht muss die IP Adresse eines Webserver mit XML Service eingetragen werden
# Wird diese Funktionalität nicht genutzt, bitte auskommentiert lassen
#
# Proxy Server
proxy1_address: "192.168.110.1" ; IP der Fritzbox
proxy2_address: ""
proxy3_address: ""
proxy4_address: ""
proxy5_address: ""
proxy6_address: ""

# Line 1 Settings
line1_name: "620"                  ; Line 1 Extension\User ID des Telefons in der FB
line1_displayname: "JohnDoe“       ; Line 1 Display Name
line1_shortname: "John"            ; Line 1 Shortname Diplsy Lable
line1_authname: "620"              ; Line 1 Registration Authentication
line1_password: "Geheim"           ; Line 1 Registration Password

# Line 2 Settings
line2_name: ""                      ; Line 2 Extension\User ID
line2_displayname: ""               ; Line 2 Display Name
line2_authname: ""                  ; Line 2 Registration Authentication
line2_password: ""                  ; Line 2 Registration Password

# Emergency Proxy info
proxy_emergency: "sipgate.de"         ; Beispiel
proxy_emergency_port: "5060"

# Backup Proxy info
#proxy_backup: ""
#proxy_backup_port: "5060"

# Outbound Proxy info
outbound_proxy: "192.168.110.1"       ;Fritzbox IP    
outbound_proxy_port: "5060"

# Test
# Proxy Registration (0-disable (default), 1-enable)
proxy_register: "1"
 
# NAT/Firewall Traversal
nat_enable: "1"
#nat_address: "FritzBox IP"
#voip_control_port: "5060"
#start_media_port: "16384"
#end_media_port:  "32766"
#nat_received_processing: "1"

# Phone Label (Text desired to be displayed in upper right corner)
phone_label: "Office"            ; Has no effect on SIP messaging

# Time Zone phone will reside in
time_zone: CET                  ; Enter your timezone

# Telnet Level (enable or disable the ability to telnet into this phone
#telnet_level: "2"      ; 0-Disabled (default), 1-Enabled, 2-Privileged

# Phone prompt/password for telnet/console session
#phone_prompt: "password"                              ; Telnet/Console Prompt
#phone_password: "gehiem  "                            ; Telnet/Console Password

# Enable_VAD (1-enabled, 0-disabled)
enable_vad: "0"

# Network Media Type (auto, full100, full10, half100, half10)
network_media_type: "auto"
user_info: phone

# URL for external Directory location
#logo_url: "http://Webserver IP/background.bmp"  ; URL for branding logo to be used on phone display

# SIP Configuration Generic File (stop)

Alle Dateien jetzt in das TFTP Verzeichnis kopieren und das Telefon ausstecken.
Die Taste # gedrückt halten und das Telefon wieder Einstecken.
Die Tasten „Headset“, „Mute“ und „Speaker“ beginnen zu blinken.
Die Tasten „123456789*0#“ nacheinander drücken, die Frage
„Keep network cfg? 1 = yes, 2 = no, mit drücken der Taste 2 beantworten und die neue Firmware und Konfiguration wird heruntergeladen.
Das Telefon bootet neu und registriert sich an der Fritzbox.

Eigene Klingeltöne für Cisco IP Telefone

Falls man sich andere Klngeltöne für das Telefon wünscht, kann man eigen Klingeltöne installieren.
Hierzu kommt wieder der TFTP-Server zum Einsatz. Einfach die Klingeltöne, die im Format "raw" oder "pcm" vorliegen müssen, in das "tftpboot" Verzeichnis auf dem TFTP-Server kopieren und eine Datei mit Namen "RINGLIST.DAT" erstellen. Diese muss wie folgt aussehen und ebenfalls im "tftpboot" Verzeichnis abgelegt werden.

#Name             #Dateiname
Ringer1           ringer1.pcm

Ringer2           ringer2.pcm
Saxophone         Sax1.raw

Jetzt das Telefon mit der Tastenkombination *+6+"Settings" neu starten.
Die Dateien werden jetzt auf das Telefon übertragen und können nun unter "Settings -> RingType" ausgewählt werden.