JSR-309 95% Pass

12 views
Skip to first unread message

yulian_o

unread,
Oct 17, 2011, 6:00:52 AM10/17/11
to mobicents-public
There were 7 failures:
1)
test_2_1_8_1_DTMFClamp(com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerAdapterTest)
junit.framework.AssertionFailedError: Unexpected event from
Detector(mscontrol://127.0.0.1:2427/MediaSession174/MG-
SipPhoneEmulator-detector):
RECEIVE_SIGNALS_COMPLETED(NUM_SIGNALS_DETECTED, signal=1)
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNull(Assert.java:227)
at com.hp.opencall.jmsc.test.TestBase
$EventWaiter.failIfEvent(TestBase.java:284)
at
com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerAdapterTest.test_2_1_8_1_DTMFClamp(MixerAdapterTest.java:
85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
2)
test_2_1_8_2_VolumeControl(com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerAdapterTest)
javax.media.mscontrol.join.JoinException: mscontrol://127.0.0.1:2427/MediaSession176/MediaGroup178
Container is not joined to any other container
at
org.mobicents.javax.media.mscontrol.mediagroup.RecorderImpl.record(RecorderImpl.java:
127)
at
com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerAdapterTest.test_2_1_8_2_VolumeControl(MixerAdapterTest.java:
117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
3)
test_2_1_6_3_FiveWaysSplitter(com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerJoinTest)
junit.framework.AssertionFailedError: "CChecker-1" did not receive the
DTMF: expected:<true> but was:<false>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:143)
at
com.hp.opencall.jmsc.test.ContinuityChecker.isContinuous(ContinuityChecker.java:
199)
at
com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerJoinTest.test_2_1_6_3_FiveWaysSplitter(MixerJoinTest.java:
91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
4)
test_2_1_13_2_MGJoinMixerTwoParticipants(com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerMediaGroupTest)
junit.framework.AssertionFailedError: "CChecker-MG-0" did receive the
DTMF: expected:<false> but was:<true>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:143)
at
com.hp.opencall.jmsc.test.ContinuityChecker.isContinuous(ContinuityChecker.java:
199)
at
com.hp.opencall.jmsc.test.mandatory.functional.mixer.MixerMediaGroupTest.test_2_1_13_2_MGJoinMixerTwoParticipants(MixerMediaGroupTest.java:
96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
5)
test_2_1_14_1_EnterAndLeaveConference(com.hp.opencall.jmsc.test.mandatory.functional.mixer.ParticipantJoinTest)
junit.framework.AssertionFailedError: "CChecker-MG-0" did receive the
DTMF: expected:<false> but was:<true>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:277)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:143)
at
com.hp.opencall.jmsc.test.ContinuityChecker.isContinuous(ContinuityChecker.java:
199)
at
com.hp.opencall.jmsc.test.mandatory.functional.mixer.ParticipantJoinTest.test_2_1_14_1_EnterAndLeaveConference(ParticipantJoinTest.java:
66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
6)
test_2_1_10_2_Prompt_BargeIn(com.hp.opencall.jmsc.test.mandatory.functional.mediagroup.PromptAndCollectTest)
junit.framework.AssertionFailedError: Unexpected event from
Detector(mscontrol://127.0.0.1:2427/MediaSession270/MediaGroup274):
FLUSH_BUFFER_COMPLETED(null, signal=null)
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNull(Assert.java:227)
at com.hp.opencall.jmsc.test.TestBase
$EventWaiter.failIfEvent(TestBase.java:284)
at
com.hp.opencall.jmsc.test.mandatory.functional.mediagroup.PromptAndCollectTest.test_2_1_10_2_Prompt_BargeIn(PromptAndCollectTest.java:
178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
7)
test_2_1_9_11_Cleardigits(com.hp.opencall.jmsc.test.mandatory.functional.mediagroup.PromptAndRecordTest)
junit.framework.AssertionFailedError: Unexpected event from
org.mobicents.javax.media.mscontrol.mediagroup.RecorderImpl@129c445:
org.mobicents.javax.media.mscontrol.mediagroup.RecorderEventImpl@114a947
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNull(Assert.java:227)
at com.hp.opencall.jmsc.test.TestBase
$EventWaiter.failIfEvent(TestBase.java:284)
at
com.hp.opencall.jmsc.test.mandatory.functional.mediagroup.PromptAndRecordTest.cleardigitsTest(PromptAndRecordTest.java:
365)
at
com.hp.opencall.jmsc.test.mandatory.functional.mediagroup.PromptAndRecordTest.test_2_1_9_11_Cleardigits(PromptAndRecordTest.java:
394)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at com.hp.opencall.jmsc.test.TestBase.runBare(TestBase.java:437)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:
29)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)

FAILURES!!!
Tests run: 140, Failures: 7

yulian_o

unread,
Oct 17, 2011, 6:15:24 AM10/17/11
to mobicents-public
Update about the progress
1) As you can see there are no more timeout issues.
2) Issue 2_1_8_1 Requires DTMF Clamp which is not implemented
3) Issue 2_1_8_2 Tests Volume Control , which is not implemented
Both of them does not have support in mgcp.

Several comments about jsr-309 implementation
1) It uses threads ( Runnable ) therefore it slows the system down.
I can increase the perfomance for my scheduler implementation by
faster control tasks execution, but when i do that , packets are
missed by jsr
Also i had to add 2ms sleep for event sender in jsr-309 , otherwise it
throws
an exceptions Busy Now , State=..... ( Thats becase event is sent from
jsr-309
to tck , tck creates a new request and state is not updated yet ).
2) Resources are overused by this jsr-309 implementation.Thats because
jsr-309
purpose is to manage a core layer components on media server ( mixer ,
splitter
audio player , etc ) and mgcp is not compatible to do so.So currently
for One media
Group , two clients , and one mixer 8 Endpoints are created ( 5
conference and 3 ivr's )

I will try to pass the tck , but i would recomment to switch to
different approach in future.
Best regards
Yulian Oifa

Ivelin Ivanov

unread,
Oct 17, 2011, 11:49:45 AM10/17/11
to mobicent...@googlegroups.com
Yulian,


Thank you for the update.

What approach would you recommend for a future version of JSR 309
remote control other than MGCP?

Ivelin

yulian_o

unread,
Oct 17, 2011, 1:19:43 PM10/17/11
to mobicents-public
Hello Ivelin
As i saw HP uses MSCML - RFC 5022.
There is another option : Megaco , but i am not sure it has all the
features exposed.

Best regards
Yulian Oifa

Ivelin Ivanov

unread,
Oct 17, 2011, 1:21:58 PM10/17/11
to mobicent...@googlegroups.com
OK, let's return to this problem after we achieve 100% 309 certification.

Bartosz Baranowski

unread,
Oct 17, 2011, 1:39:33 PM10/17/11
to mobicent...@googlegroups.com
From what I remember, MEGACO looks like more complex MGCP :), extension, with lots of details that can be addressed from protocol level.
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.
Reply all
Reply to author
Forward
0 new messages