Login Form






Lost Password?
No account yet? Register
Home arrow Forums
ECharts
Welcome, Guest
more basic questions (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: more basic questions
#254
Russell Roy (User)
Junior Boarder
Posts: 39
graphgraph
User Offline Click here to see the profile of this user
more basic questions 1 Year, 5 Months ago  
These questions relate to the code snippet and related log file below.

1) Is there any way to know a priori the default behavior of processSIP in any given context? Originally I did register and then re-register w/ authorization only to find out at runtime that the authorized register is subsumed by processSIP. Not a big deal...still it would be nice to know what behavior to anticipate.

2) After successful register why is subsequent invite sent w/o authorization? (It's followed by a second invite w/ authorization...which succeeds.)

3) You'll see from the log that this test (unexpectedly) fails: alice sends bye w/ an invalid seq num (2 BYE should be 3 BYE). This is probably fallout from #2 above. If bob.end() instead of alice.end() then the test passes.

Russell

Code: :

              alice createAgent(Alice);             alice.setProxy(appServer);             logger.info("Alice is registering.");             alice.register(sipListenHostAliceAlice3600);             processSIP(2000);             assertThat(alicehas(recvdResponse(200)));             bob     createAgent(Bob);             bob.setProxy(appServer);             logger.info("Bob is registering.");             bob.register(sipListenHostBobBob3600);             processSIP(2000);             assertThat(bobhas(recvdResponse(200)));             alice.call(bob);             processSIP(2000);             assertThat(alicehas(recvdResponse(100)));             assertThat(bobhas(recvdRequest("INVITE")));             bob.answer();             processSIP(2000);             assertThat(aliceis(connected()));             assertThat(bobis(connected()));             processSIPAndCheckMedia(alicebob);                          alice.end();             processSIP(2000);             assertThat(aliceis(disconnected()));             assertThat(bobis(disconnected()));                          logger.info("Test passed");



-----------------------

1 [main] INFO KitCAT.Tester - running test setup
22 [main] INFO KitCAT.Tester - Running test runBeforeEachTest
432 [main] INFO KitCAT.Tester - Alice is registering.
563 [main] INFO KitCAT.Tester - 8389004001 sends REGISTER
642 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451265346"
isSender="true"
transactionId="z9hg4bk64aa3c5abc3678944c53331708392b73"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="REGISTER sip:tastest.bigcableco.com SIP/2.0"
>
<![CDATA[REGISTER sip:tastest.bigcableco.com SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 REGISTER
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK64aa3c5abc3678944c53331708392b73
Max-Forwards: 70
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Route: <sip:10.99.38.252:5060;lr>
Expires: 3600
User-Agent: Test Fmwk User Agent
Allow: INVITE,CANCEL,ACK,BYE
Content-Length: 0

]]>
</message>

688 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451265394"
isSender="false"
transactionId="z9hg4bk64aa3c5abc3678944c53331708392b73"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 401 Unauthorized"
>
<![CDATA[SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest realm="10.99.38.252",nonce="583ca363866dad6002445e3045a0f242",opaque="DEADBEEF"
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 REGISTER
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=73c6a63+1+1b10000+e97c90f1
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK64aa3c5abc3678944c53331708392b73
Server: Safari
Content-Length: 0

]]>
</message>

709 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451265415"
isSender="true"
transactionId="z9hg4bk7a771ec227b77f708c1132e7aff087a9"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="REGISTER sip:tastest.bigcableco.com SIP/2.0"
>
<![CDATA[REGISTER sip:tastest.bigcableco.com SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 REGISTER
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >
Max-Forwards: 70
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Route: <sip:10.99.38.252:5060;lr>
Expires: 3600
User-Agent: Test Fmwk User Agent
Allow: INVITE,CANCEL,ACK,BYE
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK7a771ec227b77f708c1132e7aff087a9
Authorization: Digest username="8389004001",realm="10.99.38.252",nonce="583ca363866dad6002445e3045a0f242",uri="sip:tastest.bigcableco.com",response="768502bb015b76aae12bb505872bca46",opaque="DEADBEEF"
Content-Length: 0

]]>
</message>

715 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451265421"
isSender="false"
transactionId="z9hg4bk7a771ec227b77f708c1132e7aff087a9"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 200 OK"
>
<![CDATA[SIP/2.0 200 OK
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=73c6a63+1+1b20000+a010c8b5
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK7a771ec227b77f708c1132e7aff087a9
Server: Safari
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 REGISTER
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;expires=3600
Content-Length: 0

]]>
</message>

2673 [main] INFO KitCAT.Tester - Bob is registering.
2674 [main] INFO KitCAT.Tester - 8389004002 sends REGISTER
2681 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451267387"
isSender="true"
transactionId="z9hg4bkf1014f1c99288bbe955c3a4367686665"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="REGISTER sip:tastest.bigcableco.com SIP/2.0"
>
<![CDATA[REGISTER sip:tastest.bigcableco.com SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 REGISTER
From: "8389004002" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004002nwPort1238451267380
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bKf1014f1c99288bbe955c3a4367686665
Max-Forwards: 70
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Route: <sip:10.99.38.252:5060;lr>
Expires: 3600
User-Agent: Test Fmwk User Agent
Allow: INVITE,CANCEL,ACK,BYE
Content-Length: 0

]]>
</message>

2684 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451267391"
isSender="false"
transactionId="z9hg4bkf1014f1c99288bbe955c3a4367686665"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 401 Unauthorized"
>
<![CDATA[SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest realm="10.99.38.252",nonce="913e1b589abb123bf1dd748096a5f678",opaque="DEADBEEF"
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 REGISTER
From: "8389004002" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004002nwPort1238451267380
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=73c6a63+1+1b30000+3807474f
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bKf1014f1c99288bbe955c3a4367686665
Server: Safari
Content-Length: 0

]]>
</message>

2694 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451267400"
isSender="true"
transactionId="z9hg4bk9712ff8bb1af1678efeddb137b5e03fc"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="REGISTER sip:tastest.bigcableco.com SIP/2.0"
>
<![CDATA[REGISTER sip:tastest.bigcableco.com SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 REGISTER
From: "8389004002" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004002nwPort1238451267380
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >
Max-Forwards: 70
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Route: <sip:10.99.38.252:5060;lr>
Expires: 3600
User-Agent: Test Fmwk User Agent
Allow: INVITE,CANCEL,ACK,BYE
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK9712ff8bb1af1678efeddb137b5e03fc
Authorization: Digest username="8389004002",realm="10.99.38.252",nonce="913e1b589abb123bf1dd748096a5f678",uri="sip:tastest.bigcableco.com",response="b753a34cf8602ee909b21d291b6c1da3",opaque="DEADBEEF"
Content-Length: 0

]]>
</message>

2697 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451267404"
isSender="false"
transactionId="z9hg4bk9712ff8bb1af1678efeddb137b5e03fc"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 200 OK"
>
<![CDATA[SIP/2.0 200 OK
From: "8389004002" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004002nwPort1238451267380
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=73c6a63+1+1b40000+31b30543
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK9712ff8bb1af1678efeddb137b5e03fc
Server: Safari
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 REGISTER
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;expires=3600
Content-Length: 0

]]>
</message>

4694 [main] INFO KitCAT.Tester - 8389004001 sends INVITE to 8389004002
4714 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451269420"
isSender="true"
transactionId="z9hg4bkb31fc656807b66c3db3886ffee895b58"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0"
>
<![CDATA[INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 INVITE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bKb31fc656807b66c3db3886ffee895b58
Max-Forwards: 70
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Route: <sip:10.99.38.252:5060;lr>
Content-Type: application/sdp
Content-Length: 176

v=0
o=user1 9 2 IN IP4 102.0.5.251
s=media session
c=IN IP4 102.0.5.251
t=0 0
m=audio 49991 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
]]>
</message>

4719 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451269426"
isSender="false"
transactionId="z9hg4bkb31fc656807b66c3db3886ffee895b58"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 401 Unauthorized"
>
<![CDATA[SIP/2.0 401 Unauthorized
WWW-Authenticate: Digest realm="10.99.38.252",nonce="a266f203d4547e5f5468b1cd22218b0e",opaque="DEADBEEF"
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 1 INVITE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b50000+e5483b1a
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bKb31fc656807b66c3db3886ffee895b58
Server: Safari
Supported: replaces,histinfo,geolocation,100rel,timer
Content-Length: 0

]]>
</message>

4722 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451269428"
isSender="true"
transactionId="z9hg4bkb31fc656807b66c3db3886ffee895b58"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="ACK sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0"
>
<![CDATA[ACK sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
Max-Forwards: 70
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b50000+e5483b1a
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bKb31fc656807b66c3db3886ffee895b58
CSeq: 1 ACK
Route: <sip:10.99.38.252:5060;lr>
Content-Length: 0

]]>
</message>

4741 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451269447"
isSender="true"
transactionId="z9hg4bk285f35925745bb92fdedc0fb182651fe"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0"
>
<![CDATA[INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 INVITE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Max-Forwards: 70
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
Route: <sip:10.99.38.252:5060;lr>
Content-Type: application/sdp
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK285f35925745bb92fdedc0fb182651fe
Authorization: Digest username="8389004001",realm="10.99.38.252",nonce="a266f203d4547e5f5468b1cd22218b0e",uri="sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456",response="338a33fdec7dffee5fcc7144e7a89d4f",opaque="DEADBEEF"
Content-Length: 176

v=0
o=user1 9 2 IN IP4 102.0.5.251
s=media session
c=IN IP4 102.0.5.251
t=0 0
m=audio 49991 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
]]>
</message>

4751 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451269452"
isSender="false"
transactionId="z9hg4bk285f35925745bb92fdedc0fb182651fe"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 100 Trying"
>
<![CDATA[SIP/2.0 100 Trying
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 INVITE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK285f35925745bb92fdedc0fb182651fe
Server: Safari
Contact: <sip:10.99.38.252:5060;transport=udp;user=phone>
Content-Length: 0

]]>
</message>

4763 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451269462"
isSender="false"
transactionId="z9hg4bk+c070c50b6bc326a9b4e4db53dbff17551+73c6a63+1"
callId="8D6B7B4A@73c6a63"
firstLine="INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0"
>
<![CDATA[INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0
Via: SIP/2.0/UDP 10.99.38.252:5060;branch=z9hG4bK+c070c50b6bc326a9b4e4db53dbff17551+73c6a63+1
Max-Forwards: 70
Call-ID: 8D6B7B4A@73c6a63
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;user=phone>;tag=73c6a63+1+1b90000+5d3e699d
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
CSeq: 19032191 INVITE
Expires: 180
Min-SE: 90
Session-Expires: 18000
Supported: replaces,timer
Contact: <sip:10.99.38.252:5060;transport=udp;user=phone>
Content-Type: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,INFO
Content-Length: 157

v=0
o=- 0 0 IN IP4 10.99.38.6
s=-
c=IN IP4 10.99.38.6
t=0 0
m=audio 2108 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
]]>
</message>

4777 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451269483"
isSender="true"
transactionId="z9hg4bk+c070c50b6bc326a9b4e4db53dbff17551+73c6a63+1"
callId="8D6B7B4A@73c6a63"
firstLine="SIP/2.0 100 Trying"
>
<![CDATA[SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.99.38.252:5060;branch=z9hG4bK+c070c50b6bc326a9b4e4db53dbff17551+73c6a63+1
Call-ID: 8D6B7B4A@73c6a63
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;user=phone>;tag=73c6a63+1+1b90000+5d3e699d
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>
CSeq: 19032191 INVITE
Content-Length: 0

]]>
</message>

6785 [main] INFO KitCAT.Tester - 8389004002 sends 200 response to INVITE
6792 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451271498"
isSender="true"
transactionId="z9hg4bk+c070c50b6bc326a9b4e4db53dbff17551+73c6a63+1"
callId="8D6B7B4A@73c6a63"
firstLine="SIP/2.0 200 OK"
>
<![CDATA[SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.99.38.252:5060;branch=z9hG4bK+c070c50b6bc326a9b4e4db53dbff17551+73c6a63+1
Call-ID: 8D6B7B4A@73c6a63
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;user=phone>;tag=73c6a63+1+1b90000+5d3e699d
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=8389004002nwPort1238451267380
CSeq: 19032191 INVITE
Contact: <sip:102.0.5.251:23456>
Content-Type: application/sdp
Content-Length: 176

v=0
o=user1 9 2 IN IP4 102.0.5.251
s=media session
c=IN IP4 102.0.5.251
t=0 0
m=audio 49992 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
]]>
</message>

6796 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451271500"
isSender="false"
transactionId="z9hg4bk+57903789dcc999fe56c9dce732aa884e1+73c6a63+1"
callId="8D6B7B4A@73c6a63"
firstLine="ACK sip:102.0.5.251:23456 SIP/2.0"
>
<![CDATA[ACK sip:102.0.5.251:23456 SIP/2.0
Via: SIP/2.0/UDP 10.99.38.252:5060;branch=z9hG4bK+57903789dcc999fe56c9dce732aa884e1+73c6a63+1
Max-Forwards: 70
Call-ID: 8D6B7B4A@73c6a63
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;user=phone>;tag=73c6a63+1+1b90000+5d3e699d
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=8389004002nwPort1238451267380
CSeq: 19032191 ACK
Contact: <sip:10.99.38.252:5060;transport=udp;user=phone>
Content-Length: 0

]]>
</message>

6808 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451271515"
isSender="false"
transactionId="z9hg4bk285f35925745bb92fdedc0fb182651fe"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 180 Ringing"
>
<![CDATA[SIP/2.0 180 Ringing
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 INVITE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK285f35925745bb92fdedc0fb182651fe
Server: Safari
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;transport=udp;user=phone>
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,INFO
Content-Length: 0

]]>
</message>

6823 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451271530"
isSender="false"
transactionId="z9hg4bk285f35925745bb92fdedc0fb182651fe"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 200 OK"
>
<![CDATA[SIP/2.0 200 OK
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 INVITE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK285f35925745bb92fdedc0fb182651fe
Server: Safari
Session-Expires: 18000;refresher=uas
Supported: replaces,timer
Contact: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;transport=udp;user=phone>
Content-Type: application/sdp
Accept-Language: en
Accept-Encoding: identity
Accept: application/sdp,application/isup,multipart/mixed
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,INFO
Content-Length: 169

v=0
o=- 0 1 IN IP4 10.99.38.6
s=-
c=IN IP4 10.99.38.6
t=0 0
m=audio 2106 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
]]>
</message>

6833 [main] INFO KitCAT.Tester - sending ack to 200 ok to INVITE
6839 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451271545"
isSender="true"
transactionId="z9hg4bk1c42601d4690a3497e99e569c7a052df"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="ACK sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;transport=udp;user=phone SIP/2.0"
>
<![CDATA[ACK sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;transport=udp;user=phone SIP/2.0
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 ACK
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK1c42601d4690a3497e99e569c7a052df
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
Max-Forwards: 70
Authorization: Digest username="8389004001",realm="10.99.38.252",nonce="a266f203d4547e5f5468b1cd22218b0e",uri="sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456",response="338a33fdec7dffee5fcc7144e7a89d4f",opaque="DEADBEEF"
Content-Length: 0

]]>
</message>

8817 [main] INFO KitCAT.Tester - checking media connectivity between 8389004001 and 8389004002
15841 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451280546"
isSender="true"
transactionId="z9hg4bk90af0b36974901cdd770524442d98566"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="BYE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;transport=udp;user=phone SIP/2.0"
>
<![CDATA[BYE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;transport=udp;user=phone SIP/2.0
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK90af0b36974901cdd770524442d98566
CSeq: 2 BYE
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
Session-Expires: 18000;refresher=uas
Supported: replaces,timer
Accept-Language: en
Accept-Encoding: identity
Accept: application/sdp,application/isup,multipart/mixed
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,NOTIFY,INFO
Max-Forwards: 70
Content-Length: 0

]]>
</message>

15843 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451280550"
isSender="false"
transactionId="z9hg4bk90af0b36974901cdd770524442d98566"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 500 Server Internal Error"
>
<![CDATA[SIP/2.0 500 Server Internal Error
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
CSeq: 2 BYE
From: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK90af0b36974901cdd770524442d98566
Server: Safari
Supported: replaces,histinfo,geolocation,100rel,timer
Content-Length: 0

]]>
</message>

17849 [main] ERROR KitCAT.Tester - Test failed!!
java.lang.Asserti_onerror_:
Expected: is agent 8389004002 is in one of these states - Ended curr state = CallEstablished
got: <Agent 8389004002
================Current state = CallEstablished
Idle:MsgSent - REGISTER sip:tastest.bigcableco.com SIP/2.0(CSeq:1 REGISTER)
Idle:MsgRecvd - SIP/2.0 401 Unauthorized(CSeq:1 REGISTER)
Idle:MsgSent - REGISTER sip:tastest.bigcableco.com SIP/2.0(CSeq:2 REGISTER)
Idle:MsgRecvd - SIP/2.0 200 OK(CSeq:2 REGISTER)
Idle:MsgRecvd - INVITE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0(CSeq:19032191 INVITE)
Invited:MsgSent - SIP/2.0 200 OK(CSeq:19032191 INVITE)
Invited:MsgRecvd - ACK sip:102.0.5.251:23456 SIP/2.0(CSeq:19032191 ACK)
>

at org.junit.Assert.assertThat(Assert.java:502)
at org.junit.Assert.assertThat(Assert.java:492)
at mytest.MyTest.simpletest(MyTest.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at junit._frame_work.JUnit4TestAdapter.run(JUnit4TestAdapter.java:36)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
17861 [main] INFO KitCAT.Tester - running test cleanup
17862 [main] INFO KitCAT.Tester - 8389004002 sends BYE
17868 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451282574"
isSender="true"
transactionId="z9hg4bk9ffa6b45a6df102abd34909cb099bda9"
callId="8D6B7B4A@73c6a63"
firstLine="BYE sip:10.99.38.252:5060;transport=udp;user=phone SIP/2.0"
>
<![CDATA[BYE sip:10.99.38.252:5060;transport=udp;user=phone SIP/2.0
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK9ffa6b45a6df102abd34909cb099bda9
CSeq: 1 BYE
Call-ID: 8D6B7B4A@73c6a63
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=8389004002nwPort1238451267380
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;user=phone>;tag=73c6a63+1+1b90000+5d3e699d
Max-Forwards: 70
Content-Length: 0

]]>
</message>

17871 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451282578"
isSender="false"
transactionId="z9hg4bk9ffa6b45a6df102abd34909cb099bda9"
callId="8D6B7B4A@73c6a63"
firstLine="SIP/2.0 200 OK"
>
<![CDATA[SIP/2.0 200 OK
Call-ID: 8D6B7B4A@73c6a63
CSeq: 1 BYE
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=8389004002nwPort1238451267380
To: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :5060;user=phone>;tag=73c6a63+1+1b90000+5d3e699d
Via: SIP/2.0/UDP 102.0.5.251:23456;branch=z9hG4bK9ffa6b45a6df102abd34909cb099bda9
Server: Safari
Supported: replaces,timer
Content-Length: 0

]]>
</message>

17878 [UDPMessageChannelThread] INFO KitCAT.SipStack - <message
from="10.99.38.252:5060"
to="102.0.5.251:23456"
time="1238451282581"
isSender="false"
transactionId="z9hg4bk+d104e32da3681ac07fd1ccffcff08c5b1+73c6a63+1"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="BYE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0"
>
<![CDATA[BYE sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456 SIP/2.0
Via: SIP/2.0/UDP 10.99.38.252:5060;branch=z9hG4bK+d104e32da3681ac07fd1ccffcff08c5b1+73c6a63+1
Max-Forwards: 70
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
To: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
CSeq: 561794251 BYE
Supported: replaces,timer
Reason: Q.850;cause=16
Content-Length: 0

]]>
</message>

17894 [main] INFO KitCAT.SipStack - <message
from="102.0.5.251:23456"
to="10.99.38.252:5060"
time="1238451282600"
isSender="true"
transactionId="z9hg4bk+d104e32da3681ac07fd1ccffcff08c5b1+73c6a63+1"
callId=" This e-mail address is being protected from spam bots, you need JavaScript enabled to view it "
firstLine="SIP/2.0 481 Call leg/Transaction does not exist"
>
<![CDATA[SIP/2.0 481 Call leg/Transaction does not exist
Via: SIP/2.0/UDP 10.99.38.252:5060;branch=z9hG4bK+d104e32da3681ac07fd1ccffcff08c5b1+73c6a63+1
Call-ID: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
From: <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it :23456>;tag=73c6a63+1+1b70000+3870c39a
To: "8389004001" <sip: This e-mail address is being protected from spam bots, you need JavaScript enabled to view it >;tag=8389004001nwPort1238451265074
CSeq: 561794251 BYE
Content-Length: 0

]]>
</message>

22918 [main] INFO KitCAT.Tester - ====================
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#255
Venkita Subramonian (Admin)
Admin
Posts: 60
graphgraph
User Offline Click here to see the profile of this user
Re:more basic questions 1 Year, 5 Months ago  
Hi Russell,


1) Is there any way to know a priori the default behavior of processSIP in any given context? Originally I did register and then re-register w/ authorization only to find out at runtime that the authorized register is subsumed by processSIP. Not a big deal...still it would be nice to know what behavior to anticipate.


This is semantics of register. when the UAC gets a 401 unauthorized it
automatically sends a REGISTER again with the authentication header.
I need to make the javadoc on REGISTER more clear on this.


2) After successful register why is subsequent invite sent w/o authorization? (It's followed by a second invite w/ authorization...which succeeds.)


This could be attributed to my own ignorance. Should the initial INVITE always contain an
authentication header after a successful registration with authentication? If so, should
the authentication header be the same as the one sent in the registration? i'll look this
up in 3261, but any pointers from you would also help.


3) You'll see from the log that this test (unexpectedly) fails: alice sends bye w/ an invalid seq num (2 BYE should be 3 BYE). This is probably fallout from #2 above. If bob.end() instead of alice.end() then the test passes.


clearly a bug in KitCAT. I'll take a look at this.

Thanks very much for all your feedback.

regards
venkita
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Copyright © 2006-2009 echarts.org