Re: в Elastix не работает входящая связь через транк
Доброе время суток.
У меня такая же система(Elastix 2.0.2, в нем Asterisk PBX 1.6.2.10), и проблема, как у топикстартера.
Дабы не плодить сущности, пишу сюда. * не принимает входящие по sip транку. Транк описан следующим образом:
[astratel]
host=203.197.193.111
username=84999869878
secret=xxxxxxxx
type=friend
insecure=port,invite
realm=hl2.astratel.ru
fromdomain=hl2.astratel.ru
fromuser=user_84999869878
context=from-trunk-sip-astratel
Транк регистрируется, звонить с него можно.
При попытке позвонить на него в логах следующее:
Reliably Transmitting (NAT) to 203.197.193.111:5060:
REGISTER sip:203.197.193.111 SIP/2.0
Via: SIP/2.0/UDP 82.210.21.17:5060;branch=z9hG4bK448cf9cc;rport
Max-Forwards: 70
From: <sip:user_84999869878@203.197.193.111>;tag=as5a4eaa2d
To: <sip:user_84999869878@203.197.193.111>
Call-ID: 2367333631ca12f16ee1178956208489@127.0.0.1
CSeq: 107 REGISTER
User-Agent: Asterisk PBX 1.6.2.10
Authorization: Digest username="84999869878", realm="hl2.astratel.ru", algorithm=MD5, uri="sip:203.197.193.111", nonce="mv1oXVLBaJoY30isj4zgF3a+ghtz4w", response="0ba3a3303e8c3774381f85edd2777290", qop=auth, cnonce="2f112420", nc=00000003
Expires: 120
Contact: <sip:84999869878@82.210.21.17>
Content-Length: 0
<--- SIP read from UDP:203.197.193.111:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 82.210.21.17:5060;branch=z9hG4bK448cf9cc;rport=34654
To: <sip:user_84999869878@203.197.193.111>;tag=tg833980
From: <sip:user_84999869878@203.197.193.111>;tag=as5a4eaa2d
Call-ID: 2367333631ca12f16ee1178956208489@127.0.0.1
CSeq: 107 REGISTER
Contact: <sip:84999869878@82.210.21.17>;expires=30
Service-Route: <sip:hl2.astratel.ru;lr;+sip.instance=urn:uuid:828C848C-F119-5A58-93E2-39CBA6868E5C>
Content-Length: 0
<--- SIP read from UDP:203.197.193.111:5060 --->
INVITE sip:84999869878@82.210.21.17 SIP/2.0
Via: SIP/2.0/UDP 203.197.193.111:5060;branch=z9hG4bK1Y3Bb399aDEr-1605020;rport
To: <sip:84999869878@hl2.astratel.ru;user=phone>
From: <sip:4959262892@203.197.192.101>;tag=mvsbcc8841fe7-12b31687d7f11fe7
Call-ID: Die6Vnj9AP9lwviPNF47bQ
CSeq: 1 INVITE
Contact: <sip:4959262892@203.197.193.111>
History-Info: <sip:84999869878@203.197.193.111>;index=1;sipapplicationsessionid=AId_hc01_823003
Supported: em,100rel,timer,replaces,path,early-session,resource-priority,histinfo
User-Agent: Audiocodes-Sip-Gateway-Mediant 1000/v.5.40A.033.005
Hostlynx-Guid: FFFFAA-10002-2-3-82C6D0-3D6B18-059BAA-371489
Max-Forwards: 9
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Content-Type: application/sdp
Content-Length: 393
v=0
o=AudiocodesGW 6936639 6936378 IN IP4 203.197.192.101
s=Phone-Call
i=SBC 203.197.192.101 checked
c=IN IP4 203.197.193.111
t=0 0
m=audio 40166 RTP/AVP 8 18 4 101
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
a=rtcp:6481 IN IP4 203.197.192.101
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Sending to 203.197.193.111 : 5060 (NAT)
Using INVITE request as basis request - 5xqhN+6bU4/Txt6nGDbkBg
Found peer 'astratel' for '4959262892' from 203.197.193.111:5060
<--- Reliably Transmitting (NAT) to 203.197.193.111:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 203.197.193.111:5060;branch=z9hG4bK1Y3Bb+p8dTEr-1605291;received=203.197.193.111;rport=5060
From: <sip:4959262892@203.197.192.101>;tag=mvsbc6d1e1ff6-12b31757ce911ff6
To: <sip:84999869878@hl2.astratel.ru;user=phone>;tag=as4c368292
Call-ID: 5xqhN+6bU4/Txt6nGDbkBg
CSeq: 1 INVITE
Server: Asterisk PBX 1.6.2.10
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="418d33cb"
Content-Length: 0
Scheduling destruction of SIP dialog '5xqhN+6bU4/Txt6nGDbkBg' in 32000 ms (Method: INVITE)
<--- SIP read from UDP:203.197.193.111:5060 --->
ACK sip:84999869878@82.210.21.17 SIP/2.0
Via: SIP/2.0/UDP 203.197.193.111:5060;branch=z9hG4bK1Y3Bb+p8dTEr-1605291;rport
To: <sip:84999869878@hl2.astratel.ru;user=phone>;tag=as4c368292
From: <sip:4959262892@203.197.192.101>;tag=mvsbc6d1e1ff6-12b31757ce911ff6
Call-ID: 5xqhN+6bU4/Txt6nGDbkBg
CSeq: 1 ACK
Max-Forwards: 9
-- Re-registration for user_84999869878@203.197.193.111
Reliably Transmitting (NAT) to 203.197.193.111:5060:
REGISTER sip:203.197.193.111 SIP/2.0
Via: SIP/2.0/UDP 82.210.21.17:5060;branch=z9hG4bK4540c933;rport
Max-Forwards: 70
From: <sip:user_84999869878@203.197.193.111>;tag=as4a677450
To: <sip:user_84999869878@203.197.193.111>
Call-ID: 416ac92a2c35fe6804190cf34b24dd40@127.0.0.1
CSeq: 103 REGISTER
User-Agent: Asterisk PBX 1.6.2.10
Expires: 120
Contact: <sip:84999869878@82.210.21.17>
Content-Length: 0
<--- SIP read from UDP:203.197.193.111:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 82.210.21.17:5060;branch=z9hG4bK4540c933;rport=34654
To: <sip:user_84999869878@203.197.193.111>
From: <sip:user_84999869878@203.197.193.111>;tag=as4a677450
Call-ID: 416ac92a2c35fe6804190cf34b24dd40@127.0.0.1
CSeq: 103 REGISTER
Contact: <sip:84999869878@82.210.21.17>;expires=30
Content-Length: 0
Все ссылки на похожие проблемы ведут к решению с помощью insecure=port,invite , но в данном случае этот параметр присутствует и положительно на прием звонков не влияет.
Поскажите, что еще можно предпринять для прояснения ситуации?
|