выполнил некоторые рекомендации из соседней темы
надо только выполнить команды после того как зацепились на addpac telnetom
conf t
debug-port
exit
debug voip sip
debug voip call
Сделайте входящий вызов на этот addpac и результат, который увидете на экране кидайте сюда.
no deb all - выключает дебаг.
что получилось:
Код:
AP200B - Login : root at tty/1 on Wed Jul 2 19:29:26 2014
AP200B # conf t
Enter configuration commands, one per line. End with CNTL/Z
AP200B (config)# debug-port
AP200B (config)# exit
AP200B # debug voip sip
AP200B # debug voip call
AP200B # 1 <Time 0> : SIP_TREGISTER timer timeout.
2 <SIP 0> : Adding authentication information
3 <SIP 7> : Send REGISTER Request
Sending SIP PDU to ( 46.165.205.200:5060 ) from 5060
REGISTER sip:46.165.205.200 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.105:5060;branch=z9hG4bK2c531d00a47
From: <sip:1359037300@46.165.205.200>;tag=2c531d00a4
To: sip:1359037300@46.165.205.200
Call-ID: 2c5db453-6475-1d97-8000-0002a403047a@192.168.1.105
CSeq: 7 REGISTER
Date: Wed, 02 Jul 2014 19:30:04 GMT
User-Agent: AddPac SIP Gateway
Authorization: Digest username="1359037300", realm="asterisk", nonce="69c38056", uri="sip:46.165.205.200", response="f4aa4d358054b326bd8ce44c7153d605", algorithm=MD5
Contact: <sip:1359037300@192.168.1.105>;expires=60
Expires: 60
Content-Length: 0
Max-Forwards: 70
Received SIP PDU from ( 46.165.205.200:5060 )
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.105:5060;branch=z9hG4bK2c531d00a47;received=89.178.213.1
From: <sip:1359037300@46.165.205.200>;tag=2c531d00a4
To: sip:1359037300@46.165.205.200;tag=as2b898fcb
Call-ID: 2c5db453-6475-1d97-8000-0002a403047a@192.168.1.105
CSeq: 7 REGISTER
User-Agent: VirtualPBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="784c41a1"
Content-Length: 0
4 <SIP 7> : Receive 401 Unauthorized
5 <SIP 7> : Transaction (7 REGISTER) completed
6 <SIP 0> : No opaque in authentication
7 <SIP 0> : Adding authentication information
8 <SIP 8> : Send REGISTER Request
Sending SIP PDU to ( 46.165.205.200:5060 ) from 5060
REGISTER sip:46.165.205.200 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.105:5060;branch=z9hG4bK2c531d00a48
From: <sip:1359037300@46.165.205.200>;tag=2c531d00a4
To: sip:1359037300@46.165.205.200
Call-ID: 2c5db453-6475-1d97-8000-0002a403047a@192.168.1.105
CSeq: 8 REGISTER
Date: Wed, 02 Jul 2014 19:30:05 GMT
User-Agent: AddPac SIP Gateway
Authorization: Digest username="1359037300", realm="asterisk", nonce="784c41a1", uri="sip:46.165.205.200", response="4aed72b05f93f332105af543995cbe24", algorithm=MD5
Contact: <sip:1359037300@192.168.1.105>;expires=60
Expires: 60
Content-Length: 0
Max-Forwards: 70
Received SIP PDU from ( 46.165.205.200:5060 )
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.105:5060;branch=z9hG4bK2c531d00a48;received=89.178.213.1
From: <sip:1359037300@46.165.205.200>;tag=2c531d00a4
To: sip:1359037300@46.165.205.200;tag=as2b898fcb
Call-ID: 2c5db453-6475-1d97-8000-0002a403047a@192.168.1.105
CSeq: 8 REGISTER
User-Agent: VirtualPBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Expires: 60
Contact: <sip:1359037300@192.168.1.105>;expires=60
Date: Wed, 02 Jul 2014 15:30:29 GMT
Content-Length: 0
9 <SIP 8> : Receive 200 OK
10 <SIP 8> : Transaction (8 REGISTER) completed
11 <SIP 7> : Set Terminated Success for 7 REGISTER
12 <SIP 8> : Set Terminated Success for 8 REGISTER
Received SIP PDU from ( 46.165.205.200:5060 )
INVITE sip:1359037300@192.168.1.105 SIP/2.0
Via: SIP/2.0/UDP 46.165.205.200:5060;branch=z9hG4bK31503c90;rport
Max-Forwards: 70
From: "79268750203" <sip:79268750203@46.165.205.200>;tag=as072738a5
To: <sip:1359037300@192.168.1.105>
Contact: <sip:79268750203@46.165.205.200>
Call-ID: 2f295406575322fa55f620f44d30cca2@46.165.205.200
CSeq: 102 INVITE
User-Agent: VirtualPBX
Date: Wed, 02 Jul 2014 15:30:45 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 460
v=0
o=root 1333885865 1333885865 IN IP4 46.165.205.200
s=Asterisk PBX 1.6.0.28
c=IN IP4 46.165.205.200
b=CT:384
t=0 0
m=audio 10786 RTP/AVP 8 0 18 110 9 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:110 speex/8000
a=rtpmap:9 G722/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
m=video 10838 RTP/AVP 34
a=rtpmap:34 H263/90000
a=sendrecv
Sending SIP PDU to ( 46.165.205.200:5060 ) from 5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 46.165.205.200:5060;branch=z9hG4bK31503c90;rport
From: "79268750203" <sip:79268750203@46.165.205.200>;tag=as072738a5
To: <sip:1359037300@192.168.1.105>
Call-ID: 2f295406575322fa55f620f44d30cca2@46.165.205.200
CSeq: 102 INVITE
User-Agent: AddPac SIP Gateway
Content-Length: 0
13 <Call 1> : ****************** Call Created status(InitiatedByNet) *******************
14 <SIP 1> : Receive INVITE Request
15 <NetCon 1> : Found inbound voip peer by dest-pattern id(16)
16 <Call 1> : From Net - calledParty(1359037300) callingParty(79268750203)
17 <Call 1> : MatchedPerfect
18 <Call 1> : MatchAllProcess After Sorted
<0> id(0) dest(1359037300) prefer(0) selected(0)
19 <Call 1> : Initiate callee with dial-peer(1359037300) status(CalleeDeterminedAll) id(00000000-0000-0000-0000-000000000000)
20 <CEP 000000> : InitiateOutCall : calledNum(), callingNum(79268750203), callerPort(ffffffff) type(FXS)
21 <CEP 000000> : Outbound call to CEP callId(00000000-0000-0000-0000-000000000000) callNum(1)
22 <SIP 1> : SetAlerting
Sending SIP PDU to ( 46.165.205.200:5060 ) from 5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 46.165.205.200:5060;branch=z9hG4bK31503c90;rport
From: "79268750203" <sip:79268750203@46.165.205.200>;tag=as072738a5
To: <sip:1359037300@192.168.1.105>;tag=cc53af01a4
Call-ID: 2f295406575322fa55f620f44d30cca2@46.165.205.200
CSeq: 102 INVITE
User-Agent: AddPac SIP Gateway
Contact: sip:1359037300@192.168.1.105
Content-Length: 0