Debugging 星号对星号呼叫:403禁止

Debugging 星号对星号呼叫:403禁止,debugging,asterisk,sip,trunk,Debugging,Asterisk,Sip,Trunk,我有两台上面有星号的服务器:192.168.241.98和192.168.243.112 第一次注册时存在有效注册: register => wagateway:qwerty@192.168.243.112:5060 CLI输出: CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time

我有两台上面有星号的服务器:192.168.241.98和192.168.243.112

第一次注册时存在有效注册:

register => wagateway:qwerty@192.168.243.112:5060
CLI输出:

CLI> sip show registry
Host                                    dnsmgr Username       Refresh State                Reg.Time                 
192.168.243.112:5060                    N      wagateway          105 Registered           Wed, 26 Jun 2013 16:42:42
243.112上的同龄人都很好:

CLI> sip show peers
Name/username             Host                                    Dyn Forcerport ACL Port     Status      Description                      
wacaller/wacaller         192.168.242.235                          D   a             5062     OK (13 ms)                                          
wagateway/s               192.168.241.98                           D   a             5060     OK (1 ms)
243.112上的extensions.conf:

[watest]

exten => 123123123,1,NoOp()
exten => 123123123,n,Dial(SIP/wagateway)
exten => 123123123,n,Hangup()
[wacaller]
type=friend
secret=qwerty
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw

[wagateway]
type=friend
secret=qwerty
fromuser=wagateway
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw
<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412

v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (16 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062

<--- Reliably Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4f84bef0"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)

<--- SIP read from UDP:192.168.242.235:5062 --->
ACK sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 ACK
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---

<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Authorization: Digest username="wacaller", realm="asterisk", nonce="4f84bef0", uri="sip:123123123@192.168.243.112", response="53cdb5b8c1822c80870faab15a6dc6d2", algorithm=MD5
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412

v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 4
Found RTP audio format 18
Found RTP audio format 9
Found RTP audio format 97
Found RTP audio format 2
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G723 for ID 4
Found audio description format G729 for ID 18
Found audio description format G722 for ID 9
Found audio description format iLBC for ID 97
Found audio description format G726-32 for ID 2
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw|h263|testlaw), peer - audio=(g723|ulaw|alaw|g726|g729|ilbc|g722)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.242.235:5004
Looking for 123123123 in watest (domain 192.168.243.112)
list_route: route/path hop: <sip:wacaller@192.168.242.235:5062>

<--- Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123123123@192.168.243.112:5060>
Content-Length: 0


<------------>
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326

v=0
o=root 2059284449 2059284449 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---

<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="603b4bbf"
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0


---
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Authorization: Digest username="s", realm="asterisk", algorithm=MD5, uri="sip:s@192.168.241.98:5060", nonce="603b4bbf", response="059cae207fb81fb76ea9061f71258895"
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326

v=0
o=root 2059284449 2059284450 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---

<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (10 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0


---
[Jun 26 16:31:48] WARNING[20447][C-0000000a]: chan_sip.c:23213 handle_response_invite: Received response: "Forbidden" from '"WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a'
Scheduling destruction of SIP dialog '758899861bee35980dadd87912ef805a@192.168.243.112:5060' in 6400 ms (Method: INVITE)
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)
关于243.112的sip.conf:

[watest]

exten => 123123123,1,NoOp()
exten => 123123123,n,Dial(SIP/wagateway)
exten => 123123123,n,Hangup()
[wacaller]
type=friend
secret=qwerty
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw

[wagateway]
type=friend
secret=qwerty
fromuser=wagateway
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw
<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412

v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (16 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062

<--- Reliably Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4f84bef0"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)

<--- SIP read from UDP:192.168.242.235:5062 --->
ACK sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 ACK
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---

<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Authorization: Digest username="wacaller", realm="asterisk", nonce="4f84bef0", uri="sip:123123123@192.168.243.112", response="53cdb5b8c1822c80870faab15a6dc6d2", algorithm=MD5
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412

v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 4
Found RTP audio format 18
Found RTP audio format 9
Found RTP audio format 97
Found RTP audio format 2
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G723 for ID 4
Found audio description format G729 for ID 18
Found audio description format G722 for ID 9
Found audio description format iLBC for ID 97
Found audio description format G726-32 for ID 2
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw|h263|testlaw), peer - audio=(g723|ulaw|alaw|g726|g729|ilbc|g722)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.242.235:5004
Looking for 123123123 in watest (domain 192.168.243.112)
list_route: route/path hop: <sip:wacaller@192.168.242.235:5062>

<--- Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123123123@192.168.243.112:5060>
Content-Length: 0


<------------>
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326

v=0
o=root 2059284449 2059284449 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---

<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="603b4bbf"
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0


---
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Authorization: Digest username="s", realm="asterisk", algorithm=MD5, uri="sip:s@192.168.241.98:5060", nonce="603b4bbf", response="059cae207fb81fb76ea9061f71258895"
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326

v=0
o=root 2059284449 2059284450 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---

<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (10 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0


---
[Jun 26 16:31:48] WARNING[20447][C-0000000a]: chan_sip.c:23213 handle_response_invite: Received response: "Forbidden" from '"WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a'
Scheduling destruction of SIP dialog '758899861bee35980dadd87912ef805a@192.168.243.112:5060' in 6400 ms (Method: INVITE)
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)
现在我试着从wacaller的Grandstream手机拨打123123

243.112 CLI说:

[Jun 27 09:27:54] WARNING[20447][C-0000000b]: chan_sip.c:23213 handle_response_invite: Received response: "Forbidden" from '"WACaller" <sip:wagateway@192.168.243.112>;tag=as30b27eae'
[Jun 27 09:27:54]警告[20447][C-0000000 b]:chan_sip.C:23213处理响应邀请:收到来自“WACaller”的响应:“禁止”;标签=as30b27eae'
243.112上的Sip调试:

[watest]

exten => 123123123,1,NoOp()
exten => 123123123,n,Dial(SIP/wagateway)
exten => 123123123,n,Hangup()
[wacaller]
type=friend
secret=qwerty
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw

[wagateway]
type=friend
secret=qwerty
fromuser=wagateway
host=dynamic
context=watest
qualify=yes
allow=ulaw
allow=alaw
<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412

v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (16 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062

<--- Reliably Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4f84bef0"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)

<--- SIP read from UDP:192.168.242.235:5062 --->
ACK sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK97733114;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>;tag=as5a3de236
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 240 ACK
Content-Length: 0

<------------->
--- (7 headers 0 lines) ---

<--- SIP read from UDP:192.168.242.235:5062 --->
INVITE sip:123123123@192.168.243.112 SIP/2.0
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;rport
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Contact: "WACaller" <sip:wacaller@192.168.242.235:5062>
Authorization: Digest username="wacaller", realm="asterisk", nonce="4f84bef0", uri="sip:123123123@192.168.243.112", response="53cdb5b8c1822c80870faab15a6dc6d2", algorithm=MD5
Max-Forwards: 70
User-Agent: Grandstream GXP1400 1.0.4.13
Privacy: none
P-Preferred-Identity: "WACaller" <sip:wacaller@192.168.243.112>
Supported: replaces, path, timer
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE, MESSAGE
Content-Type: application/sdp
Accept: application/sdp, application/dtmf-relay
Content-Length: 412

v=0
o=wacaller 8000 8000 IN IP4 192.168.242.235
s=SIP Call
c=IN IP4 192.168.242.235
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
<------------->
--- (17 headers 19 lines) ---
Sending to 192.168.242.235:5062 (no NAT)
Using INVITE request as basis request - 298833112-5062-25@BJC.BGI.CEC.CDF
Found peer 'wacaller' for 'wacaller' from 192.168.242.235:5062
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 4
Found RTP audio format 18
Found RTP audio format 9
Found RTP audio format 97
Found RTP audio format 2
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G723 for ID 4
Found audio description format G729 for ID 18
Found audio description format G722 for ID 9
Found audio description format iLBC for ID 97
Found audio description format G726-32 for ID 2
Found audio description format telephone-event for ID 101
Capabilities: us - (gsm|ulaw|alaw|h263|testlaw), peer - audio=(g723|ulaw|alaw|g726|g729|ilbc|g722)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.242.235:5004
Looking for 123123123 in watest (domain 192.168.243.112)
list_route: route/path hop: <sip:wacaller@192.168.242.235:5062>

<--- Transmitting (no NAT) to 192.168.242.235:5062 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.242.235:5062;branch=z9hG4bK1881861609;received=192.168.242.235;rport=5062
From: "WACaller" <sip:wacaller@192.168.243.112>;tag=1014197566
To: <sip:123123123@192.168.243.112>
Call-ID: 298833112-5062-25@BJC.BGI.CEC.CDF
CSeq: 241 INVITE
Server: Asterisk PBX SVN-trunk-r385782
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:123123123@192.168.243.112:5060>
Content-Length: 0


<------------>
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326

v=0
o=root 2059284449 2059284449 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---

<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="603b4bbf"
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK67b16b32;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0


---
Audio is at 17372
Adding codec 100003 (ulaw) to SDP
Adding codec 100004 (alaw) to SDP
Adding codec 100002 (gsm) to SDP
Adding codec 100017 (testlaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.241.98:5060:
INVITE sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
User-Agent: Asterisk PBX SVN-trunk-r385782
Authorization: Digest username="s", realm="asterisk", algorithm=MD5, uri="sip:s@192.168.241.98:5060", nonce="603b4bbf", response="059cae207fb81fb76ea9061f71258895"
Date: Wed, 26 Jun 2013 08:31:48 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 326

v=0
o=root 2059284449 2059284450 IN IP4 192.168.243.112
s=Asterisk PBX SVN-trunk-r385782
c=IN IP4 192.168.243.112
t=0 0
m=audio 17372 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

---

<--- SIP read from UDP:192.168.241.98:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;received=192.168.243.112;rport=5060
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 INVITE
Server: Asterisk PBX 1.8.12.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

<------------->
--- (10 headers 0 lines) ---
Transmitting (NAT) to 192.168.241.98:5060:
ACK sip:s@192.168.241.98:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.243.112:5060;branch=z9hG4bK6cd34725;rport
Max-Forwards: 70
From: "WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a
To: <sip:s@192.168.241.98:5060>;tag=as22eeeac0
Contact: <sip:wagateway@192.168.243.112:5060>
Call-ID: 758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq: 103 ACK
User-Agent: Asterisk PBX SVN-trunk-r385782
Content-Length: 0


---
[Jun 26 16:31:48] WARNING[20447][C-0000000a]: chan_sip.c:23213 handle_response_invite: Received response: "Forbidden" from '"WACaller" <sip:wagateway@192.168.243.112>;tag=as3f5f372a'
Scheduling destruction of SIP dialog '758899861bee35980dadd87912ef805a@192.168.243.112:5060' in 6400 ms (Method: INVITE)
Scheduling destruction of SIP dialog '298833112-5062-25@BJC.BGI.CEC.CDF' in 6400 ms (Method: INVITE)

邀请sip:123123123@192.168.243.112SIP/2.0
Via:SIP/2.0/UDP 192.168.242.235:5062;分支=z9hG4bK97733114;港口
来自:“WACaller”;标签=1014197566
致:
电话号码:298833112-5062-25@BJC.BGI.CEC.CDF
CSeq:240邀请
联系人:“WACaller”
最大前锋:70
用户代理:Grandstream GXP1400 1.0.4.13
隐私:无
P-首选标识:“WACaller”
支持:替换、路径、计时器
允许:邀请、确认、选项、取消、再见、订阅、通知、信息、参考、更新、消息
内容类型:应用程序/sdp
接受:应用程序/sdp、应用程序/dtmf继电器
内容长度:412
v=0
o=WA8000,IP4 192.168.242.235
s=SIP呼叫
c=在IP4 192.168.242.235中
t=0
m=音频5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=时间:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18附录B=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97模式=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101电话事件/8000
a=fmtp:101 0-15
---(16页眉19行)---
发送至192.168.242.235:5062(无NAT)
发送至192.168.242.235:5062(无NAT)
使用邀请请求作为基础请求-298833112-5062-25@BJC.BGI.CEC.CDF
从192.168.242.235:5062找到“wacaller”的对等“wacaller”
SIP/2.0 401未经授权
Via:SIP/2.0/UDP 192.168.242.235:5062;分支=z9hG4bK97733114;已接收=192.168.242.235;rport=5062
来自:“WACaller”;标签=1014197566
致:;标签=as5a3de236
电话号码:298833112-5062-25@BJC.BGI.CEC.CDF
CSeq:240邀请
服务器:星号PBX SVN-trunk-r385782
允许:邀请、确认、取消、选项、再见、参考、订阅、通知、信息、发布
支持:替换、定时器
WWW-Authenticate:Digest algorithm=MD5,realm=“asterisk”,nonce=“4f84bef0”
内容长度:0
计划销毁SIP对话框'298833112-5062-25@BJC.BGI.CEC.CDF'在6400毫秒内(方法:邀请)
确认sip:123123123@192.168.243.112SIP/2.0
Via:SIP/2.0/UDP 192.168.242.235:5062;分支=z9hG4bK97733114;港口
来自:“WACaller”;标签=1014197566
致:;标签=as5a3de236
电话号码:298833112-5062-25@BJC.BGI.CEC.CDF
CSeq:240确认
内容长度:0
---(7页眉0行)---
邀请sip:123123123@192.168.243.112SIP/2.0
Via:SIP/2.0/UDP 192.168.242.235:5062;分支=z9hG4bK1881861609;港口
来自:“WACaller”;标签=1014197566
致:
电话号码:298833112-5062-25@BJC.BGI.CEC.CDF
CSeq:241邀请
联系人:“WACaller”
授权:摘要username=“wacaller”,realm=“asterisk”,nonce=“4f84bef0”,uri=“sip:123123123@192.168.243.112,response=“53cdb5b8c1822c80870faab15a6dc6d2”,算法=MD5
最大前锋:70
用户代理:Grandstream GXP1400 1.0.4.13
隐私:无
P-首选标识:“WACaller”
支持:替换、路径、计时器
允许:邀请、确认、选项、取消、再见、订阅、通知、信息、参考、更新、消息
内容类型:应用程序/sdp
接受:应用程序/sdp、应用程序/dtmf继电器
内容长度:412
v=0
o=WA8000,IP4 192.168.242.235
s=SIP呼叫
c=在IP4 192.168.242.235中
t=0
m=音频5004 RTP/AVP 0 8 4 18 9 97 2 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=时间:20
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=fmtp:18附录B=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97模式=30
a=rtpmap:2 G726-32/8000
a=rtpmap:101电话事件/8000
a=fmtp:101 0-15
---(17页眉19行)---
发送至192.168.242.235:5062(无NAT)
使用邀请请求作为基础请求-298833112-5062-25@BJC.BGI.CEC.CDF
从192.168.242.235:5062找到“wacaller”的对等“wacaller”
找到RTP音频格式0
找到RTP音频格式8
找到RTP音频格式4
找到RTP音频格式18
找到RTP音频格式9
找到RTP音频格式97
找到RTP音频格式2
找到RTP音频格式101
找到ID为0的音频描述格式PCMU
找到ID为8的音频描述格式PCMA
找到ID为4的音频描述格式G723
找到ID为18的音频描述格式G729
找到ID 9的音频描述格式G722
找到ID 97的音频描述格式iLBC
找到ID 2的音频描述格式G726-32
找到ID 101的音频描述格式电话事件
能力:美国-(gsm | ulaw | alaw | h263 | testlaw),对等音频=(g723 | ulaw | alaw | g726 | g729 | ilbc | g722)/视频=(无)/文本=(无),组合-(ulaw | alaw)
非编解码器功能(dtmf):us-0x1(电话事件|)、对等-0x1(电话事件|)、组合-0x1(电话事件|)
对等音频RTP位于端口192.168.242.235:5004
在watest中查找123123(域192.168.243.112)
列表\路由:路由/路径跃点:
SIP/2.0 100
Via:SIP/2.0/UDP 192.168.242.235:5062;分支=z9hG4bK1881861609;已接收=192.168.242.235;rport=5062
来自:“WACaller”;标签=1014197566
致:
电话号码:298833112-5062-25@BJC.BGI.CEC.CDF
CSeq:241邀请
服务器:星号PBX SVN-trunk-r385782
允许:邀请、确认、取消、选项、再见、参考、订阅、通知、信息、发布
支持:替换、定时器
届会结束:1800;复习者=无人机
联系人:
内容长度:0
音频是17372
将编解码器100003(ulaw)添加到SDP
将编解码器100004(alaw)添加到SDP
将编解码器100002(gsm)添加到SDP
将编解码器100017(testlaw)添加到SDP
将非编解码器0x1(电话事件)添加到SDP
可靠传输(NAT)至192.168.241.98:5060:
邀请sip:s@192.168.241.98:5060 SIP/2.0
Via:SIP/2.0/UDP 192.168.243.112:5060;分支=z9hG4bK67b16b32;港口
最大前锋:70
来自:“WACaller”;标签=as3f5f372a
致:
联系人:
呼叫ID:758899861bee35980dadd87912ef805a@192.168.243.112:5060
CSeq:102邀请
用户代理:星号PBX SVN-trunk-r385782
日期:2013年6月26日星期三08:31:48 GMT
允许:邀请,邀请
[watest]

exten => 123123123,1,NoOp(Call comming from ${CALLERID(all)})
exten => 123123123,n,Answer()
exten => 123123123,n,PlayBack(tt-monkeys)
exten => 123123123,n,Hangup()