Re: Несколько непонятностей в работе *.
<--- SIP read from [IP_PHONE_PUBLIC]:10033 --->
INVITE sip:89092507653@[IP_ASTERISK] SIP/2.0
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK005ef6017cace76f61bb10b25efd421f
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 1 INVITE
Contact: <sip:202@[IP_PHONE_LOCAL]>
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 274
v=0
o=- 6662 6662 IN IP4 [IP_PHONE_LOCAL]
s=SIP Session
c=IN IP4 [IP_PHONE_LOCAL]
t=0 0
m=audio 10002 RTP/AVP 4 0 8 18 101
a=rtpmap:4 G723/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=ptime:60
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (10 headers 13 lines) ---
**** Received INVITE (5) - Command in SIP INVITE
Sending to [IP_PHONE_LOCAL] : 5060 (no NAT) // почему он шлет на локальный ИП и без НАТа??
Using INVITE request as basis request - 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
Found user '202' for '202'
SoftSwitch*CLI>
<--- Reliably Transmitting (NAT) to [IP_PHONE_PUBLIC]:10033 --->
SIP/2.0 401 Unauthorized // почему анавторайзд?.. не понятно...
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK005ef6017cace76f61bb10b25efd421f;received=[IP_PHONE_PUBLIC]
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>;tag=as08a12b42
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7c604260"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]' in 32000 ms (Method: INVITE)
SoftSwitch*CLI>
<--- SIP read from [IP_PHONE_PUBLIC]:10033 --->
ACK sip:89092507653@[IP_ASTERISK] SIP/2.0
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK005ef6017cace76f61bb10b25efd421f
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>;tag=as08a12b42
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0
<------------->
**** Received ACK (6) - Command in SIP ACK
setting state to INV_CONFIRMED
SoftSwitch*CLI>
<--- SIP read from [IP_PHONE_PUBLIC]:10033 --->
INVITE sip:89092507653@[IP_ASTERISK] SIP/2.0
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK88b0d673c242e26c64e2c6000feabdb0
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 2 INVITE
Contact: <sip:202@[IP_PHONE_LOCAL]>
Max-Forwards: 70
Authorization: Digest
algorithm=MD5,nonce="7c604260",realm="asterisk",response="ce04b5a9604103aecb2ab877ba198bda",uri="sip:89092507653@[IP_ASTERISK]:5060",username="202"
Content-Type: application/sdp
Content-Length: 274
v=0
o=- 6662 6662 IN IP4 [IP_PHONE_LOCAL]
s=SIP Session
c=IN IP4 [IP_PHONE_LOCAL]
t=0 0
m=audio 10002 RTP/AVP 4 0 8 18 101
a=rtpmap:4 G723/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=ptime:60
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
**** Received INVITE (5) - Command in SIP INVITE
Sending to [IP_PHONE_PUBLIC] : 10033 (NAT)
Using INVITE request as basis request - 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
Found user '202' for '202'
Found RTP audio format 4
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 101
Peer audio RTP is at port [IP_PHONE_LOCAL]:10002
Found description format G723 for ID 4
Found description format PCMU for ID 0
Found description format PCMA for ID 8
Found description format G729 for ID 18
Found description format telephone-event for ID 101
Capabilities: us - 0xc (ulaw|alaw), peer - audio=0x10d (g723|ulaw|alaw|g729)/video=0x0 (nothing), combined - 0xc (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port [IP_PHONE_LOCAL]:10002
Looking for 89092507653 in kvant-4users (domain [IP_ASTERISK])
list_route: hop: <sip:202@[IP_PHONE_LOCAL]>
<--- Transmitting (NAT) to [IP_PHONE_PUBLIC]:10033 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK88b0d673c242e26c64e2c6000feabdb0;received=[IP_PHONE_PUBLIC]
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:89092507653@[IP_ASTERISK]>
Content-Length: 0
<------------>
Audio is at [IP_ASTERISK] port 18088
Adding codec 0x8 (alaw) to SDP
Adding codec 0x4 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Кидает киске инвайт...
Reliably Transmitting (no NAT) to [IP_CISCO]:5060:
INVITE sip:777#89092507653@[IP_CISCO] SIP/2.0
Via: SIP/2.0/UDP [IP_ASTERISK]:5060;branch=z9hG4bK42677e11;rport
Max-Forwards: 70
From: "gtw-2" <sip:96192@[IP_ASTERISK]>;tag=as190c7265
To: <sip:777#89092507653@[IP_CISCO]>
Contact: <sip:96192@[IP_ASTERISK]>
Call-ID: 55e5cf0a4602c1f371aa538f51faee38@[IP_ASTERISK]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Date: Wed, 20 Dec 2006 10:53:53 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 266
v=0
o=root 3636 3636 IN IP4 [IP_ASTERISK]
s=session
c=IN IP4 [IP_ASTERISK]
t=0 0
m=audio 18088 RTP/AVP 8 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
А после этого не долго думаю не дождавшись ответа от киски тут же кидает на телефон 180 Ringing
<--- Transmitting (NAT) to [IP_PHONE_PUBLIC]:10033 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK88b0d673c242e26c64e2c6000feabdb0;received=[IP_PHONE_PUBLIC]
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>;tag=as419e582e
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:89092507653@[IP_ASTERISK]>
Content-Length: 0
<------------>
SoftSwitch*CLI>
<--- SIP read from [IP_CISCO]:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP [IP_ASTERISK]:5060;branch=z9hG4bK42677e11;rport
From: "gtw-2" <sip:96192@[IP_ASTERISK]>;tag=as190c7265
To: <sip:777#89092507653@[IP_CISCO]>;tag=25F144-279
Date: Mon, 01 Mar 1993 00:41:26 GMT
Call-ID: 55e5cf0a4602c1f371aa538f51faee38@[IP_ASTERISK]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 INVITE
Allow-Events: telephone-event
Content-Length: 0
<------------->
Нет свободных таймслотов в Е1, киска возвращает 503 Service unavailable
<--- SIP read from [IP_CISCO]:5060 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP [IP_ASTERISK]:5060;branch=z9hG4bK42677e11;rport
From: "gtw-2" <sip:96192@[IP_ASTERISK]>;tag=as190c7265
To: <sip:777#89092507653@[IP_CISCO]>;tag=25F144-279
Date: Mon, 01 Mar 1993 00:41:26 GMT
Call-ID: 55e5cf0a4602c1f371aa538f51faee38@[IP_ASTERISK]
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 INVITE
Allow-Events: telephone-event
Content-Length: 0
<------------->
transmit_request ACK
Transmitting (no NAT) to [IP_CISCO]:5060:
ACK sip:777#89092507653@[IP_CISCO] SIP/2.0
Via: SIP/2.0/UDP [IP_ASTERISK]:5060;branch=z9hG4bK42677e11;rport
Max-Forwards: 70
From: "gtw-2" <sip:96192@[IP_ASTERISK]>;tag=as190c7265
To: <sip:777#89092507653@[IP_CISCO]>;tag=25F144-279
Contact: <sip:96192@[IP_ASTERISK]>
Call-ID: 55e5cf0a4602c1f371aa538f51faee38@[IP_ASTERISK]
CSeq: 102 ACK
User-Agent: Asterisk PBX
Content-Length: 0
---
chan_sip1 sip_hangup flags invitestate 5 0x8042001 data <INVITE>
chan_sip1 sip_hangup flags now 0x8042003
Scheduling destruction of SIP dialog '48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]' in 32000 ms (Method: INVITE)
chan_sip1 sip_hangup flags invitestate 3 0x80c000c data <INVITE>
<--- Reliably Transmitting (NAT) to [IP_PHONE_PUBLIC]:10033 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK88b0d673c242e26c64e2c6000feabdb0;received=[IP_PHONE_PUBLIC]
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>;tag=as419e582e
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:89092507653@[IP_ASTERISK]>
Content-Length: 0
<------------>
chan_sip1 sip_hangup flags now 0x80c000c
<--- SIP read from [IP_PHONE_PUBLIC]:10033 --->
ACK sip:89092507653@[IP_ASTERISK] SIP/2.0
Via: SIP/2.0/UDP [IP_PHONE_LOCAL]:5060;branch=z9hG4bK88b0d673c242e26c64e2c6000feabdb0
From: 202 <sip:202@[IP_ASTERISK]>;tag=4dd12ed7
To: 89092507653 <sip:89092507653@[IP_ASTERISK]>;tag=as419e582e
Call-ID: 48e6b7605b111c26107f984177c74ae5@[IP_PHONE_LOCAL]
CSeq: 2 ACK
Max-Forwards: 70
Content-Length: 0
<------------->
**** Received ACK (6) - Command in SIP ACK
setting state to INV_CONFIRMED
|