Разработчик и интегратор VoIP решений
Работаем по всей России и СНГ
Заказать звонок

Техническая база знаний

Cisco CP-7940G

  • Телефон настраивается только через конфигурационные файлы, загружаемые через TFTP
  • Имеет терминальный интерфейс, доступный по telnet, стандартный пароль `cisco`
  • По-умолчанию работает по протоколу SCCP, необходимо перепрошивать через TFTP, чтобы телефон работал по протоколу SIP.
  • Прошивка, на которой телефон корректно работает по SIP P0S3-8-12-00.

Команды терминального интерфейса

Команда Действие
reset Перезагружает телефонный аппарат
show config Отображает текущую конфигурацию
Общий конфигурационный файл SIPDefault.cnf​:
# SIP Default Generic Configuration File
 
# SIP Default Configuration File
 
messages_uri:  "1000"
 
# Image Version
image_version: P0S3-8-12-00
 
# Proxy Server
proxy1_address: "192.168.0.1"      ; 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: 5060
proxy2_port: 5060
proxy3_port: 5060
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: 180
 
# Codec for media stream (g711ulaw (default), g711alaw, g729a)
preferred_codec: g711alaw
 
# TOS bits in media stream [0-5] (Default - 5)
tos_media: 5
 
# Inband DTMF Settings (0-disable, 1-enable (default))
dtmf_inband: 0
 
# 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.168.0.1"                 ; SNTP Server IP Address
sntp_mode: unicast    ; unicast, multicast, anycast, or directedbroadcast (default)
time_zone: "BT"                  ; Time Zone Phone is in
dst_offset: 0                   ; Offset from Phone's time when DST is in effect
dst_start_month: Mar            ; 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: 8      ; 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: 0
dst_stop_autoadjust : 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                         ; Default 1
 
####### New Parameters added in Release 2.1 #######
 
# Backup Proxy Support
proxy_backup: ""                ; Dotted IP of Backup Proxy
proxy_backup_port: 5060         ; 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: 0                   ; 0-Disabled (default), 1-Enabled
nat_address: ""                 ; WAN IP address of NAT box (dotted IP or DNS A record only)
voip_control_port: 5060         ; 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: 0      ; 0-Disabled (default), 1-Enabled
 
# Outbound Proxy Support
outbound_proxy: "10.139.0.5"      ; restricted to dotted IP or DNS A record only
outbound_proxy_port: 5060       ; 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: ""                ; URL for external Phone Services
directory_url: ""               ; URL for external Directory location
logo_url: ""                    ; 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
Персональный конфигурационный файл SIP001DA23F3042.cnf:
# Cisco SIP 7940 Configuration
 
phone_label: "101"
 
line1_name: "101"
line1_shortname: "101"
line1_displayname: "101"
line1_password: "password"
line1_authname: "101"
line2_name: ""
line2_shortname: ""
line2_displayname: ""
line2_password: ""
line2_authname: ""
time_zone: "BT"
dst_auto_adjust: 0
dst_stop_autoadjust : 1
# Codec for media stream (g711ulaw (default), g711alaw, g729)
preferred_codec: "g711alaw"
 
# Inband DTMF Settings (0-disable, 1-enable (default))
dtmf_inband: "0"
 
# Out of band DTMF Settings (none - disable, avt - avt enable (default), avt_always - always avt )
dtmf_outofband: "avt"

Настройка времени

Конфигурация:

time_zone : BT
dst_auto_adjust: 0
dst_stop_autoadjust : 1

Список доступных часовых поясов:

Аббревиатура GMT offset Города Название часового пояса
IDL GMT-12:00 Eniwetok IDL (International Date Line),
IDLW (International Date Line West)
NT GMT-11:00 Midway BT (Bering Time), NT (Nome Time)
AHST GMT-10:00 Hawaii AHST (Alaska-Hawaii Standard Time),
HST (Hawaiian Standard Time),
CAT (Central Alaska Time)
IMT GMT-09:30 Isle Marquises Isle Marquises
YST GMT-09:00 Yukon YST (Yukon Standard Time)
PST GMT-08:00 Los Angeles PST (Pacific Standard Time)
MST GMT-07:00 Phoenix MST (Mountain Standard Time),
PDT (Pacific Daylight Time)
CST GMT-06:00 Dallas, Mexico City CST (Central Standard Time),
MDT (Mountain Daylight Time),
Chicago
EST GMT-05:00 New York EST (Eastern Standard Time),
CDT (Central Daylight Time),
NYC
AST GMT-04:00 La Paz AST (Atlantic Standard Time),
EDT (Eastern Daylight Time)
NST GMT-03:30 Newfoundland NST (Newfoundland Standard Time)
BST GMT-03:00 Buenos Aires BST (Brazil Standard Time),
ADT (Atlantic Daylight Time),
GST (Greenland Standard Time)
AT GMT-02:00 Mid-Atlantic AT (Azores Time)
WAT GMT-01:00 Azores WAT (West Africa Time)
GMT GMT-00:00 London GMT (Greenwich Mean Time),
WET (Western European Time),
UT (Universal Time)
CET GMT+01:00 Paris CET (Central European Time),
MET (Middle European Time),
BST (British Summer Time),
MEWT (Middle European Winter Time),
SWT (Swedish Winter Time),
FWT (French Winter Time)
EET GMT+02:00 Athens, Rome EET (Eastern European Time),
USSR-zone1,
MEST (Middle European Summer Time),
FST (French Summer Time)
BT GMT+03:00 Baghdad, Moscow BT (Baghdad Time), USSR-zone2
IT GMT+03:30 Tehran IT (Iran Time)
ZP4 GMT+04:00 Abu Dhabi USSR-zone3,
ZP4 (GMT Plus 4 Hours)
AFG GMT+04:30 Kabul Afghanistan
ZP5 GMT+05:00 Islamabad USSR-zone4,
ZP5 (GMT Plus 5 Hours)
IST GMT+05:30 Bombay, Delhi IST (Indian Standard Time)
ZP6 GMT+06:00 Colombo USSR-zone5,
ZP6 (GMT Plus 6 Hours)
SUM GMT+06:30 North Sumatra NST (North Sumatra Time)
WAST GMT+07:00 Bangkok, Hanoi SST (South Sumatra Time),
USSR-zone6, 
WAST (West Australian Standard Time)
HST GMT+08:00 Beijing, Hong Kong CCT (China Coast Time),
HST (Hong Kong Standard Time), USSR-zone7,
WADT (West Australian Daylight Time)
JST GMT+09:00 Tokyo, Seoul JST (Japan Standard Time/Tokyo),
KST (Korean Standard Time),
SSR-zone8
CAST GMT+09:30 Darwin SAST (South Australian Standard Time),
CAST (Central Australian Standard Time)
EAST GMT+10:00 Brisbane, Guam GST (Guam Standard Time),
USSR-zone9,
EAST (East Australian Standard Time)
EADT GMT+11:00 Solomon Islands USSR-zone10,
EADT (East Australian Daylight Time)
NZST GMT+12:00 Auckland NZT (New Zealand Time/Auckland),
NZST (New Zealand Standard Time),
IDLE (International Date Line East)