Опираясь на статью: https://habrahabr.ru/post/148455/ пытаюсь всё настроить
Есть CP-7936. Есть Asterisk 11.7.0~dfsg-1ubuntu1 built by buildd @ lamiak on a x86_64 running Linux on 2013-12-24 06:02:10 UTC. Собрал chain_sccp. Подгрузил. Сбросил телефон в дефолт. На tftp сервер залил файл XMLDefault.cnf.xml с единственным параметром ip адресом Asterisk. Запускаю телефон.
Он лезет на tftp ищет файл SEP00e075f31849.cnf.xml. Не находит. Забирает XMLDefault.cnf.xml. На экране указан IP телефона и "Contacting: 10.0.17.30" - ip TFTP сервера
В консоли следующее:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: asterisk -rvvvv
[May 13 14:44:52] NOTICE[12924]: sccp_socket.c:1246 sccp_socket_thread: -- SCCP: Accept Connection
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1217 apply_netmask: == SCCP: (apply_netmask) applying netmask to 10.0.19.82/0.0.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1243 apply_netmask: == SCCP: (apply_netmask) result applied netmask 0.0.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1217 apply_netmask: == SCCP: (apply_netmask) applying netmask to 10.0.19.82/255.255.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1243 apply_netmask: == SCCP: (apply_netmask) result applied netmask 10.0.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_socket.c:1174 sccp_accept_connection: -- SCCP: Using 507904 memory for this thread
[May 13 14:44:52] NOTICE[13071]: sccp_socket.c:988 sccp_socket_device_thread: > SCCP: set poll timeout 60 for session 27
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:1011 sccp_socket_device_thread: == SCCP: Session New Data Arriving
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:589 sccp_read_data: -- SCCP: Dissection Alarm Message (32), msgDataSegmentSize: 92, UnreadBytesAccordingToPacket: 92, msg->header.length: 96, bytesToRead: 92, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:592 sccp_read_data: -- SCCP: Reading Alarm Message (32), msgDataSegmentSize: 92, UnreadBytesAccordingToPacket: 92, bytesToRead: 92, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:610 sccp_read_data: -- SCCP: Finished Reading Alarm Message (32), msgDataSegmentSize: 92, UnreadBytesAccordingToPacket: 0, bytesToRead: 0, bytesReadSoFar: 92
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:297 sccp_handle_message: -- 10.0.17.18:45817: >> Got message Alarm Message (0x20)
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:184 check_session_message_device: 10.0.17.18:45817: SCCP Handle Message: Alarm Message(0x0020) 96 bytes length
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:589 sccp_read_data: -- SCCP: Dissection Register Message (1), msgDataSegmentSize: 172, UnreadBytesAccordingToPacket: 44, msg->header.length: 48, bytesToRead: 44, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:592 sccp_read_data: -- SCCP: Reading Register Message (1), msgDataSegmentSize: 172, UnreadBytesAccordingToPacket: 44, bytesToRead: 44, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:610 sccp_read_data: -- SCCP: Finished Reading Register Message (1), msgDataSegmentSize: 172, UnreadBytesAccordingToPacket: 0, bytesToRead: 0, bytesReadSoFar: 44
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:297 sccp_handle_message: -- 10.0.17.18:45817: >> Got message Register Message (0x1)
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:184 check_session_message_device: 10.0.17.18:45817: SCCP Handle Message: Register Message(0x0001) 48 bytes length
[May 13 14:44:55] NOTICE[13071]: sccp_actions.c:536 sccp_handle_register: SEP00E075F31849: is registering, Instance: 1, UserId: 0, Type: Cisco 7936 Conference (30019), Version: 4 (loadinfo '')
sccp_device.c :3075 (sccp_device_find_byid ) -> refcount increased 01 +> 02 for device: SEP00e075f31849 (0x7f54e400da00)
[May 13 14:44:55] NOTICE[13071]: sccp_actions.c:554 sccp_handle_register: SEP00e075f31849: Cleaning previous session, come back later, state:Cleaning
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:1341 sccp_session_send2: SCCP: Send Message: Register Reject Message(0x009D) 36 bytes length
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:474 __sccp_session_stopthread: == SCCP: Stopping Session Thread
sccp_refcount.c:0650 (sccp_refcount_autorelease) <- refcount decreased 01 <- 02 for device: SEP00e075f31849 (0x7f54e400da00)
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:1032 sccp_socket_device_thread: -- SCCP: Exiting sccp_socket device thread
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:932 sccp_socket_device_thread_exit: -- SCCP: Session without a device attached !
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:935 sccp_socket_device_thread_exit: -- SCCP: cleanup session
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:859 sccp_session_close: -- SCCP: Old session marked down
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:904 destroy_session: -- SCCP: Destroy Session 10.0.19.82
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1217 apply_netmask: == SCCP: (apply_netmask) applying netmask to 10.0.19.82/0.0.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1243 apply_netmask: == SCCP: (apply_netmask) result applied netmask 0.0.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1217 apply_netmask: == SCCP: (apply_netmask) applying netmask to 10.0.19.82/255.255.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_utils.c:1243 apply_netmask: == SCCP: (apply_netmask) result applied netmask 10.0.0.0
[May 13 14:44:52] NOTICE[12924]: sccp_socket.c:1174 sccp_accept_connection: -- SCCP: Using 507904 memory for this thread
[May 13 14:44:52] NOTICE[13071]: sccp_socket.c:988 sccp_socket_device_thread: > SCCP: set poll timeout 60 for session 27
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:1011 sccp_socket_device_thread: == SCCP: Session New Data Arriving
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:589 sccp_read_data: -- SCCP: Dissection Alarm Message (32), msgDataSegmentSize: 92, UnreadBytesAccordingToPacket: 92, msg->header.length: 96, bytesToRead: 92, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:592 sccp_read_data: -- SCCP: Reading Alarm Message (32), msgDataSegmentSize: 92, UnreadBytesAccordingToPacket: 92, bytesToRead: 92, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:610 sccp_read_data: -- SCCP: Finished Reading Alarm Message (32), msgDataSegmentSize: 92, UnreadBytesAccordingToPacket: 0, bytesToRead: 0, bytesReadSoFar: 92
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:297 sccp_handle_message: -- 10.0.17.18:45817: >> Got message Alarm Message (0x20)
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:184 check_session_message_device: 10.0.17.18:45817: SCCP Handle Message: Alarm Message(0x0020) 96 bytes length
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:589 sccp_read_data: -- SCCP: Dissection Register Message (1), msgDataSegmentSize: 172, UnreadBytesAccordingToPacket: 44, msg->header.length: 48, bytesToRead: 44, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:592 sccp_read_data: -- SCCP: Reading Register Message (1), msgDataSegmentSize: 172, UnreadBytesAccordingToPacket: 44, bytesToRead: 44, bytesReadSoFar: 0
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:610 sccp_read_data: -- SCCP: Finished Reading Register Message (1), msgDataSegmentSize: 172, UnreadBytesAccordingToPacket: 0, bytesToRead: 0, bytesReadSoFar: 44
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:297 sccp_handle_message: -- 10.0.17.18:45817: >> Got message Register Message (0x1)
[May 13 14:44:55] NOTICE[13071]: chan_sccp.c:184 check_session_message_device: 10.0.17.18:45817: SCCP Handle Message: Register Message(0x0001) 48 bytes length
[May 13 14:44:55] NOTICE[13071]: sccp_actions.c:536 sccp_handle_register: SEP00E075F31849: is registering, Instance: 1, UserId: 0, Type: Cisco 7936 Conference (30019), Version: 4 (loadinfo '')
sccp_device.c :3075 (sccp_device_find_byid ) -> refcount increased 01 +> 02 for device: SEP00e075f31849 (0x7f54e400da00)
[May 13 14:44:55] NOTICE[13071]: sccp_actions.c:554 sccp_handle_register: SEP00e075f31849: Cleaning previous session, come back later, state:Cleaning
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:1341 sccp_session_send2: SCCP: Send Message: Register Reject Message(0x009D) 36 bytes length
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:474 __sccp_session_stopthread: == SCCP: Stopping Session Thread
sccp_refcount.c:0650 (sccp_refcount_autorelease) <- refcount decreased 01 <- 02 for device: SEP00e075f31849 (0x7f54e400da00)
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:1032 sccp_socket_device_thread: -- SCCP: Exiting sccp_socket device thread
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:932 sccp_socket_device_thread_exit: -- SCCP: Session without a device attached !
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:935 sccp_socket_device_thread_exit: -- SCCP: cleanup session
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:859 sccp_session_close: -- SCCP: Old session marked down
[May 13 14:44:55] NOTICE[13071]: sccp_socket.c:904 destroy_session: -- SCCP: Destroy Session 10.0.19.82
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sccp.conf
Ничего кроме permit и MAC адреса аппарата не менял
Код: Выделить всё
]
;=========================================================================================
;
; general definitions
;
;=========================================================================================
[general]
servername = Asterisk
keepalive = 60
debug = 1
context = default
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
transfer_on_hangup = off
callwaiting_tone = 0x2d
musicclass=default
language=en
deny=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.255.0.0
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 = on
callanswerorder=oldestfirst
directed_pickup_modeanswer = on
hotline_enabled=yes<---><------><------><------><------>;can devices without configuration register
hotline_context=default><------><------><------><------>; context for hotline
hotline_extension=111<-><------><------><------><------>; extension will be dialed on offHook
[SEP00e075f31849]
description = Phone Number One
addon = 7936
devicetype = 7936
park = off
button = speeddial,Helpdesk, 98112, 98112@hints <----->; Add SpeedDial to Helpdesk
button = line, 98011,default<--><------><------><------>; Assign Line 98011 to Device and use this as default line
button = empty<><------><------><------><------><------>; Assign an Empty Button
button = line, 98012<--><------><------><------><------>; Assign Line 98012 to Device
button = speeddial,Phone 2 Line 1, 98021, 98021@hints<->; Add SpeedDial to Phone Number Two Line 1 (button labels allow special characters like 'é')
cfwdall = off
type = device
keepalive = 60
;tzoffset = +2
transfer = on
park = on
cfwdall = off
cfwdbusy = off
cfwdnoanswer = off
directed_pickup = on
directed_pickup_context = default
directed_pickup_modeanswer = on
deny=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.255.0.0
dndFeature = on
dnd = off
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
Телефон постоянно стучится в tftp сервер и пытается найти файл с именной конфигурацией не находя её забирает дефолтную. Это нормально? Нужно ли делать этот файл?
Бьюсь уже не первый день, пожалуйста помогите разобраться почему не получается его запустить.