ВидеоКонф(ВКС)  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Cisco 7940 Unprovisioned

Вопросы по использованию и настройке IP телефонов, шлюзов и всего прочего

Модераторы: april22, Zavr2008

Cisco 7940 Unprovisioned

Сообщение elite128 » 15 сен 2014, 13:23

Добрый день

Где можно взять конфиг под SIP астериска для Cisco 7940? Прошил в P003-8-12-00, подключиться к астериску не получается
elite128
 
Сообщений: 13
Зарегистрирован: 28 фев 2012, 12:28

Re: Cisco 7940 Unprovisioned

Сообщение ded » 15 сен 2014, 13:40

ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco 7940 Unprovisioned

Сообщение elite128 » 15 сен 2014, 13:48

изучал, норм описания так и не нашел
во первых не везде 7940, во вторых разные форматы конфигов под разные прошивки sip (есть старый формат, есть новый)
elite128
 
Сообщений: 13
Зарегистрирован: 28 фев 2012, 12:28

Re: Cisco 7940 Unprovisioned

Сообщение ded » 15 сен 2014, 14:01

Всё верно. Должны разобраться.
Там по ссылке - вторая сверху - как раз 7940, и там подробней уж некуда! С объяснениями.
http://www.norgie.net/documentation/cis ... ndex.shtml
Если не разобрались - тест на профпригодность не пройден.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco 7940 Unprovisioned

Сообщение Makioro » 05 июл 2017, 17:04

Добрый день
Простите за некропостинг. Надеюсь, то, что я тут пишу будет доказательством что поиском пользовался :)
Файлы конфигов сделал для Cisco CP-7940G, он их благополучно скачивает с tftp, но не регистрируется на сервере.
Вот что показывает tcpdump:
Код: выделить все
14:56:16.969824 IP (tos 0x0, ttl 64, id 10625, offset 0, flags [none], proto UDP (17), length 541)
    172.16.0.156.51568 > 172.16.0.189.5060: [no cksum] SIP, length: 513
        REGISTER sip:172.16.0.189 SIP/2.0
        Via: SIP/2.0/UDP 172.16.0.156:5060;branch=z9hG4bK6aae57cd
        From: <sip:test555@172.16.0.189>;tag=001bd584cb2900027f623b17-1e612c44
        To: <sip:test555@172.16.0.189>
        Call-ID: 001bd584-cb290002-7400177b-374dbd33@172.16.0.156
        Max-Forwards: 70
        CSeq: 101 REGISTER
        User-Agent: Cisco-CP7940G/8.0
        Contact: <sip:test555@172.16.0.156:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-001bd584cb29>";+u.sip!model.ccm.cisco.com="8"
        Content-Length: 0
        Expires: 3600

<тут вырезал кучу чисел>

14:56:16.970138 IP (tos 0x0, ttl 64, id 49304, offset 0, flags [none], proto UDP (17), length 591, bad cksum 0 (->5e8c)!)
    172.16.0.189.5060 > 172.16.0.156.51568: [bad udp cksum 0x5bc6 -> 0x755c!] SIP, length: 563
        SIP/2.0 401 Unauthorized
        Via: SIP/2.0/UDP 172.16.0.156:5060;branch=z9hG4bK6aae57cd;received=172.16.0.156;rport=51568
        From: <sip:test555@172.16.0.189>;tag=001bd584cb2900027f623b17-1e612c44
        To: <sip:test555@172.16.0.189>;tag=as6996202e
        Call-ID: 001bd584-cb290002-7400177b-374dbd33@172.16.0.156
        CSeq: 101 REGISTER
        Server: Asterisk PBX 13.6.0
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
        Supported: replaces, timer
        WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1825131e"
        Content-Length: 0

<тут тоже вырезал кучу чисел>


т.е. астериск просто ругается "401 Unauthorized"
Также в консоли иногда вижу сообщение
[Jul 5 13:41:45] WARNING[100895]: chan_sip.c:4071 retrans_pkt: Timeout on 001bd584-cb290004-56ce83ad-1b188d12@172.16.0.156 on non-critical invite transaction.


После включения debug sip'a получил такое:
[Jul 5 15:44:56] WARNING[100895]: chan_sip.c:4009 retrans_pkt: Retransmission timeout reached on transmission 001bd584-cb290004-29e63af8-0bf6b9ea@172.16.0.156 for seqno 101 (Non-critical Response) -- See https://wiki.asterisk.org/wiki/display/ ... nsmissions
Packet timed out after 32004ms with no response

и такое:
<--- SIP read from UDP:172.16.0.156:51166 --->
REGISTER sip:172.16.0.189 SIP/2.0
Via: SIP/2.0/UDP 172.16.0.156:5060;branch=z9hG4bK7831b5b3
From: <sip:test555@172.16.0.189>;tag=001bd584cb29000c4fb90f96-3f65a775
To: <sip:test555@172.16.0.189>
Call-ID: 001bd584-cb290002-7402afa5-022059c3@172.16.0.156
Max-Forwards: 70
CSeq: 110 REGISTER
User-Agent: Cisco-CP7940G/8.0
Contact: <sip:test555@172.16.0.156:5060;transport=udp>;+sip.instance="<urn:uuid:00000000-0000-0000-0000-001bd584cb29>";+u.sip!model.ccm.cisco.com="8"
Content-Length: 0
Expires: 3600

<------------->
--- (11 headers 0 lines) ---
Sending to 172.16.0.156:51166 (NAT)

<--- Transmitting (NAT) to 172.16.0.156:51166 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.16.0.156:5060;branch=z9hG4bK7831b5b3;received=172.16.0.156;rport=51166
From: <sip:test555@172.16.0.189>;tag=001bd584cb29000c4fb90f96-3f65a775
To: <sip:test555@172.16.0.189>;tag=as42894073
Call-ID: 001bd584-cb290002-7402afa5-022059c3@172.16.0.156
CSeq: 110 REGISTER
Server: Asterisk PBX 13.6.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="65c49714"
Content-Length: 0

Ощущение будто просто пароль не подходит. Но уже перепроверял несколько раз
[Показать] Спойлер: Файлы на tftp сервере
OS79XX.TXT
P003-08-9-00.bin
P003-08-9-00.sbn
P0S3-08-9-00.loads
P0S3-08-9-00.sb2
P0S3-08-9-00.zip
SIP001BD584CB29.cnf
SIPDefault.cnf
XMLDefault.cnf.xml

Содержимое конфигов:
[Показать] Спойлер: OS79XX.TXT
P0S3-08-9-00

[Показать] Спойлер: XMLDefault.cnf.xml
<Default>
<callManagerGroup>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>192.168.1.4</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<loadInformation6 model="IP Phone 7910"></loadInformation6>
<loadInformation124 model="Addon 7914"></loadInformation124>
<loadInformation9 model="IP Phone 7935"></loadInformation9>
<loadInformation8 model="IP Phone 7940">P0S3-08-9-00</loadInformation8>
<loadInformation7 model="IP Phone 7960">P003-07-4-00</loadInformation7>
<loadInformation20000 model="IP Phone 7905"></loadInformation20000>
<loadInformation30008 model="IP Phone 7902"></loadInformation30008>
<loadInformation30007 model="IP Phone 7912"></loadInformation30007>
</Default>

[Показать] Спойлер: SIP001BD584CB29.cnf
# SIP Configuration Generic File
# Line 1 appearance
line1_name: test555

# Line 1 Registration Authentication
line1_authname: "test555"

# Line 1 Registration Password
line1_password: "SUPPAsikrit"

# Line 2 appearance
line2_name: UNPROVISIONED

# Line 2 Registration Authentication
line2_authname: "UNPROVISIONED"

# Line 2 Registration Password
line2_password: "UNPROVISIONED"

####### New Parameters added in Release 2.0 #######
# Phone Label (Text desired to be displayed in upper right corner)
phone_label: "Test Cisco Phone"; Has no effect on SIP messaging

# Line 1 Display Name (Display name to use for SIP messaging)
line1_displayname: "test555"

# Line 2 Display Name (Display name to use for SIP messaging)
line2_displayname: "UNPROVISIONED"

####### New Parameters added in Release 3.0 ######
# Phone Prompt (The prompt that will be displayed on console and Telnet)
phone_prompt: "Cisco CP-7940G"; Limited to 15 characters (Default - SIP Phone)

# Phone Password (Password to be used for console or Telnet login)
phone_password: "cisco"; Limited to 31 characters (Default - cisco)

# User classification used when Registering [ none (default), phone, ip ]
user_info: none

[Показать] Спойлер: SIPDefault.cnf
# SIP Default Configuration File
# Image Version
image_version: P0S3-08-9-00

# Proxy Server
proxy1_address: 172.16.0.189
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: 3600

# 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: 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: "172.16.0.1"; SNTP Server IP Address
sntp_mode: unicast ;anycast (default); unicast, multicast, or directedbroadcast
time_zone: EET; Time Zone Phone is in
dst_offset: 1; Offset from Phone's time when DST is in effect
dst_start_month: March; 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: 03; 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: 3; 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: YY-MM-DD

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

# Caller ID Blocking
#(0-disabled, 1-enabled, 2-disabled no user control, 3-enabled no user control)
callerid_blocking: 0; (Default is 0 - disabled and 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 is 0 - disabled and 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: 1; 0-Disabled (default), 1-Enabled

# Outbound Proxy Support
outbound_proxy: ""; 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: 1; 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


[Показать] Спойлер: Файлы, которые телефон пытается стянуть с tftp сервера
"CTLSEP001BD584CB29.tlv" - такого файла у меня нет и я не знаю что туда писать
"SEP001BD584CB29.cnf.xml" - такого файла тоже нет
"SIP001BD584CB29.cnf"
"SIPDefault.cnf"
"P0S3-08-9-00.loads"
и после паузы вот:
"SIPDefault.cnf" - запрашивается повторно
"SIP001BD584CB29.cnf" - тоже запрашивается повторно
"RINGLIST.DAT" - нет
"dialplan.xml" - тоже нет


Надеюсь кто-то подскажет что именно я упустил
Makioro
 
Сообщений: 21
Зарегистрирован: 22 сен 2016, 13:11

Re: Cisco 7940 Unprovisioned

Сообщение ded » 05 июл 2017, 19:20

Не надо сразу аттачить кучу файлов.

Поиском пользоваться умеет, а аналитикой (в голове) не - нет.
Приведено только начало диалога -
REGISTER sip:172.16.0.189 SIP/2.0 - запрос регисртации
и ответ станции
SIP/2.0 401 Unauthorized - неавторизован, вам надо авторизоваться используя
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="1825131e"
и после этого телефон высылает пакет
REGISTER sip:172.16.0.189 SIP/2.0
в котором будет авторизация
Authorization: Digest username="test555",realm="asterisk",nonce="1825131e",uri="sip:172.16.0.189",response="968b0d93acc32c006d96ec6a72dcfc7a"

Кроме того, авторизоваться надо не test555
line1_authname: "test555"
а цифрами - внутренним номером (extension)
Makioro писал(а):Файлы, которые телефон пытается стянуть с tftp сервера
"CTLSEP001BD584CB29.tlv" - такого файла у меня нет и я не знаю что туда писать
"SEP001BD584CB29.cnf.xml" - такого файла тоже нет
"SIP001BD584CB29.cnf"
CTLSEP001BD584CB29.tlv - контрольный файл с подписью, используется в секьюрной модели провизионинга tftp. Не ваш случай. Игнорировать.
Телефон говорит - мне любой конфиг - новомодный, в формате xml, или старомодный, в текстовом .cnf
Чтобы не тянул
"SIPDefault.cnf" и снова не скачивал прошивку
"P0S3-08-9-00.loads"
замаркируйте там в "SIPDefault.cnf" ему, чтобы он каждый раз не перепрошивался.
Makioro писал(а):"dialplan.xml" - тоже нет
Ну вот его надо будет создать, примеры есть в сети.
ded
 
Сообщений: 15803
Зарегистрирован: 26 авг 2010, 19:00

Re: Cisco 7940 Unprovisioned

Сообщение Makioro » 05 июл 2017, 19:58

Спасибо за ответ.
dialplan.xml создал, в SIPDefault.cnf закомментировал строку "image_version: POS3-08-9-00"

Посмотрел tcpdump (у меня сохранён на серваке), в нём после обмена приветствиями идёт только один короткий пакет:
13:55:17.786572 IP (tos 0x0, ttl 64, id 10626, offset 0, flags [none], proto ICMP (1), length 56)
172.16.0.156 > 172.16.0.189: ICMP 172.16.0.156 udp port 51568 unreachable, length 36
IP (tos 0x0, ttl 64, id 17898, offset 0, flags [none], proto UDP (17), length 591)
172.16.0.189.5060 > 172.16.0.156.51568: SIP, length: 563
[|sip]

И снова повторяется "приветствие".

Насчет авторизации экстеншеном не понял. Разве астериск умеет авторизовывать по экстеншену? Или надо создавать sip/555?
Makioro
 
Сообщений: 21
Зарегистрирован: 22 сен 2016, 13:11

Re: Cisco 7940 Unprovisioned

Сообщение virus_net » 06 июл 2017, 08:23

мой SIP URI sip:virus_net@asterisk.ru
bitname.ru - Домены .bit (namecoin) .emc .coin .lib .bazar (emercoin)

ENUMER - звони бесплатно и напрямую.
virus_net
 
Сообщений: 2337
Зарегистрирован: 05 июн 2013, 08:12
Откуда: Москва

Re: Cisco 7940 Unprovisioned

Сообщение Makioro » 06 июл 2017, 09:30

Спасибо за ссылку
Патчить астериск нужно только чтобы работали дополнительные функции или без патчей он даже основные не будет выполнять?
Makioro
 
Сообщений: 21
Зарегистрирован: 22 сен 2016, 13:11

Re: Cisco 7940 Unprovisioned

Сообщение Makioro » 06 июл 2017, 13:39

Makioro писал(а):в SIPDefault.cnf закомментировал строку "image_version: POS3-08-9-00"

Не помогло. Вернее помогло, но частично: после SIPDefault.cnf теперь не скачивается прошивка, но остальные файлы всё равно скачиваются и есть большая пауза между первым скачиванием SIPDefault.cnf и вторым.
Makioro
 
Сообщений: 21
Зарегистрирован: 22 сен 2016, 13:11

След.

Вернуться в VoIP оборудование

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 10

© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH