Login Form






Lost Password?
No account yet? Register
Home arrow Forums
ECharts
Welcome, Guest
Re:connectedTo matcher and b2bua (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:connectedTo matcher and b2bua
#230
Russell Roy (User)
Senior Boarder
Posts: 40
graphgraph
User Offline Click here to see the profile of this user
connectedTo matcher and b2bua 4 Years, 3 Months ago  
In a basic two-way call connected thru a b2bua these assertions pass:

assertThat(alice, is (connected()));
assertThat(bob, is (connected()));

but these fail:

assertThat(alice, is (connectedTo(bob)));
assertThat(bob, is (connectedTo(alice)));

Is this to be expected given that a b2bua is involved ...or a bug?

Code: :

    [junit8798 [mainERROR KitCAT.Tester  Test failed!!     [junitjava.lang.Assertionerror:     [junitExpectedis agent 8389004002 is connected with agent 8389004001     [junit]      got: <Agent 8389004001     [junit] ================Current state CallEstablished     [junitIdle:MsgSent REGISTER sip:kitcat.bigcableco.com SIP/2.0(CSeq:1 REGISTER)     [junitIdle:MsgRecvd SIP/2.0 200 OK(CSeq:1 REGISTER)     [junitIdle:MsgSent INVITE sip:8389004002@102.0.5.251:23456 SIP/2.0(CSeq:1 INVITE)     [junitInviting:MsgRecvd SIP/2.0 100 Trying(CSeq:1 INVITE)     [junitInviting:MsgRecvd SIP/2.0 180 Ringing(CSeq:1 INVITE)     [junitInviting:MsgRecvd SIP/2.0 200 OK(CSeq:1 INVITE)     [junitInviting:MsgSent ACK sip:8389004002@10.99.38.252:5060;transport=udp;user=phone SIP/2.0(CSeq:1 ACK)     [junit] >     [junit]     [junit]     at org.junit.Assert.assertThat(Assert.java:502)     [junit]     at org.junit.Assert.assertThat(Assert.java:492)     [junit]     at mytest.MyTest.simpletest(MyTest.java:132)     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     [junit]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     [junit]     at java.lang.reflect.Method.invoke(Method.java:597)     [junit]     at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)     [junit]     at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)     [junit]     at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)     [junit]     at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)     [junit]     at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)     [junit]     at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)     [junit]     at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)     [junit]     at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)     [junit]     at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)     [junit]     at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)     [junit]     at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)     [junit]     at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)     [junit]     at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:36)     [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)     [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)     [junit]     at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)

 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#231
Venkita Subramonian (Admin)
Admin
Posts: 60
graphgraph
User Offline Click here to see the profile of this user
Re:connectedTo matcher and b2bua 4 Years, 3 Months ago  
Hi,

it is expected since a b2bua is involved.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#232
Tom Smith (Admin)
Admin
Posts: 83
graph
User Offline Click here to see the profile of this user
Re:connectedTo matcher and b2bua 4 Years, 3 Months ago  
Venkita, I think you mean that the assertions are expected to work, even though there is a B2BUA involved, right?

Russell,

An assertion like:

Code: :

 assertThat(aliceis(connectedTo(bob)));



checks the following conditions:

(1) alice is in a connected state
(2) bob is in a connected state
(3) alice and bob have exchanged SDPs (i.e., the IP/port that alice said she would send on are the ones that bob received in his SDP, and vice-versa).

If you know from other assertions that (1) and (2) are satisfied, then the issue may be (3). Can you inspect the SDPs to see if they look OK?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#233
Russell Roy (User)
Senior Boarder
Posts: 40
graphgraph
User Offline Click here to see the profile of this user
Re:connectedTo matcher and b2bua 4 Years, 3 Months ago  
Tom,

The b2bua test passes w/ these assertions:

assertThat(alice, is(connected()));
assertThat(bob, is(connected()));
processSIPAndCheckMedia(alice, bob); <-- asserts incomingMedia is ok both directions

but fails w/ these:

assertThat(alice, is (connectedTo(bob)));
assertThat(bob, is (connectedTo(alice)));

Russell
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#234
Tom Smith (Admin)
Admin
Posts: 83
graph
User Offline Click here to see the profile of this user
Re:connectedTo matcher and b2bua 4 Years, 3 Months ago  
Interesting - the agents are connected and actually exchanging RTP packets, but the connectedTo() matcher is failing.

I wonder if there are some issues arising from Venkita's latest changes, particularly with respect to the IP address tests.

I'll poke around to see if I have any ideas, basically kill time until Venkita checks in.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#235
Tom Smith (Admin)
Admin
Posts: 83
graph
User Offline Click here to see the profile of this user
Re:connectedTo matcher and b2bua 4 Years, 3 Months ago  
Russell,

If you want to send me the output from the test, I can see if I can figure out what is going on. You can send it to my gmail.com address, which is yotommy.

Thanks,
Tom.
 
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