ded, здравствуйте!
Вот что сообщает asterisk на попытки позвонить на него с местной АТС.
Как понимаю, наша АТС - unknown peer. Где грабли?
localasrt*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [3951@from-sip-external:1] NoOp("SIP/10.10.37.10-00000001", "Received incoming SIP connection from unknown peer to 3951") in new stack
-- Executing [3951@from-sip-external:2] Set("SIP/10.10.37.10-00000001", "DID=3951") in new stack
-- Executing [3951@from-sip-external:3] Goto("SIP/10.10.37.10-00000001", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/10.10.37.10-00000001", "0?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,5)
-- Executing [s@from-sip-external:5] Set("SIP/10.10.37.10-00000001", "TIMEOUT(absolute)=15") in new stack
Channel will hangup at 2010-12-09 09:28:27.828 MSK.
-- Executing [s@from-sip-external:6] Answer("SIP/10.10.37.10-00000001", "") in new stack
-- Executing [s@from-sip-external:7] Wait("SIP/10.10.37.10-00000001", "2") in new stack
-- Executing [s@from-sip-external:8] Playback("SIP/10.10.37.10-00000001", "ss-noservice") in new stack
-- <SIP/10.10.37.10-00000001> Playing 'ss-noservice.ulaw' (language 'en')
-- Executing [s@from-sip-external:9] PlayTones("SIP/10.10.37.10-00000001", "congestion") in new stack
-- Executing [s@from-sip-external:10] Congestion("SIP/10.10.37.10-00000001", "5") in new stack
== Spawn extension (from-sip-external, s, 10) exited non-zero on 'SIP/10.10.37.10-00000001'
-- Executing [h@from-sip-external:1] Hangup("SIP/10.10.37.10-00000001", "") in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/10.10.37.10-00000001'
ded писал(а):А есть ли такой SIP пир со статическим 10.10.37.10? Обозреваемый через sip show peers?
localasrt*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
3950 (Unspecified) D N A 5060 UNKNOWN
3951/3951 10.40.45.129 D N A 47374 OK (5 ms)
3952 (Unspecified) D N A 5060 UNKNOWN
3955 (Unspecified) D N A 5060 UNKNOWN
cisco 10.10.37.10 N A 5060 OK (19 ms)
5 sip peers [Monitored: 2 online, 3 offline Unmonitored: 0 online, 0 offline]
ded писал(а):На пире CUCM7 в Астериске (или какой там у вас) добавить
context=from-internal (или какой там у вас) если вызов прямо на внутренний номер, или
context=from-trunk если вызов по DID снаружи
Если говорит "Received incoming SIP connection from unknown peer to 3951") то входящий вызов не сопоставлен с пиром cisco 10.10.37.10 N A
Почему? Надо смотреть в /var/log/asterisk/full - там подробней описан процесс входящего соединения.
А если не поможет- включать sip set debug ip 10.10.37.10
ded, здравствуйте!
Вот что ответил Астериск на sip set debug ip 10.10.37.10:
(NNNNNN8202 - это №, с которого звонил, цифры убрал; 10.50.110.80 - IP астериска)
<------------->
--- (20 headers 9 lines) ---
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Sending to 10.10.37.10 : 56507 (NAT)
Using INVITE request as basis request - 34058801-4A5A11CC-AE87DE93-FFF52827@10.10.37.10
No matching peer for 'NNNNNN8202' from '10.10.37.10:56507'
Found RTP audio format 0
Found audio description format PCMU for ID 0
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0x4 (ulaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x4 (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 10.10.37.10:17640
Looking for 3951 in from-sip-external (domain 10.50.110.80)
list_route: hop: <sip:NNNNNN8202@10.10.37.10:5060>
<------------>
-- Executing [3951@from-sip-external:1] NoOp("SIP/10.10.37.10-00000042", "Received incoming SIP connection from unknown peer to 3951") in new stack
-- Executing [3951@from-sip-external:2] Set("SIP/10.10.37.10-00000042", "DID=3951") in new stack
-- Executing [3951@from-sip-external:3] Goto("SIP/10.10.37.10-00000042", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/10.10.37.10-00000042", "0?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,5)
-- Executing [s@from-sip-external:5] Set("SIP/10.10.37.10-00000042", "TIMEOUT(absolute)=15") in new stack
Channel will hangup at 2010-12-13 04:21:19.810 MSK.
-- Executing [s@from-sip-external:6] Answer("SIP/10.10.37.10-00000042", "") in new stack
Audio is at 10.50.110.80 port 16856
Adding codec 0x4 (ulaw) to SDP