всем привет!!))
Помогите настроить транк на *, чего то у меня голова уже едет кругом.
Стоит оборудование:
asterisk1.8.
mediant 2000
В медиант заведен поток, далее по SIP идем на астер, прописывал все по доке http://www.scansourcecommunications.com ... EAC11.ashx, это на медиант. Пока не совсем понимаю как точно надо прописать регистрацию на астере.
sip.conf
[general]
useragent=asterisk
bindport=5060
bindaddr=0.0.0.0
context=default
allowquest=yes
disallow=all
allow=ulaw
allow=g711a
dtmfmode=rfc2833
canreinvite=no
nat=no
register=3015551005:123456@192.168.18.196/m2000
[101]
port=5060
host=dynamic
secret=abon101
context=101
dtmfmode=rfc28833
canreinvite=no
type=friend
[102]
deny=0.0.0.0/0.0.0.0
secret=abon102
dtmfmode=rfc2833
relaxdtmf=yes
canreinvite=no
context=102
host=dynamic
type=friend
nat=no
port=5060
qualify=yes
callgroup=
dial=SIP/102
accontcode=
mailbox=102@device
permit=0.0.0.0/0.0.0.0
callerid=device <102>
call-limit=50
faxdetect=no
[trunk_dts_e1]
type=friend
host=192.168.18.196
username=3015551005
fromuser=m2000
secret=123456
nat=no
context=outgoing_calls
dtmfmode=rfc2833
qualify=yes
disallow=all
allow=alaw
hassip=yes
registertrying=yes
registersip=yes
trunkstyle=voip
voip01*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
101/101 192.168.18.86 D 5060 Unmonitored
102/102 192.168.18.178 D A 1528 OK (102 ms)
trunk_dts_e1/3015551005 192.168.18.196 5060 OK (25 ms)
3 sip peers [Monitored: 2 online, 0 offline Unmonitored: 1 online, 0 offline]
voip01*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.18.196:5060 N 3015551005 120 Request Sent
1 SIP registrations.
Really destroying SIP dialog '49065978611201034129@192.168.18.196' Method: REGISTER
медиант настроен так:
proxyip=192.168.18.85(asterisk)
registarname=m2000
registarip=192.168.18.85
gatewayname=m2000
username=3015551005
password=123456
вот что выкидывает астер при регистрации
<--- SIP read from UDP:192.168.18.196:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.18.85:5060;branch=z9hG4bK2e39221d
From: "asterisk" <sip:asterisk@192.168.18.85>;tag=as1488e1f3
To: <sip:192.168.18.196>;tag=1c1506875646
Call-ID: 5e8a9f1b406e136e200b006b27b9a9bf@192.168.18.85:5060
CSeq: 102 OPTIONS
Contact: <sip:3015551005@192.168.18.196>
Supported: em,100rel,timer,replaces,path,resource-priority
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Server: Audiocodes-Sip-Gateway-Mediant 2000/v.5.60A.027.002
X-Resources: telchs=30/0;mediachs=0/0
Accept: application/sdp, application/simple-message-summary, message/sipfrag
Content-Type: application/sdp
Content-Length: 302
v=0
o=AudiocodesGW 1506891769 1506891391 IN IP4 192.168.18.196
s=Phone-Call
c=IN IP4 192.168.18.196
t=0 0
m=audio 6000 RTP/AVP 8 0 4 96
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 14 lines) ---
Really destroying SIP dialog '5e8a9f1b406e136e200b006b27b9a9bf@192.168.18.85:5060' Method: OPTIONS
REGISTER 10 headers, 0 lines
Reliably Transmitting (no NAT) to 192.168.18.196:5060:
REGISTER sip:192.168.18.196 SIP/2.0
Via: SIP/2.0/UDP 192.168.18.85:5060;branch=z9hG4bK2e5824b5
Max-Forwards: 70
From: <sip:3015551005@192.168.18.196>;tag=as70b04df7
To: <sip:3015551005@192.168.18.196>
Call-ID: 1645ea724acdf9d22550adbc19913070@127.0.0.1
CSeq: 346 REGISTER
User-Agent: asterisk_DTS
Expires: 120
Contact: <sip:m2000@192.168.18.85:5060>
Content-Length: 0
а вот что в логе у медианта
1d:6h:57m:59s REGISTER sip:m2000 SIP/2.0
Via: SIP/2.0/UDP 192.168.18.196;branch=z9hG4bKac1543601221
Max-Forwards: 70
From: <sip:3015551005@m2000>;tag=1c1543588408
To: <sip:3015551005@m2000>
Call-ID: 49065978611201034129@192.168.18.196
CSeq: 513 REGISTER
Contact: <sip:3015551005@192.168.18.196>;expires=3600
Supported: em,timer,replaces,path,resource-priority
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
Expires: 3600
User-Agent: Audiocodes-Sip-Gateway-Mediant 2000/v.5.60A.027.002
Content-Length: 0
---
Пните в правильном направлении)))