Уважаемые коллеги, прошу помощи в чтении лога. Никак не могу звонок из CUCM в ASTERISK принять.
Судя по логу до ASTERISK оно доходит, но дальше просто завершение звонка.
Из ASTERISK в CUCM все ок.
Еще я пробовал внешний SIP аккаунт с их примером настройки. Там тоже все сразу полетело..
Код: Выделить всё
[Aug 5 18:55:24] NOTICE[1191]: chan_sip.c:25009 handle_response_peerpoke: Peer '3155' is now Reachable. (6ms / 2000ms)
<--- SIP read from UDP:192.168.224.2:5060 --->
INVITE sip:3155@192.168.2.160:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.224.2:5060;branch=z9hG4bK4fa4f84a09d11a
From: "R0" <sip:1151@192.168.224.2>;tag=32228014~fd2bd050-fb1b-43ae-9365-67438b5d6423-42506946
To: <sip:3155@192.168.2.160>
Date: Wed, 05 Aug 2020 15:55:42 GMT
Call-ID: 1c325880-f2a1d67e-17f24a-2e0a8c0@192.168.224.2
Supported: timer,resource-priority,replaces
Min-SE: 1800
User-Agent: Cisco-CUCM11.5
Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY
CSeq: 101 INVITE
Expires: 180
Allow-Events: presence, kpml
Supported: X-cisco-srtp-fallback,X-cisco-original-called
Call-Info: <sip:192.168.224.2:5060>;method="NOTIFY;Event=telephone-event;Duration=500"
Session-ID: 5253d09200105000a0000c75bd44c0f2;remote=00000000000000000000000000000000
Cisco-Guid: 0473061504-0000065536-0000126745-0048277696
Session-Expires: 1800
P-Asserted-Identity: "R0" <sip:1151@192.168.224.2>
Remote-Party-ID: "R0" <sip:1151@192.168.224.2>;party=calling;screen=yes;privacy=off
Contact: <sip:1151@192.168.224.2:5060>;+u.sip!devicename.ccm.cisco.com="SEP0C75BD44C0F2"
Max-Forwards: 13
Content-Type: application/sdp
Content-Length: 206
v=0
o=CiscoSystemsCCM-SIP 32228014 1 IN IP4 192.168.224.2
s=SIP Call
c=IN IP4 192.168.224.1
t=0 0
m=audio 28112 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (24 headers 9 lines) ---
Sending to 192.168.224.2:5060 (no NAT)
Sending to 192.168.224.2:5060 (no NAT)
Using INVITE request as basis request - 1c325880-f2a1d67e-17f24a-2e0a8c0@192.168.224.2
Found peer '1151' for '1151' from 192.168.224.2:5060
<--- Reliably Transmitting (no NAT) to 192.168.224.2:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.224.2:5060;branch=z9hG4bK4fa4f84a09d11a;received=192.168.224.2
From: "R0" <sip:1151@192.168.224.2>;tag=32228014~fd2bd050-fb1b-43ae-9365-67438b5d6423-42506946
To: <sip:3155@192.168.2.160>;tag=as60cceafe
Call-ID: 1c325880-f2a1d67e-17f24a-2e0a8c0@192.168.224.2
CSeq: 101 INVITE
Server: Asterisk PBX 16.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="46c9febf"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '1c325880-f2a1d67e-17f24a-2e0a8c0@192.168.224.2' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:192.168.224.2:5060 --->
ACK sip:3155@192.168.2.160:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.224.2:5060;branch=z9hG4bK4fa4f84a09d11a
From: "R0" <sip:1151@192.168.224.2>;tag=32228014~fd2bd050-fb1b-43ae-9365-67438b5d6423-42506946
To: <sip:3155@192.168.2.160>;tag=as60cceafe
Date: Wed, 05 Aug 2020 15:55:42 GMT
Call-ID: 1c325880-f2a1d67e-17f24a-2e0a8c0@192.168.224.2
User-Agent: Cisco-CUCM11.5
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: presence, kpml
Content-Length: 0
<------------->
--- (11 headers 0 lines) ---
r0*CLI>
r0*CLI>
Код: Выделить всё
[general]
externaddr=192.168.2.160:5060
language=ru
context=default
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
allowguest=no
limitonpeers=yes
[authentication]
[IT](!)
type=friend
context=call-out
secret=48957
host=dynamic
nat=no
qualify=yes
canreinvite=no
callgroup=1
pickupgroup=1
call-limit=1
dtmfmode=auto
disallow=all
allow=alaw
allow=ulaw
allow=g729
allow=g723
allow=g722
[3155](IT)
callerid="test mac" <3155>
Код: Выделить всё
[general]
static=yes
writeprotect=no
[globals]
[default]
[handup-sip]
exten => _X!,1,HangUp()
[call-out]
exten => _XXXX,1,Dial(SIP/${EXTEN}&SIP/${EXTEN}@trunk-cucm1)
exten => _XXXX.,1,Dial(SIP/${EXTEN}@trunk-cucm1)
include => handup-sip
[call-in]
exten => trunk-cucm1,1,Dial(SIP/3155)
[call-in]
exten => trunk-cucm2,1,Dial(SIP/3155)
[trunk-cucm1]
type=peer
context=call-in
host=192.168.224.1
port=5060
insecure=port,invite
nat=yes
disallow=all
allow=allaw,ulaw
qualify=yes
[trunk-cucm2]
type=peer
context=call-in
host=192.168.224.2
port=5060
insecure=port,invite
nat=yes
disallow=all
allow=allaw,ulaw
qualify=yes
Заранее спасибо.