Код: Выделить всё
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Using SIP VRTP TOS bits 136
== Using SIP VRTP CoS mark 6
== Using UDPTL TOS bits 184
== Using UDPTL CoS mark 5
Trunk Name: GSMVOIP-01
PEER Details:
host=<IP-адрес Asterisk>
port=5060
type=peer
Код: Выделить всё
[sip_dnepr_800_out]
host=<внешний IP шлюза>
type=peer
qualify=yes
canreinvite=yes
insecure=port,invite
nat=yes
context=from-trunk-sip-sip_dnepr_800_out
Код: Выделить всё
[sip_mir2_401_out]
username=401
type=peer
qualify=yes
nat=yes
insecure=port,invite
host=<внешний IP шлюза>
canreinvite=yes
context=from-trunk-sip-sip_mir2_401_out
Код: Выделить всё
REGISTER sip:82.209.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 178.124.XXX.XXX:5060;branch=z9hG4bK45c7cfcb;rport
Max-Forwards: 70
From: <sip:401@82.209.XXX.XXX>;tag=as7d793271
To: <sip:401@82.209.XXX.XXX>
Call-ID: 5b18bf012bf498c118dbfd4d74227e0b@127.0.0.1
CSeq: 2786 REGISTER
User-Agent: FPBX-2.10.0(1.8.11.0)
Expires: 120
Contact: <sip:401@178.124.XXX.XXX:5060>
Content-Length: 0
<--- SIP read from UDP:82.209.XXX.XXX:5060 --->
REGISTER sip:178.124.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.100.2:5060;branch=z9hG4bK1417518571
From: "401" <sip:401@192.168.2.251:5060>;tag=1202222525
To: "401" <sip:401@192.168.2.251:5060>
Call-ID: 1501713139@192.168.100.2
CSeq: 9 REGISTER
Contact: <sip:401@192.168.100.2:5060>
Max-Forwards: 30
User-Agent: dble
Content-Length: 0
Код: Выделить всё
[sip_mir2_404_in]
type=user
context=from-trunk
host=dynamic /пробовал вбивать внешний ип шлюза - не регится/
nat=yes
Код: Выделить всё
401:Secret@82.209.XXX.XXX/401
Код: Выделить всё
<--- SIP read from UDP:82.209.XXX.XXX:5060 --->
REGISTER sip:178.124.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 82.209.XXX.XXX:5060;branch=z9hG4bK384587299
From: "801" <sip:801@192.168.2.251:5060>;tag=91460367
To: "801" <sip:801@192.168.2.251:5060>
Call-ID: 133106176@82.209.XXX.XXX
CSeq: 575 REGISTER
Contact: <sip:801@82.209.XXX.XXX:5060>;expires=60
Authorization: Digest username="801", realm="asterisk", nonce="7df4bca2", uri="sip:178.124.XXX.XXX", response="1b91bc3080dc0dbdf0c2b9b30807c920", algorithm=MD5
Max-Forwards: 30
User-Agent: dble
Expires: 60
Content-Length: 0
<------------->
<--- Transmitting (NAT) to 82.209.XXX.XXX:5060 --->
SIP/2.0 403 Forbidden (Bad auth)
Via: SIP/2.0/UDP 82.209.XXX.XXX:5060;branch=z9hG4bK384587299;received=82.209.XXX.XXX;rport=5060
From: "801" <sip:801@192.168.2.251:5060>;tag=91460367
To: "801" <sip:801@192.168.2.251:5060>;tag=as05a5658d
Call-ID: 133106176@82.209.XXX.XXX
CSeq: 575 REGISTER
Server: FPBX-2.10.0(1.8.11)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Код: Выделить всё
<--- SIP read from UDP:82.209.XXX.XXX:5060 --->
REGISTER sip:178.124.XXX.XXXSIP/2.0
Via: SIP/2.0/UDP 82.209.XXX.XXX:5060;branch=z9hG4bK214595555
From: "801" <sip:801@192.168.2.251:5060>;tag=527400065
To: "801" <sip:801@192.168.2.251:5060>
Call-ID: 133106176@82.209.XXX.XXX
CSeq: 707 REGISTER
Contact: <sip:801@82.209.XXX.XXX:5060>;expires=60
Authorization: Digest username="801", realm="asterisk", nonce="5604bd0c", uri="sip:178.124.XXX.XXX", response="79753a0aaf781d5270b718828c8192fd", algorithm=MD5
Max-Forwards: 30
User-Agent: dble
Expires: 60
Content-Length: 0
<--- Transmitting (NAT) to 82.209.XXX.XXX:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 82.209.XXX.XXX:5060;branch=z9hG4bK214595555;received=82.209.XXX.XXX;rport=5060
From: "801" <sip:801@192.168.2.251:5060>;tag=527400065
To: "801" <sip:801@192.168.2.251:5060>;tag=as05a5658d
Call-ID: 133106176@82.209.XXX.XXX
CSeq: 707 REGISTER
Server: FPBX-2.10.0(1.8.11)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="33ca078a"
Content-Length: 0