Media Server does not releases packet relay connection

81 views
Skip to first unread message

yulian_o

unread,
Feb 7, 2011, 8:20:50 AM2/7/11
to mobicents-public
Hello
I am trying to create B2BUA that will connect all the RTP traffic
through the media server , what will allow transcoding and other
services in future ( voicemail , etc ).
As i see in wireshark MGCP packets are transferred correctly , and all
receives 200OK.
But for some reason in netstat i see that the ports have not been
released after delete connection response.

MGCP packets trace :

create connection with null sdp
===============================
Er@@5<
{^CRCX 33002 /mobicents/media/packetrelay/$@172.20.20.60:2427 MGCP 1.0
C: 5
M: sendrecv

===============================
create connection response
===============================
E@@<5{
R200 33002 The requested transaction was executed normally.
I: 9
Z: /mobicents/media/packetrelay/6...@172.20.20.60:2427

v=0
o=- 3118997 3118997 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 2834 RTP/AVP 0 2 101 3 8
a=rtpmap:0 pcmu/8000
a=rtpmap:2 g729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:3 gsm/8000
a=rtpmap:8 pcma/8000
a=control:audio
a=silenceSupp:off

===============================
modify previous connection
===============================
E[@@5<
{GMDCX 33006 /mobicents/media/packetrelay/6...@172.20.20.60:2427 MGCP
1.0
C:5
I:9

v=0
o=- 3122476 3122476 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 2838 RTP/AVP 0 101
a=rtpmap:0 pcmu/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=control:audio
a=silenceSupp:off

================================
modify previous connection response
================================
E=@@<5{
)200 33006 The requested transaction was executed normally.

v=0
o=- 3122509 3122509 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 2834 RTP/AVP 0 101
a=rtpmap:0 pcmu/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=control:audio
a=silenceSupp:off


================================
create second connection
================================
E@@h5<
{CRCX 33007 /mobicents/media/packetrelay/6...@172.20.20.60:2427 MGCP 1.0
C: 5
M: sendrecv

v=0
o=- 12941556556655361 1 IN IP4 172.20.20.51
s=CounterPath X-Lite 4.0
c=IN IP4 172.20.20.51
t=0 0
a=ice-ufrag:29198e
a=ice-pwd:a940c02f62ab14e79c9b2db4b5239ba5
m=audio 53448 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=candidate:1 1 UDP 659136 172.20.20.51 53448 typ host
a=candidate:1 2 UDP 659134 172.20.20.51 53449 typ host


================================
create second connection response
================================
Ew@@<5{
c200 33007 The requested transaction was executed normally.
I: c
Z: /mobicents/media/packetrelay/6...@172.20.20.60:2427

v=0
o=- 3122530 3122530 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 2840 RTP/AVP 0 101
a=rtpmap:0 pcmu/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=control:audio
a=silenceSupp:off


=================================
delete first connection
=================================
Ek@@5<
{WDLCX 33010 /mobicents/media/packetrelay/6...@172.20.20.60:2427 MGCP
1.0
C:5
I:9


=================================
delete second connection
=================================
Ek@@5<
{WDLCX 33011 /mobicents/media/packetrelay/6...@172.20.20.60:2427 MGCP
1.0
C:5
I:c

=================================
delete first connection response
=================================
Et@@<5{
`200 33010 The requested transaction was executed normally.
P:OR=29136,OS=29136,JI=23425


=================================
delete second connection response
=================================
Et@@<5{
`200 33011 The requested transaction was executed normally.
P:OR=34896,OS=34896,JI=12049


What could be a problem , am i missing something
Best regards
Oifa Yulian

Oleg Kulikov

unread,
Feb 7, 2011, 8:23:07 AM2/7/11
to mobicent...@googlegroups.com
Wich version of Media server you are using?

2011/2/7 yulian_o <oifa....@gmail.com>

yulian_o

unread,
Feb 7, 2011, 9:09:25 AM2/7/11
to mobicents-public
Hello
I was using 2.1.0.BETA1.

I have changed to 2.0.0.GA it works better.
In beta i had problem with sound which i was planning to check later ,
in 2.0.0.GA transcoding works and sound is transferred correctly.
The connections are partially released.

To get a complete understanding of network i will explain what do i
have.
I am using JSLEE , MEDIA Server and OpenIMSCore

Because of IMS Core , for each connection packets are arrived to B2BUA
twice , once as for caller , and once for called.
therefore 2 pair of Media are currently created

Client 1 -> Media Server - Media Server - Client 2

for SIP i have

Client 1 -> PCSCF - SCSCF - B2BUA - SCSCF - SCSCF - B2BUA - SCSCF -
PCSCF - Client 2

When i call from client 1 to client 2 and release connection on client
2
all connection close signals are sent ( there are actually 2 pairs but
i had sent MGCP for single pair ).
With 2.0.0.GA only the Client1 - Media Server leg is closed for some
reason.3 other legs remains opened. With 2.1.0.BETA none of legs where
closed.

Best Regards
Oifa Yulian

On Feb 7, 3:23 pm, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> Wich version of Media server you are using?
>
> 2011/2/7 yulian_o <oifa.yul...@gmail.com>
>
> > Hello
> > I am trying to create B2BUA that will connect all the RTP traffic
> > through the media server , what will allow transcoding and other
> > services in future ( voicemail , etc ).
> > As i see in wireshark MGCP packets are transferred correctly , and all
> > receives 200OK.
> > But for some reason in netstat i see that the ports have not been
> > released after delete connection response.
>
> > MGCP packets trace :
>
> > create connection with null sdp
> > ===============================
> > Er@@5<
> > {^CRCX 33002 /mobicents/media/packetrela...@172.20.20.60:2427 MGCP 1.0
> > C: 5
> > M: sendrecv
>
> > ===============================
> > create connection response
> > ===============================
> > E@@<5{
> > R200 33002 The requested transaction was executed normally.
> > I: 9
> > Z: /mobicents/media/packetrelay...@172.20.20.60:2427
>
> > v=0
> > o=- 3118997 3118997 IN IP4 172.20.20.60
> > s=Mobicents Media Server
> > c=IN IP4 172.20.20.60
> > t=0 0
> > m=audio 2834 RTP/AVP 0 2 101 3 8
> > a=rtpmap:0 pcmu/8000
> > a=rtpmap:2 g729/8000
> > a=rtpmap:101 telephone-event/8000
> > a=fmtp:101 0-15
> > a=rtpmap:3 gsm/8000
> > a=rtpmap:8 pcma/8000
> > a=control:audio
> > a=silenceSupp:off
>
> > ===============================
> > modify previous connection
> > ===============================
> > E[@@5<
> > {GMDCX 33006 /mobicents/media/packetrelay...@172.20.20.60:2427  MGCP
> > {CRCX 33007 /mobicents/media/packetrelay...@172.20.20.60:2427 MGCP 1.0
> > C: 5
> > M: sendrecv
>
> > v=0
> > o=- 12941556556655361 1 IN IP4 172.20.20.51
> > s=CounterPath X-Lite 4.0
> > c=IN IP4 172.20.20.51
> > t=0 0
> > a=ice-ufrag:29198e
> > a=ice-pwd:a940c02f62ab14e79c9b2db4b5239ba5
> > m=audio 53448 RTP/AVP 0 101
> > a=rtpmap:101 telephone-event/8000
> > a=fmtp:101 0-15
> > a=sendrecv
> > a=candidate:1 1 UDP 659136 172.20.20.51 53448 typ host
> > a=candidate:1 2 UDP 659134 172.20.20.51 53449 typ host
>
> > ================================
> > create second connection response
> > ================================
> > Ew@@<5{
> > c200 33007 The requested transaction was executed normally.
> > I: c
> > Z: /mobicents/media/packetrelay...@172.20.20.60:2427
>
> > v=0
> > o=- 3122530 3122530 IN IP4 172.20.20.60
> > s=Mobicents Media Server
> > c=IN IP4 172.20.20.60
> > t=0 0
> > m=audio 2840 RTP/AVP 0 101
> > a=rtpmap:0 pcmu/8000
> > a=rtpmap:101 telephone-event/8000
> > a=fmtp:101 0-15
> > a=control:audio
> > a=silenceSupp:off
>
> > =================================
> > delete first connection
> > =================================
> > Ek@@5<
> > {WDLCX 33010 /mobicents/media/packetrelay...@172.20.20.60:2427  MGCP
> > 1.0
> > C:5
> > I:9
>
> > =================================
> > delete second connection
> > =================================
> > Ek@@5<
> > {WDLCX 33011 /mobicents/media/packetrelay...@172.20.20.60:2427  MGCP

Oleg Kulikov

unread,
Feb 7, 2011, 9:19:06 AM2/7/11
to mobicent...@googlegroups.com
You can try to use latest snaphot of BETA2. It correctly reclaims connections and has better sound quality then 2.0.0.GA

2011/2/7 yulian_o <oifa....@gmail.com>

yulian_o

unread,
Feb 7, 2011, 10:46:27 AM2/7/11
to mobicents-public
Hello i have installed a latest snapshot and now it does not creates a
second leg in packet relay :

==================================================
create first connection on first B2BUA
==================================================
Et@@5<
{`CRCX 8522162 /mobicents/media/packetrelay/$@172.20.20.60:2427 MGCP
1.0
C: 1
M: sendrecv

==================================================
create first connection on first B2BUA response
==================================================
E@@<5{
U200 8522162 The requested transaction was executed normally.
I: 1
Z: /mobicents/media/packetrelay/4...@172.20.20.60:2427

v=0
o=- 12790265 12790265 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 1026 RTP/AVP 0 2 101 3 8
a=rtpmap:0 pcmu/8000
a=rtpmap:2 g729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:3 gsm/8000
a=rtpmap:8 pcma/8000
a=control:audio
a=silenceSupp:off


==================================================
create first connection on second B2BUA
==================================================
Et@@5<
{`CRCX 8522163 /mobicents/media/packetrelay/$@172.20.20.60:2427 MGCP
1.0
C: 2
M: sendrecv

==================================================
create first connection on second B2BUA response
==================================================
E@@<5{
U200 8522163 The requested transaction was executed normally.
I: 2
Z: /mobicents/media/packetrelay/3...@172.20.20.60:2427

v=0
o=- 12790339 12790339 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 1028 RTP/AVP 0 2 101 3 8
a=rtpmap:0 pcmu/8000
a=rtpmap:2 g729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:3 gsm/8000
a=rtpmap:8 pcma/8000
a=control:audio
a=silenceSupp:off
==================================================

==================================================
modify first connection on second B2BUA
==================================================
E@@o5<
{{MDCX 8522164 /mobicents/media/packetrelay/3...@172.20.20.60:2427 MGCP
1.0
C:2
I:2

v=0
o=- 12941566155415342 1 IN IP4 172.20.20.54
s=CounterPath X-Lite 4.0
c=IN IP4 172.20.20.54
t=0 0
a=ice-ufrag:9da39b
a=ice-pwd:1aca5c2549b29d27f796b1b294fe0a18
m=audio 54368 RTP/AVP 101 8
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=candidate:1 1 UDP 659136 172.20.20.54 54368 typ host
a=candidate:1 2 UDP 659134 172.20.20.54 54369 typ host


==================================================
modify first connection on second B2BUA response
==================================================
EA@@<5{
-200 8522164 The requested transaction was executed normally.

v=0
o=- 12798317 12798317 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 1028 RTP/AVP 101 8
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:8 pcma/8000
a=control:audio
a=silenceSupp:off

===================================================
create second connection on second B2BUA
===================================================
E@@5<
{DCRCX 8522165 /mobicents/media/packetrelay/3...@172.20.20.60:2427 MGCP
1.0
C: 2
M: sendrecv

v=0
o=- 12790265 12790265 IN IP4 172.20.20.60
s=Mobicents Media Server
c=IN IP4 172.20.20.60
t=0 0
m=audio 1026 RTP/AVP 0 2 101 3 8
a=rtpmap:0 pcmu/8000
a=rtpmap:2 g729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtpmap:3 gsm/8000
a=rtpmap:8 pcma/8000
a=control:audio
a=silenceSupp:off

===================================================
create second connection on second B2BUA response
===================================================
Et@@<5{
`500 8522165 The transaction could not be executed because the
endpoint is unknown.
I: 0


===================================================================================================
Media server log
===================================================================================================
17:35:13,661 INFO [CreateConnectionAction] Response TX = 8522198,
Response: 200 The requested transaction was executed normally.
Connection index=0
17:35:13,731 INFO [CreateConnectionAction] Response TX = 8522199,
Response: 200 The requested transaction was executed normally.
17:35:21,709 INFO [ModifyConnectionAction] Response TX = 8522200,
Response: 200 The requested transaction was executed normally.
17:35:21,725 ERROR [CreateConnectionAction] TX = 8522201, There is no
free endpoint: /mobicents/media/packetrelay/3, ResponseCode: 500
17:35:21,725 INFO [CreateConnectionAction] Response TX = 8522201,
Response: 500 The transaction could not be executed because the
endpoint is unknown.
17:35:31,769 ERROR [ConnectionActivity] Error in Connection. Closed
Connection and sent DLCX command to client
java.io.IOException: RTP channel is broken
at
org.mobicents.media.server.impl.rtp.ReceiveStream.evolve(ReceiveStream.java:
252)
at
org.mobicents.media.server.impl.AbstractSource.perform(AbstractSource.java:
386)
at
org.mobicents.media.server.impl.clock.LocalTask.perform(LocalTask.java:
51)
at
org.mobicents.media.server.impl.clock.Scheduler.run(Scheduler.java:
135)
at java.lang.Thread.run(Thread.java:636)

Best regards
Oifa Yulian

On 7 фев, 16:19, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> You can try to use latest snaphot of BETA2. It correctly reclaims
> connections and has better sound quality then 2.0.0.GA
>
> 2011/2/7 yulian_o <oifa.yul...@gmail.com>

Oleg Kulikov

unread,
Feb 7, 2011, 11:06:31 AM2/7/11
to mobicent...@googlegroups.com
Looking at the log it is not latest. Download this one http://hudson.jboss.org/hudson/job/Mobicents-MediaServer-2.x-Release/315/

2011/2/7 yulian_o <oifa....@gmail.com>

yulian_o

unread,
Feb 7, 2011, 2:44:05 PM2/7/11
to mobicents-public
Hello once again.
Its not getting better :
Exception in thread "main" java.lang.IllegalStateException:
Incompletely deployed:

DEPLOYMENTS IN ERROR:
Deployment "MgcpController" is in error due to: java.lang.Error:
org.jboss.joinpoint.spi.JoinpointException: Method not found
removePackage[null] for class
org.mobicents.media.server.ctrl.mgcp.MgcpController

at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:
278)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:
174)
at
org.mobicents.media.server.bootstrap.MainDeployer.start(MainDeployer.java:
122)
at org.mobicents.media.server.bootstrap.Main.start(Main.java:
224)
at org.mobicents.media.server.bootstrap.Main.boot(Main.java:
217)
at org.mobicents.media.server.bootstrap.Main.main(Main.java:
78)

And of course MGCP service is not started
Best regards
Oifa Yulian

On 7 фев, 18:06, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> Looking at the log it is not latest. Download this onehttp://hudson.jboss.org/hudson/job/Mobicents-MediaServer-2.x-Release/...
>
> 2011/2/7 yulian_o <oifa.yul...@gmail.com>
>
> > Hello i have installed a latest snapshot and now it does not creates a
> > second leg in packet relay :
>
> > ==================================================
> > create first connection on first B2BUA
> > ==================================================
> > Et@@5<
> > {`CRCX 8522162 /mobicents/media/packetrela...@172.20.20.60:2427 MGCP
> > 1.0
> > C: 1
> > M: sendrecv
>
> > ==================================================
> > create first connection on first B2BUA response
> > ==================================================
> > E@@<5{
> > U200 8522162 The requested transaction was executed normally.
> > I: 1
> > Z: /mobicents/media/packetrela...@172.20.20.60:2427
>
> > v=0
> > o=- 12790265 12790265 IN IP4 172.20.20.60
> > s=Mobicents Media Server
> > c=IN IP4 172.20.20.60
> > t=0 0
> > m=audio 1026 RTP/AVP 0 2 101 3 8
> > a=rtpmap:0 pcmu/8000
> > a=rtpmap:2 g729/8000
> > a=rtpmap:101 telephone-event/8000
> > a=fmtp:101 0-15
> > a=rtpmap:3 gsm/8000
> > a=rtpmap:8 pcma/8000
> > a=control:audio
> > a=silenceSupp:off
>
> > ==================================================
> > create first connection on second B2BUA
> > ==================================================
> > Et@@5<
> > {`CRCX 8522163 /mobicents/media/packetrela...@172.20.20.60:2427 MGCP
> > 1.0
> > C: 2
> > M: sendrecv
>
> > ==================================================
> > create first connection on second B2BUA response
> > ==================================================
> > E@@<5{
> > U200 8522163 The requested transaction was executed normally.
> > I: 2
> > Z: /mobicents/media/packetrela...@172.20.20.60:2427
>
> > v=0
> > o=- 12790339 12790339 IN IP4 172.20.20.60
> > s=Mobicents Media Server
> > c=IN IP4 172.20.20.60
> > t=0 0
> > m=audio 1028 RTP/AVP 0 2 101 3 8
> > a=rtpmap:0 pcmu/8000
> > a=rtpmap:2 g729/8000
> > a=rtpmap:101 telephone-event/8000
> > a=fmtp:101 0-15
> > a=rtpmap:3 gsm/8000
> > a=rtpmap:8 pcma/8000
> > a=control:audio
> > a=silenceSupp:off
> > ==================================================
>
> > ==================================================
> > modify first connection on second B2BUA
> > ==================================================
> > E@@o5<
> > {{MDCX 8522164 /mobicents/media/packetrela...@172.20.20.60:2427 MGCP
> > 1.0
> > {DCRCX 8522165 /mobicents/media/packetrela...@172.20.20.60:2427 MGCP
> ...
>
> продолжение >>

Oleg Kulikov

unread,
Feb 8, 2011, 1:15:12 AM2/8/11
to mobicent...@googlegroups.com
It still not stable now. just wait for a little bit

7 февраля 2011 г. 22:44 пользователь yulian_o <oifa....@gmail.com> написал:

yulian_o

unread,
Feb 8, 2011, 12:44:50 PM2/8/11
to mobicents-public
Hello Oleg
I have checked all the available options and still no change with
delete connection.
2.0GA works the best way , for now that the only problem i have found.

I have also tried to release connection with different params and
still no chance :

19:17:10,664 INFO [CreateConnectionAction] Response TX = 33734700,
Response: 200 The requested transaction was executed normally.
19:17:16,930 INFO [DeleteConnectionAction] Request TX= 33734701,
CallID = 1, Endpoint = /mobicents/media/packetrelay/
4...@172.20.20.60:2427, Connection = 1
19:17:16,931 INFO [DeleteConnectionAction] Response TX=33734701,
response=200 The requested transaction was executed normally.
19:17:16,931 INFO [DeleteConnectionAction] Request TX= 33734702,
CallID = 1, Endpoint = /mobicents/media/packetrelay/
4...@172.20.20.60:2427, Connection = 2
19:17:16,931 INFO [DeleteConnectionAction] Response TX=33734702,
response=200 The requested transaction was executed normally.
19:17:16,932 INFO [DeleteConnectionAction] Request TX= 33734703,
CallID = 1, Endpoint = /mobicents/media/packetrelay/
4...@172.20.20.60:2427, Connection = null
19:17:16,932 INFO [DeleteConnectionAction] Response TX=33734703,
response=200 The requested transaction was executed normally.


19:24:50,938 INFO [DeleteConnectionAction] Request TX= 33734707,
CallID = 2, Endpoint = /mobicents/media/packetrelay/
4...@172.20.20.60:2427, Connection = 3
19:24:50,939 INFO [DeleteConnectionAction] Response TX=33734707,
response=200 The requested transaction was executed normally.
19:24:50,939 INFO [DeleteConnectionAction] Request TX= 33734708,
CallID = 2, Endpoint = /mobicents/media/packetrelay/
4...@172.20.20.60:2427, Connection = 4
19:24:50,940 INFO [DeleteConnectionAction] Response TX=33734708,
response=200 The requested transaction was executed normally.
19:24:50,941 INFO [DeleteConnectionAction] Request TX= 33734709,
CallID = null, Endpoint = /mobicents/media/packetrelay/
4...@172.20.20.60:2427, Connection = null
19:24:50,941 INFO [DeleteConnectionAction] Response TX=33734709,
response=200 The requested transaction was executed normally.

As i understand the problem is with MGCP Part of media server.
Is there any workaround about this problem?
If not where i can find a code of mgcp controller for media server ,
so i will try to modify it?

Best regards
Oifa Yulian

On Feb 8, 8:15 am, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> It still not stable now. just wait for a little bit
>
> 7 февраля 2011 г. 22:44 пользователь yulian_o <oifa.yul...@gmail.com>написал:
> ...
>
> read more >>

Oleg Kulikov

unread,
Feb 9, 2011, 12:32:45 AM2/9/11
to mobicent...@googlegroups.com
Hi Yulian, this is much appreciated. I am bussy now with scheduler and it will be perfect if you can do fix by yourself and contribute it back. First of all try to build media server from trunk. Just call "mvn clean install" from directoty <project_home>/trunk/server/media/core. This command will build the binary, you can find final assembly in the directory ../core/server-standalone/target/ . The source of MGCP controller you can find under /core/controllers/mgcp/

Let me know if you something will go wrong.

Oleg

8 февраля 2011 г. 20:44 пользователь yulian_o <oifa....@gmail.com> написал:

yulian_o

unread,
Feb 9, 2011, 5:57:27 AM2/9/11
to mobicents-public
Hello Oleg
Maven returns errors.

hss:/opt/media/core# mvn clean install -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading:
https://repository.jboss.org/nexus/content/groups/public/org/mobicents/mobicents-parent/2.15/mobicents-parent-2.15.pom
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were
encountered while processing the POMs:
[WARNING] 'dependencies.dependency.
(groupId:artifactId:type:classifier)' must be unique:
org.jboss.microcontainer:jboss-kernel:jar -> duplicate declaration of
version ${version.jboss.microcontainer} @ org.mobicents.media:server:
2.1.0.BETA2-SNAPSHOT, /opt/media/pom.xml, line 112, column 21
[WARNING] 'dependencies.dependency.
(groupId:artifactId:type:classifier)' must be unique:
org.jboss.microcontainer:jboss-aop-mc-int:jar -> duplicate declaration
of version ${version.jboss.microcontainer} @
org.mobicents.media:server:2.1.0.BETA2-SNAPSHOT, /opt/media/pom.xml,
line 118, column 21
[WARNING] 'parent.relativePath' points at org.mobicents.media:server
instead of org.mobicents:mobicents-parent, please verify your project
structure @ line 5, column 10
[FATAL] Non-resolvable parent POM: Could not transfer artifact
org.mobicents:mobicents-parent:pom:2.15 from/to jboss-public-
repository-group (https://repository.jboss.org/nexus/content/groups/
public/): Error transferring file: java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException:
the trustAnchors parameter must be non-empty and 'parent.relativePath'
points at wrong local POM @ line 5, column 10

at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
325)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
[ERROR]
[ERROR] The project org.mobicents.servers.media:mms-core:2.1.0.BETA2-
SNAPSHOT (/opt/media/core/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact
org.mobicents:mobicents-parent:pom:2.15 from/to jboss-public-
repository-group (https://repository.jboss.org/nexus/content/groups/
public/): Error transferring file: java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException:
the trustAnchors parameter must be non-empty and 'parent.relativePath'
points at wrong local POM @ line 5, column 10 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Could
not transfer artifact org.mobicents:mobicents-parent:pom:2.15 from/to
jboss-public-repository-group (https://repository.jboss.org/nexus/
content/groups/public/): Error transferring file:
java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
at
org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:
183)
at
org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:
819)
at
org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:
670)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:
308)
at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:
232)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
354)
at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:
305)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:632)
at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:
581)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
233)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
Could not transfer artifact org.mobicents:mobicents-parent:pom:2.15
from/to jboss-public-repository-group (https://repository.jboss.org/
nexus/content/groups/public/): Error transferring file:
java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:
526)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:
214)
at
org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:
179)
... 21 more
Caused by: org.sonatype.aether.transfer.ArtifactTransferException:
Could not transfer artifact org.mobicents:mobicents-parent:pom:2.15
from/to jboss-public-repository-group (https://repository.jboss.org/
nexus/content/groups/public/): Error transferring file:
java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector
$4.wrap(WagonRepositoryConnector.java:949)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector
$4.wrap(WagonRepositoryConnector.java:940)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector
$GetTask.flush(WagonRepositoryConnector.java:696)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector
$GetTask.flush(WagonRepositoryConnector.java:690)
at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:
435)
at
org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:
438)
... 23 more
Caused by: org.apache.maven.wagon.TransferFailedException: Error
transferring file: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:
143)
at
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:
116)
at
org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector
$GetTask.run(WagonRepositoryConnector.java:605)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException:
Unexpected error: java.security.InvalidAlgorithmParameterException:
the trustAnchors parameter must be non-empty
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:
1611)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:
1574)
at
sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:
1557)
at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1150)
at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1127)
at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:
423)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:
185)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
997)
at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:391)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:
338)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:
115)
... 7 more
Caused by: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
at
sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:75)
at sun.security.validator.Validator.getInstance(Validator.java:
178)
at
sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:
129)
at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:
225)
at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:
270)
at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:
973)
at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:
142)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:
533)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:
471)
at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:904)
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:
1116)
at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1143)
... 14 more
Caused by: java.security.InvalidAlgorithmParameterException: the
trustAnchors parameter must be non-empty
at
java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:
200)
at
java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
at
java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:
104)
at
sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:73)
... 25 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Best regards
Oifa Yulian

On 9 фев, 07:32, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> Hi Yulian, this is much appreciated. I am bussy now with scheduler and it
> will be perfect if you can do fix by yourself and contribute it back. First
> of all try to build media server from trunk. Just call "mvn clean install"
> from directoty <project_home>/trunk/server/media/core. This command will
> build the binary, you can find final assembly in the directory
> ../core/server-standalone/target/ . The source of MGCP controller you can
> find under /core/controllers/mgcp/
>
> Let me know if you something will go wrong.
>
> Oleg
>
> 8 февраля 2011 г. 20:44 пользователь yulian_o <oifa.yul...@gmail.com>написал:
> ...
>
> продолжение >>

Oleg Kulikov

unread,
Feb 9, 2011, 6:01:37 AM2/9/11
to mobicent...@googlegroups.com
It looks like POM conflicts. Try to resolve it localy on your system. 

9 февраля 2011 г. 13:57 пользователь yulian_o <oifa....@gmail.com> написал:

yulian_o

unread,
Feb 9, 2011, 5:04:18 PM2/9/11
to mobicents-public
Hello Oleg
I have found the problem but i am not sure that i have found a
solution

The problem was far far away from MGCP , it was in RtpSocketImpl.java
You have public void release() function in it.
And inside of it there are comments :

//channel close action should be synchronized with read and write
//but we want to avid usage of any locks so at this stage we are
//setting flag that socket is closed only!
//
//Receiver will check this flag on selected channel and perform actual
close procedure.

I have added this.close(); there and it works.
As i saw RtpConnectionImpl does stops both streams before calling the
function.
But i can not be sure about synchornized issue that was in
comments,possibly it will arise problems or exceptions
in other situations.

Also i have made several changes on DeleteConnectionAction.
If you want i can upload the files but i dont know how and where.

Best regards
Oifa Yulian

On Feb 9, 1:01 pm, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> It looks like POM conflicts. Try to resolve it localy on your system.
>
> 9 февраля 2011 г. 13:57 пользователь yulian_o <oifa.yul...@gmail.com>написал:
>
> > Hello Oleg
> > Maven returns errors.
>
> > hss:/opt/media/core# mvn clean install -e
> > [INFO] Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > Downloading:
>
> >https://repository.jboss.org/nexus/content/groups/public/org/mobicent...
> ...
>
> read more >>

Oleg Kulikov

unread,
Feb 10, 2011, 12:53:23 AM2/10/11
to mobicent...@googlegroups.com
Hi Yulian, greate stuff. I created an issue (http://code.google.com/p/mobicents/issues/detail?id=2345), please attach your patch to this issue.

Oleg
 
10 февраля 2011 г. 1:04 пользователь yulian_o <oifa....@gmail.com> написал:

yulian_o

unread,
Feb 10, 2011, 4:43:24 AM2/10/11
to mobicents-public
Hello
I have uploaded changed files

Best regards
Oifa Yulian

On Feb 10, 7:53 am, Oleg Kulikov <oleg.kulik...@gmail.com> wrote:
> Hi Yulian, greate stuff. I created an issue (http://code.google.com/p/mobicents/issues/detail?id=2345), please attach
> your patch to this issue.
>
> Oleg
>
> 10 февраля 2011 г. 1:04 пользователь yulian_o <oifa.yul...@gmail.com>написал:
> ...
>
> read more >>

Oleg Kulikov

unread,
Feb 11, 2011, 12:26:24 AM2/11/11
to mobicent...@googlegroups.com
Hi Yulian,

Thank you for contibution. Can you generate diff patch for changed files and upload patch so I can apply it?

Oleg

10 февраля 2011 г. 12:43 пользователь yulian_o <oifa....@gmail.com> написал:
Reply all
Reply to author
Forward
0 new messages