Doubt regarding MGCP-DEMO example with stand alone media server

23 views
Skip to first unread message

Sachin Parnami

unread,
Jul 27, 2009, 12:36:44 AM7/27/09
to mobicent...@googlegroups.com
Hi All,

I am trying to run MGCP-Demo example with stand alone media servre 2.0.0.BETA1 both are bind to 127.0.0.1 running them on single system

1> when i am not connected to network (i.e.LAN) i get mentioned error while trying to call on 2013 ( where as running it on loopback)

@Stand alone media server

2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/1
2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/2
2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/2
2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/3
2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/3
2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/4
2839 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/4
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/5
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/5
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/6
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/6
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/7
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/7
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/8
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/8
2840 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/9
2841 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/9
2841 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/10
2841 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/10
2841 [MMSDeployerScanner] INFO  org.mobicents.media.server.bootstrap.MainDeployer  - Deployed file:/home/mobicents/Sachin/Task/media-standalone-2.0.0.BETA1/deploy/ann-beans.xml




108171 [JainMgcpStackImpl-FixedThreadPool-thread-1] ERROR org.mobicents.media.server.ctrl.mgcp.CreateConnectionAction  - java.net.SocketException: Network is unreachable
108175 [JainMgcpStackImpl-FixedThreadPool-thread-1] INFO  org.mobicents.media.server.ctrl.mgcp.CreateConnectionAction  - Response TX = 1, Response: 527 Missing RemoteConnectionDescriptor.

@MGCP-demo

09:36:25,934 INFO  [SipResourceAdaptor] Received Request:
INVITE sip:20...@nist.gov SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKfxapvxmt;received=127.0.0.1
Max-Forwards: 70
To: <sip:20...@nist.gov>
From: "user1" <sip:us...@nist.gov>;tag=iqnxf
Call-ID: tiscduw...@192.168.0.110
CSeq: 683 INVITE
Contact: <sip:us...@192.168.0.110:5046>
Content-Type: application/sdp
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE
Supported: replaces,norefersub,100rel
User-Agent: Twinkle/1.1
Content-Length: 206

v=0
o=user1 361324688 2119329839 IN IP4 192.168.0.110
s=-
c=IN IP4 192.168.0.110
t=0 0
m=audio 7990 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

09:36:25,951 INFO  [CallSbb] Incoming call From: "user1" <sip:us...@nist.gov>;tag=iqnxf
 To: <sip:20...@nist.gov>

09:36:25,966 INFO  [RQNTSbb] Incoming call From: "user1" <sip:us...@nist.gov>;tag=iqnxf
 To: <sip:20...@nist.gov>

09:36:26,211 INFO  [RQNTSbb] Receive CRCX response: 1
09:36:26,212 ERROR [EventRouterImpl] Failure while routing event; second phase. DeferredEvent [EventTypeID[net.java.slee.resource.mgcp.CREATE_CONNECTION_RESPONSE#net.java#1.0], #33]
java.lang.NullPointerException
    at org.mobicents.mgcp.demo.RQNTSbb.onCreateConnectionResponse(RQNTSbb.java:168)
    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:585)
    at org.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler(SbbEntity.java:759)
    at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:933)
    at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
    at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
09:36:26,212 INFO  [EventRouterImpl] Caught RuntimeException in invoking SLEE originated invocation
java.lang.NullPointerException
    at org.mobicents.mgcp.demo.RQNTSbb.onCreateConnectionResponse(RQNTSbb.java:168)
    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:585)
    at org.mobicents.slee.runtime.sbbentity.SbbEntity.invokeEventHandler(SbbEntity.java:759)
    at org.mobicents.slee.runtime.EventRouterImpl.routeQueuedEvent(EventRouterImpl.java:933)
    at org.mobicents.slee.runtime.EventRouterImpl.access$100(EventRouterImpl.java:64)
    at org.mobicents.slee.runtime.EventRouterImpl$EventExecutor.run(EventRouterImpl.java:121)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
09:36:52,381 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKjtbuwljg terminated

Is there any work around to get it working when i am not connected to n/w ?


2> when i am connected to n/w it works fine but i dont get RTP (i.e. Announcement ) from Stand alone media server below mentioned log and attached wireshark capture

@MGCP-Demo

09:55:39,303 INFO  [SipResourceAdaptor] Received Request:
INVITE sip:20...@nist.gov SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKdwwbwktk;received=127.0.0.1
Max-Forwards: 70
To: <sip:20...@nist.gov>
From: "user1" <sip:us...@nist.gov>;tag=nacgp
Call-ID: irakitj...@192.168.0.110
CSeq: 310 INVITE
Contact: <sip:us...@192.168.0.110:5046>
Content-Type: application/sdp
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE
Supported: replaces,norefersub,100rel
User-Agent: Twinkle/1.1
Content-Length: 206

v=0
o=user1 415416712 1357464838 IN IP4 192.168.0.110
s=-
c=IN IP4 192.168.0.110
t=0 0
m=audio 7990 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

09:55:39,321 INFO  [CallSbb] Incoming call From: "user1" <sip:us...@nist.gov>;tag=nacgp
 To: <sip:20...@nist.gov>

09:55:39,330 INFO  [RQNTSbb] Incoming call From: "user1" <sip:us...@nist.gov>;tag=nacgp
 To: <sip:20...@nist.gov>

09:55:39,544 INFO  [RQNTSbb] Receive CRCX response: 1
09:55:39,545 INFO  [RQNTSbb] ***&& /mobicents/media/aap/1
09:55:39,565 INFO  [RQNTSbb]  NotificationRequest sent
09:55:39,642 INFO  [SipResourceAdaptor] Received Request:
ACK sip:127.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKtfrfpnpu;received=127.0.0.1
Max-Forwards: 70
To: <sip:20...@nist.gov>;tag=30b481ac
From: "user1" <sip:us...@nist.gov>;tag=nacgp
Call-ID: irakitj...@192.168.0.110
CSeq: 310 ACK
User-Agent: Twinkle/1.1
Content-Length: 0


09:55:43,566 INFO  [STDOUT] message =
RQNT 2 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
N:127....@127.0.0.1:2728
X:1
S:A/ann@1(http://127.0.0.1:8080/mgcpdemo/audio/RQNT-ULAW.wav)
R:A/oc@1 (N),A/of@1 (N)

 local Tx ID = 2 Remote Tx ID = 2 Sending the Command 2
09:55:47,824 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKdwwbwktk terminated
09:55:48,143 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKtfrfpnpu terminated
09:55:51,566 INFO  [STDOUT] message =
RQNT 2 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
N:127....@127.0.0.1:2728
X:1
S:A/ann@1(http://127.0.0.1:8080/mgcpdemo/audio/RQNT-ULAW.wav)
R:A/oc@1 (N),A/of@1 (N)

 local Tx ID = 2 Remote Tx ID = 2 Sending the Command 3
09:56:05,766 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKeernlxhh terminated
09:56:07,567 INFO  [STDOUT] message =
RQNT 2 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
N:127....@127.0.0.1:2728
X:1
S:A/ann@1(http://127.0.0.1:8080/mgcpdemo/audio/RQNT-ULAW.wav)
R:A/oc@1 (N),A/of@1 (N)

 local Tx ID = 2 Remote Tx ID = 2 Sending the Command 4
09:56:08,455 INFO  [SipResourceAdaptor] Received Request:
BYE sip:127.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKtgfweczd;received=127.0.0.1
Max-Forwards: 70
To: <sip:20...@nist.gov>;tag=30b481ac
From: "user1" <sip:us...@nist.gov>;tag=nacgp
Call-ID: irakitj...@192.168.0.110
CSeq: 311 BYE
User-Agent: Twinkle/1.1
Content-Length: 0


09:56:12,468 INFO  [STDOUT] message =
DLCX 3 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
I:1

 local Tx ID = 3 Remote Tx ID = 3 Sending the Command 2
09:56:16,467 INFO  [SipResourceAdaptor] SIP Dialog -8709241:122ba73ea1b:-7f7f terminated
09:56:20,469 INFO  [STDOUT] message =
DLCX 3 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
I:1

 local Tx ID = 3 Remote Tx ID = 3 Sending the Command 3
09:56:36,469 INFO  [STDOUT] message =
DLCX 3 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
I:1

 local Tx ID = 3 Remote Tx ID = 3 Sending the Command 4
09:56:40,480 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKtgfweczd terminated

@Stand Alone media server

2423 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/9
2423 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/9
2423 [MMSDeployerScanner] INFO  org.mobicents.media.server.EndpointImpl  - Started /mobicents/media/aap/10
2424 [MMSDeployerScanner] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started endpoint: /mobicents/media/aap/10
2424 [MMSDeployerScanner] INFO  org.mobicents.media.server.bootstrap.MainDeployer  - Deployed file:/home/mobicents/Sachin/Task/media-standalone-2.0.0.BETA1/deploy/ann-beans.xml
ADDED LISTENERorg.mobicents.media.server.ctrl.mgcp.ConnectionActivity@1ce663c
74066 [JainMgcpStackImpl-FixedThreadPool-thread-1] INFO  org.mobicents.media.server.ctrl.mgcp.CreateConnectionAction  - Response TX = 1, Response: 200 The requested transaction was executed normally.



PS: I have tried setting RTP audio with G.711 u-law and with G.711 a-law :) as well

Deploy folder contains
Jain-slee 1.2.6.GA
sip-services-proxy-without-initial-invite-DU-1.2.6.GA.jar
sip11-ra-DU-1.2.6.GA.jar
zmgcp-demo-services-DU-1.0.4.GA-SNAPSHOT.jar
mgcp-ra-DU-1.0.4.GA-SNAPSHOT.jar
mgcp-demo-audio.war

--
Regards,
Sachin Parnami
mgcp-demo-example

Amit Bhayani

unread,
Jul 27, 2009, 1:40:40 AM7/27/09
to mobicent...@googlegroups.com
You are not getting RTP because your RQNT is not reaching the MMS 2.x.y


09:55:43,566 INFO  [STDOUT] message =
RQNT 2 /mobicents/media/aap/1...@127.0.0.1:2729  MGCP 1.0
N:127....@127.0.0.1:2728
X:1
S:A/ann@1(http://127.0.0.1:8080/mgcpdemo/audio/RQNT-ULAW.wav)
R:A/oc@1 (N),A/of@1 (N)



Its sent to 127.0.0.1:2729 while wireshark trace shows that your MMS 2.x is really listening at 2427

Sachin Parnami

unread,
Jul 27, 2009, 3:05:12 AM7/27/09
to mobicent...@googlegroups.com
Hi Amit,

Thanks for your reply, but the problem isn't solved yet :( , still no RTP from Media server attached wireshark capture.

i have changed the ports from 2729 to MMS standalon 2427

and now i see logs on MMS-standalone like

ADDED LISTENERorg.mobicents.media.server.ctrl.mgcp.ConnectionActivity@cd4544
150535 [JainMgcpStackImpl-FixedThreadPool-thread-1] INFO  org.mobicents.media.server.ctrl.mgcp.CreateConnectionAction  - Response TX = 1, Response: 200 The requested transaction was executed normally.
150580 [JainMgcpStackImpl-FixedThreadPool-thread-1] INFO  org.mobicents.media.server.ctrl.mgcp.NotificationRequestAction  - Request TX= 2, Endpoint = /mobicents/media/aap/1...@127.0.0.1:2427

ADDED LISTENERorg.mobicents.media.server.ctrl.mgcp.Request@d22462
180023 [JainMgcpStackImpl-FixedThreadPool-thread-1] INFO  org.mobicents.media.server.ctrl.mgcp.DeleteConnectionAction  - Request TX= 3, CallID = null, Endpoint = /mobicents/media/aap/1...@127.0.0.1:2427, Connection = 1
180025 [JainMgcpStackImpl-FixedThreadPool-thread-1] ERROR org.mobicents.media.server.ctrl.mgcp.MgcpController  - Unexpected error during processing,Caused by
java.lang.NullPointerException
    at org.mobicents.media.server.ctrl.mgcp.DeleteConnectionAction.call(DeleteConnectionAction.java:128)
    at org.mobicents.media.server.ctrl.mgcp.DeleteConnectionAction.call(DeleteConnectionAction.java:47)
    at org.mobicents.media.server.ctrl.mgcp.MgcpController.processMgcpCommandEvent(MgcpController.java:217)
    at org.mobicents.mgcp.stack.JainMgcpStackProviderImpl.processMgcpCommandEvent(JainMgcpStackProviderImpl.java:267)
    at org.mobicents.mgcp.stack.TransactionHandler$ScheduleRequestReceival.perform(TransactionHandler.java:765)
    at org.mobicents.mgcp.stack.TransactionHandler.run(TransactionHandler.java:397)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)

Exception comes when i cancel the call :(


@ MGCP-Demo added some logs just to make sure about its ports config. :)

12:26:19,658 INFO  [SipResourceAdaptor] Received Request:
INVITE sip:20...@nist.gov SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKujszzgwj;received=127.0.0.1

Max-Forwards: 70
To: <sip:20...@nist.gov>
From: "user1" <sip:us...@nist.gov>;tag=ikchh
Call-ID: tshtxbs...@192.168.0.110
CSeq: 991 INVITE

Contact: <sip:us...@192.168.0.110:5046>
Content-Type: application/sdp
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE
Supported: replaces,norefersub,100rel
User-Agent: Twinkle/1.1
Content-Length: 206

v=0
o=user1 702563024 1836985248 IN IP4 192.168.0.110

s=-
c=IN IP4 192.168.0.110
t=0 0
m=audio 7990 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000

a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

12:26:19,677 INFO  [CallSbb] Incoming call From: "user1" <sip:us...@nist.gov>;tag=ikchh
 To: <sip:20...@nist.gov>

12:26:19,720 INFO  [RQNTSbb] Incoming call From: "user1" <sip:us...@nist.gov>;tag=ikchh
 To: <sip:20...@nist.gov>

12:26:19,910 INFO  [RQNTSbb] Receive CRCX response: 1
12:26:19,912 INFO  [RQNTSbb] ***&& /mobicents/media/aap/1
12:26:19,913 INFO  [RQNTSbb]  ********** endpointID****** /mobicents/media/aap/1...@127.0.0.1:2427
12:26:19,915 INFO  [RQNTSbb]  ********** notificationRequest****** RQNT 0 /mobicents/media/aap/1...@127.0.0.1:2427 MGCP 1.0
X: 1

12:26:19,921 INFO  [RQNTSbb]  ********** signalRequests****** [Ljain.protocol.ip.mgcp.message.parms.EventName;@1f4bdca
12:26:19,926 INFO  [RQNTSbb]  NotificationRequest sent
12:26:19,949 INFO  [RQNTSbb] onNotificationRequestResponse
12:26:20,016 INFO  [SipResourceAdaptor] Received Request:

ACK sip:127.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKcwavudpr;received=127.0.0.1
Max-Forwards: 70
To: <sip:20...@nist.gov>;tag=1a65863d
From: "user1" <sip:us...@nist.gov>;tag=ikchh
Call-ID: tshtxbs...@192.168.0.110
CSeq: 991 ACK
User-Agent: Twinkle/1.1
Content-Length: 0


12:26:28,182 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKujszzgwj terminated
12:26:28,515 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKcwavudpr terminated
12:26:46,905 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKmnwwincf terminated
12:26:49,363 INFO  [SipResourceAdaptor] Received Request:

BYE sip:127.0.0.1:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.110:5046;rport=5046;branch=z9hG4bKkaawwkqw;received=127.0.0.1
Max-Forwards: 70
To: <sip:20...@nist.gov>;tag=1a65863d
From: "user1" <sip:us...@nist.gov>;tag=ikchh
Call-ID: tshtxbs...@192.168.0.110
CSeq: 992 BYE
User-Agent: Twinkle/1.1
Content-Length: 0


12:26:53,376 INFO  [STDOUT] message =
DLCX 3 /mobicents/media/aap/1...@127.0.0.1:2427  MGCP 1.0

I:1

 local Tx ID = 3 Remote Tx ID = 3 Sending the Command 2
12:26:57,375 INFO  [SipResourceAdaptor] SIP Dialog -297303da:122bafcc207:-7f7f terminated
12:27:21,390 INFO  [SipResourceAdaptor] SIP Transaction z9hG4bKkaawwkqw terminated
--
Regards,
Sachin Parnami
mgcp-demo-example1

Amit Bhayani

unread,
Jul 27, 2009, 3:56:39 AM7/27/09
to mobicent...@googlegroups.com
Wireshark shows that RQNT has reached but the response is 512 not 200


Request
RQNT 2 /mobicents/media/aap/1...@127.0.0.1:2427  MGCP 1.0Response
512 2 The transaction could not be executed because the gateway is not equipped to detect one of the requested events.


both OC and OF is configured by default in mgcp-conf.xml

Look for

    <bean name="PlayAnnouncement"
        class="org.mobicents.media.server.ctrl.mgcp.evt.ann.PlayAnnouncementFactory">
        <property name="eventName">ann</property>
        <property name="resourceName">audio.player</property>
    </bean>

    <bean name="Announcement.OC"
        class="org.mobicents.media.server.ctrl.mgcp.evt.DefaultDetectorFactory">
        <property name="eventName">oc</property>
        <property name="resourceName">audio.player</property>
        <property name="eventID">2</property>
    </bean>

    <bean name="Announcement.OF"
        class="org.mobicents.media.server.ctrl.mgcp.evt.DefaultDetectorFactory">
        <property name="eventName">of</property>
        <property name="resourceName">audio.player</property>
        <property name="eventID">3</property>
    </bean>

Can you please make sure these are defined in your mgcp-conf.xml

Sachin Parnami

unread,
Jul 27, 2009, 4:48:10 AM7/27/09
to mobicent...@googlegroups.com
Yes these are already defined in mgcp-conf.xml :)
please find attached mgcp-conf.xml, no changes has been made in this file unziped and used :)
--
Regards,
Sachin Parnami
mgcp-conf.xml

Oleg Kulikov

unread,
Jul 27, 2009, 5:35:26 AM7/27/09
to mobicent...@googlegroups.com
I s this binary release B1 or server from trunk?


2009/7/27 Sachin Parnami <sachin...@gmail.com>

Sachin Parnami

unread,
Jul 27, 2009, 5:42:31 AM7/27/09
to mobicent...@googlegroups.com
Oleg its from trunk source :)
--
Regards,
Sachin Parnami

Oleg Kulikov

unread,
Jul 27, 2009, 5:45:19 AM7/27/09
to mobicent...@googlegroups.com
your local copy is outdated then. please update it and try again.

Oleg

2009/7/27 Sachin Parnami <sachin...@gmail.com>

Sachin Parnami

unread,
Jul 27, 2009, 5:51:37 AM7/27/09
to mobicent...@googlegroups.com
Little confusion here :)

you want me to change Stand alone server?
or MGCP RA ?

FYI i am using

media-standalone-2.0.0.BETA1
and
zmgcp-demo-services-DU-1.0.4.GA-SNAPSHOT.jar
mgcp-ra-DU-1.0.4.GA-SNAPSHOT.jar

please guide?
--
Regards,
Sachin Parnami

Oleg Kulikov

unread,
Jul 27, 2009, 5:53:00 AM7/27/09
to mobicent...@googlegroups.com
media server core and server-standalone


2009/7/27 Sachin Parnami <sachin...@gmail.com>

Sachin Parnami

unread,
Jul 27, 2009, 8:04:21 AM7/27/09
to mobicent...@googlegroups.com
Tried with current checkout's build which is giving below mentioned error :(

mobicents@mobicents-laptop:~/Sachin/Work/mobicents-media-server-core/server-standalone/target/mms-standalone-pojo/bin$ ./run.sh
=========================================================================

  MMS Bootstrap Environment

  MMS_HOME: /home/mobicents/Sachin/Work/mobicents-media-server-core/server-standalone/target/mms-standalone-pojo

  JAVA: /home/mobicents/jdk1.5.0_16/bin/java

  JAVA_OPTS: -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

  CLASSPATH: /home/mobicents/Sachin/Work/mobicents-media-server-core/server-standalone/target/mms-standalone-pojo/bin/run.jar

=========================================================================

0    [main] INFO  org.mobicents.media.server.bootstrap.Main  - log4j configured
2    [main] INFO  org.mobicents.media.server.bootstrap.Main  - Booting from file:/home/mobicents/Sachin/Work/mobicents-media-server-core/server-standalone/target/mms-standalone-pojo/conf/bootstrap-beans.xml
Booting from file:/home/mobicents/Sachin/Work/mobicents-media-server-core/server-standalone/target/mms-standalone-pojo/conf/bootstrap-beans.xml
1378 [main] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Started
Exception in thread "main" java.lang.IllegalStateException: Incompletely deployed:

DEPLOYMENTS IN ERROR:
  Deployment "SoundCardPlayerFactory" is in error due to: java.lang.ClassNotFoundException: org.mobicents.media.server.impl.resource.audio.soundcard.PlayerFactory
  Deployment "RTPAudioFactory" is in error due to: java.lang.RuntimeException: Error configuring property: localPort for RTPAudioFactory
  Deployment "RTPVideoFactory" is in error due to: java.lang.RuntimeException: Error configuring property: localPort for RTPVideoFactory

    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.Main.boot(Main.java:129)
    at org.mobicents.media.server.bootstrap.Main.main(Main.java:82)
Shutting down
1789 [Thread-0] INFO  org.mobicents.media.server.bootstrap.MainDeployer  - Stopped
1806 [Thread-0] INFO  org.mobicents.media.server.impl.naming.InnerNamingService  - Stopped


PS: steps i followd to build it, please correct me if i am doing wrong :)
checkedout code
mobicents-media-server-core/server-standalone mvn install
cd target/mms-standalone-pojo.dir/bin ./run.sh
--
Regards,
Sachin Parnami

Amit Bhayani

unread,
Jul 27, 2009, 8:06:48 AM7/27/09
to mobicent...@googlegroups.com
call mvn clean install from

mobicents-media-server-core

rest is fine

Sachin Parnami

unread,
Jul 27, 2009, 8:20:51 AM7/27/09
to mobicent...@googlegroups.com
Did, there also some problem it seems :( , i get Compilation failure

200K downloaded
Downloading: http://repo1.maven.org/maven2/org/jboss/jboss-mdr/2.0.0.GA/jboss-mdr-2.0.0.GA.jar
Downloading: http://repository.jboss.org/maven2/org/jboss/jboss-mdr/2.0.0.GA/jboss-mdr-2.0.0.GA.jar
170K downloaded
[INFO] [compiler:compile]
[INFO] Compiling 228 source files to /home/mobicents/Sachin/Work/mobicents-media-server-core/server-impl/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/mobicents/Sachin/Work/mobicents-media-server-core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/AudioPlayerImpl.java:[278,5] method does not override a method from its superclass

/home/mobicents/Sachin/Work/mobicents-media-server-core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/RecorderImpl.java:[168,5] method does not override a method from its superclass

/home/mobicents/Sachin/Work/mobicents-media-server-core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/RecorderImpl.java:[173,5] method does not override a method from its superclass

/home/mobicents/Sachin/Work/mobicents-media-server-core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/RecorderCache.java:[74,22] cannot find symbol
symbol  : constructor IOException(java.lang.InterruptedException)
location: class java.io.IOException


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 57 seconds
[INFO] Finished at: Mon Jul 27 17:40:32 IST 2009
[INFO] Final Memory: 26M/82M
[INFO] ------------------------------------------------------------------------
--
Regards,
Sachin Parnami

Amit Bhayani

unread,
Jul 27, 2009, 8:43:49 AM7/27/09
to mobicent...@googlegroups.com
Looks like you definitely have some local changes.
I just synced and did clean install. All tests are working and its good.

Can you please sync and see if you have local changes?

Sachin Parnami

unread,
Jul 27, 2009, 9:06:10 AM7/27/09
to mobicent...@googlegroups.com
Checked and even checked out again at different location and tried but problem still persist
here is the link from svn
http://mobicents.googlecode.com/svn/trunk/servers/media/core

Is it the same we need to checkout?
--
Regards,
Sachin Parnami

Sachin Parnami

unread,
Jul 27, 2009, 11:31:06 PM7/27/09
to mobicent...@googlegroups.com
Got it working by making following changes :)

1> mobicents-media-server-core/
server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/AudioPlayerImpl.java

    @Override
    public Format[] getFormats() {
        return FORMATS;
    }

removed @Override which is not present in parent class

2>
mobicents-media-server-core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/RecorderImpl.java:[168,5] method does not override a method from its superclass

@Override
    public Format[] getFormats() {
        return FORMATS;
    }

    @Override
    public boolean isAcceptable(Format format) {
        if (fmt != null && fmt.matches(format)) {
            return isAcceptable;
        }
        for (int i = 0; i < FORMATS.length; i++) {
            if (FORMATS[i].matches(format)) {
                fmt = format;
                isAcceptable = true;
                return isAcceptable;
            }
        }
        isAcceptable = false;
        return isAcceptable;
    }

removed @Override which is not present in parent class

3>/home/mobicents/Sachin/Work/
mobicents-media-server-core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/audio/RecorderCache.

Weired but code works fine with java version "1.6.0_1" and when i try to compile it with java version "1.6.0_0" it gives compilation error changed its java.lang.Throwable parameter to String and got it working with java version "1.6.0_0" where in java version "1.6.0_1" it takes java.lang.Throwable ;)

throw new IOException(e);  to throw new IOException(e.getMessage());

@Override
    public int read() throws IOException {
        if (available == 0) {
            return -1;
        }

        if (blocked) {
            try {
                semaphore.acquire();
            } catch (InterruptedException e) {
                throw new IOException(e.getMessage());
            }
        }
       
        available--;
        int b =localBuffer[offset++] & 0xff;
        return b;
--
Regards,
Sachin Parnami

Oleg Kulikov

unread,
Jul 27, 2009, 11:34:04 PM7/27/09
to mobicent...@googlegroups.com
Ohh, you are not synchronized with trunk.

2009/7/28 Sachin Parnami <sachin...@gmail.com>

Sachin Parnami

unread,
Jul 27, 2009, 11:37:38 PM7/27/09
to mobicent...@googlegroups.com
Till my last post i had taken updated code from trunk but now i see some changes have been done in trunk :D
--
Regards,
Sachin Parnami

Sachin Parnami

unread,
Jul 28, 2009, 12:25:10 AM7/28/09
to mobicent...@googlegroups.com
Updated it to the latest trunk code now it compiles well :)

But still the same problem no RTP :(

Attached wireshark trace
--
Regards,
Sachin Parnami
mgcp-demo-example2
Reply all
Reply to author
Forward
0 new messages