Добрый день,
Прошу помочь. Много искал, читал и всего перепробовал.
Шлюз для ip-телефонии - AddPac ap100b
Оператор sip-телефонии:
www.mango-office.ruПолучилось настроить исходящие вызовы, но входящие не идут.
Звоню с мобильного, вызов не идет, сразу - "Абонент не отвечает..."
Но в дебаге видна попытка входящего.
Ниже привел конфиг и отладочную информацию.
Конфиг:
Код:
!
! APOS(tm) configuration saved from vty
! 1970/ 1/ 1 00:28:20 !
version 8.41.089
!
hostname AP100B
!
username root password router administrator
!
!
interface Loopback0
ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
ip address dhcp
ip dhcp unicast
ip stun-server mangosip.ru
ip nat outside
speed auto
no qos-control
!
interface FastEthernet0/1
ip address 192.168.10.1 255.255.255.0
ip nat inside
speed auto
no qos-control
!
! ip route 0.0.0.0 0.0.0.0 192.168.0.1 via dhcp
!
access-list 100 permit ip 192.168.10.0 0.0.0.255 any
!
!
ip nat inside source list 100 interface FastEthernet0/0 overload
!
!
ip dhcp pool default
network 192.168.10.0 255.255.255.0
range 192.168.10.2 192.168.10.102
routers 192.168.10.1
domain-name-servers 192.168.0.97
!
snmp name AP100B_G2
!
!
dhcp server
ftp server
http server
!
!
! dns name-server 192.168.0.1 via dhcp
!
!
logging event 0-emergency
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
busyout monitor gatekeeper
busyout monitor sip-server
no busyout monitor callagent
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
caller-id enable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 308
port 0/0
call-waiting
user-name gp.komendan
user-password 12341234
! preference 1
! no register e164
! destination-pattern 78124072...
!
!
!
! Voip peer configuration.
!
dial-peer voice 1000 voip
destination-pattern T
session target sip-server
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
!
!
!
!
!
! Gateway configuration.
!
gateway
h323-id voip.192.168.0.158
no ignore-msg-from-other-gk
! public-ip 193.104.....
! register
!
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g711alaw
codec preference 2 g729
! codec preference 3 g711ulaw
! codec preference 4 g711alaw
!
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-username gp.komendan
sip-password 12341234
sip-server inline-ltd.mangosip.ru
signaling-port 5069
remote-party-id
register gateway
timeout treg 1800
! register e164
!
!
!
!
!
! MGCP configuration.
!
mgcp
vad
!
!
! Tones
!
!
!
!
line console
!
line vty
!
!
sms
quota 30
!
Код:
Received SIP PDU from ( 81.88.86.11:5060 )
INVITE sip:192.168.0.158:5069 SIP/2.0
Via: SIP/2.0/UDP 81.88.86.11:5060;branch=z9hG4bK9fe4.f3e0b2b1.0
Max-Forwards: 69
Contact: <sip:79052059567@81.88.86.11;did=2ce.42441794>
To: <sip:gp.komendan@inline-ltd.mangosip.ru>
From: "79052059567"<sip:79052059567@mangosip.ru>;tag=3fad4f16
Call-ID: MTkzYWNmMTE4NmFjZmRhY2NiMzY0NzcwYjEyNGU0M2Q.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REGISTER, INFO, REFER, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: Softswitch2
Content-Length: 254
x-comm-id: 441:94332111
x-comm-context: 1407577768
Diversion: <tel:78124072432>;counter=1;reason=unconditional
v=0
o=- 145552192 145552192 IN IP4 81.88.86.71
s=-
c=IN IP4 81.88.86.71
t=0 0
m=audio 15084 RTP/AVP 8 18 96
c=IN IP4 81.88.86.71
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000
a=sdpmangled:yes
Sending SIP PDU to ( 81.88.86.11:5060 ) from 5069
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 81.88.86.11:5060;branch=z9hG4bK9fe4.f3e0b2b1.0
From: "79052059567"<sip:79052059567@mangosip.ru>;tag=3fad4f16
To: <sip:gp.komendan@inline-ltd.mangosip.ru>
Call-ID: MTkzYWNmMTE4NmFjZmRhY2NiMzY0NzcwYjEyNGU0M2Q.
CSeq: 1 INVITE
User-Agent: AddPac SIP Gateway
Content-Length: 0
61 <Call 7> : ****** Call Created status(InitiatedByNet) ver(8.28:2006-02-06-00-00) time(2760) ****
62 <SIP 7> : Receive INVITE Request
63 <NetCon 7> : Found inbound voip peer by dest-pattern id(1000)
64 <Call 7> : From Net - calledParty() callingParty(79052059567)
65 <Call 7> : Terminated from(fffffff7) this(Local:InvalidNumber) before(NULL) forced(0) time(2760)
Sending SIP PDU to ( 81.88.86.11:5060 ) from 5069
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 81.88.86.11:5060;branch=z9hG4bK9fe4.f3e0b2b1.0
From: "79052059567"<sip:79052059567@mangosip.ru>;tag=3fad4f16
To: <sip:gp.komendan@inline-ltd.mangosip.ru>;tag=c8006508a4
Call-ID: MTkzYWNmMTE4NmFjZmRhY2NiMzY0NzcwYjEyNGU0M2Q.
CSeq: 1 INVITE
User-Agent: AddPac SIP Gateway
Content-Length: 0
66 <NetEP 7> : Call FROM <79052059567> terminated reason(Local:InvalidNumber)
Received SIP PDU from ( 81.88.86.11:5060 )
ACK sip:192.168.0.158:5069 SIP/2.0
Via: SIP/2.0/UDP 81.88.86.11:5060;branch=z9hG4bK9fe4.f3e0b2b1.0
From: "79052059567"<sip:79052059567@mangosip.ru>;tag=3fad4f16
Call-ID: MTkzYWNmMTE4NmFjZmRhY2NiMzY0NzcwYjEyNGU0M2Q.
To: <sip:gp.komendan@inline-ltd.mangosip.ru>;tag=c8006508a4
CSeq: 1 ACK
Max-Forwards: 70
User-Agent: Mango SIP
Content-Length: 0
67 <SIP 7> : Receive ACK Request