Всем привет!
Создал SIP транк Asterisk-Cisco CME
Вот конфа:
[general]
context=office
tcpenable=yes
tcpbindaddr=0.0.0.0
[cme-out]
type=peer
host=10.2.1.5
transport=tcp
port=5060
disallow=all
allow=ulaw
dtmfmode=rfc2833
context=office
[cme-in]
type=user
host=10.2.1.5
transport=tcp
port=5060
disallow=all
allow=ulaw
dtmfmode=rfc2833
context=office
Исходящие звонки отлично работают, но входящие - отшиваются. вот что в дебаге:
<--- SIP read from TCP:10.2.1.5:53285 --->
INVITE sip:8020@192.168.34.26:5060 SIP/2.0
Via: SIP/2.0/TCP 10.2.1.5:5060;branch=z9hG4bK8E92F
Remote-Party-ID: "Фамилия" <sip:7001@10.2.1.5>;party=calling;screen=no;privacy=off
From: "Фамилия" <sip:7001@10.2.1.5>;tag=130BCAFC-DE5
To: <sip:8020@192.168.34.26>
Date: Fri, 29 Jun 2012 04:49:56 GMT
Call-ID: B5397ECA-C0DC11E1-951FDF0B-D483600B@10.2.1.5
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE: 1800
Cisco-Guid: 3034163853-3235647969-2501566219-3565379595
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1340945396
Contact: <sip:7001@10.2.1.5:5060;transport=tcp>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 235
v=0
o=CiscoSystemsSIP-GW-UserAgent 5313 3439 IN IP4 10.2.1.5
s=SIP Call
c=IN IP4 10.2.1.5
t=0 0
m=audio 19338 RTP/AVP 0 101
c=IN IP4 10.2.1.5
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
<------------->
--- (21 headers 11 lines) ---
Sending to 10.2.1.5 : 53285 (NAT)
Using INVITE request as basis request - B5397ECA-C0DC11E1-951FDF0B-D483600B@10.2.1.5
Found peer 'cme-out' for '7001' from 10.2.1.5:53285
Found RTP audio format 0
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x4 (ulaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x4 (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 10.2.1.5:19338
Looking for 8020 in office (domain 192.168.34.26)
list_route: hop: <sip:7001@10.2.1.5:5060;transport=tcp>
<--- Transmitting (NAT) to 10.2.1.5:53285 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 10.2.1.5:5060;branch=z9hG4bK8E92F;received=10.2.1.5
From: "Фамилия" <sip:7001@10.2.1.5>;tag=130BCAFC-DE5
To: <sip:8020@192.168.34.26>
Call-ID: B5397ECA-C0DC11E1-951FDF0B-D483600B@10.2.1.5
CSeq: 101 INVITE
Server: Asterisk PBX 1.6.2.9-2+squeeze6
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Require: timer
Session-Expires: 1800;refresher=uas
Contact: <sip:8020@192.168.34.26;transport=TCP>
Content-Length: 0
<------------>
<--- Reliably Transmitting (NAT) to 10.2.1.5:53285 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/TCP 10.2.1.5:5060;branch=z9hG4bK8E92F;received=10.2.1.5
From: "Фамилия" <sip:7001@10.2.1.5>;tag=130BCAFC-DE5
To: <sip:8020@192.168.34.26>;tag=as189ac957
Call-ID: B5397ECA-C0DC11E1-951FDF0B-D483600B@10.2.1.5
CSeq: 101 INVITE
Server: Asterisk PBX 1.6.2.9-2+squeeze6
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Require: timer
Session-Expires: 1800;refresher=uas
Content-Length: 0
X-Asterisk-HangupCause: Facility rejected
X-Asterisk-HangupCauseCode: 29
<------------>
<--- SIP read from TCP:10.2.1.5:53285 --->
ACK sip:8020@192.168.34.26:5060 SIP/2.0
Via: SIP/2.0/TCP 10.2.1.5:5060;branch=z9hG4bK8E92F
From: "Фамилия" <sip:7001@10.2.1.5>;tag=130BCAFC-DE5
To: <sip:8020@192.168.34.26>;tag=as189ac957
Date: Fri, 29 Jun 2012 04:49:56 GMT
Call-ID: B5397ECA-C0DC11E1-951FDF0B-D483600B@10.2.1.5
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Господа гуру! Подскажите пожалуйста, что ковырнуть в Asterisk, что б он принял звонок?
Заранее спасибо за ответы!