Error when using MMS TTS

36 views
Skip to first unread message

Ishmael Makitla

unread,
Apr 1, 2011, 8:12:30 AM4/1/11
to mobicents-public
Good day friends,

I was trying to use the TTS feature of Mobicents Media Server.

I have something like this:
SomeText = "ts("+myMenuText+")";
EventName[] signalRequests = { new EventName(PackageName.Announcement, MgcpEvent.ann.withParm(SomeText ), SomeConnectionIdentifier) };
        notificationRequest.setSignalRequests(signalRequests);

But when I look through the MMS' lo, this is what I picked up....


3:27:39,956 INFO  [CreateConnectionAction] Response TX = 277907801, Response: 200 The requested transaction was executed normally.
13:27:40,180 WARN  [MgcpMessageParser] Unrecognized parameter: For About Sport press one.
13:27:40,181 WARN  [MgcpMessageParser] Unrecognized parameter: For Contact us press two.
13:27:40,181 WARN  [MgcpMessageParser] Unrecognized parameter: For My contributions press three.
13:27:40,181 WARN  [MgcpMessageParser] Unrecognized parameter: For Harvester press four.
13:27:40,181 WARN  [MgcpMessageParser] Unrecognized parameter: ))
13:27:40,207 INFO  [NotificationRequestAction] Request TX= 277907802, Endpoint = /mobicents/media/IVR/5@mms:2427
13:27:40,240 ERROR [MgcpController] Unexpected error during processing,Caused by
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
    at java.lang.String.substring(String.java:1937)
    at org.mobicents.media.server.ctrl.mgcp.evt.ann.AnnSignalFactory$TTSAnnSignal.<init>(AnnSignalFactory.java:106)
    at org.mobicents.media.server.ctrl.mgcp.evt.ann.AnnSignalFactory.getInstance(AnnSignalFactory.java:80)
    at org.mobicents.media.server.ctrl.mgcp.evt.MgcpPackage.getGenerator(MgcpPackage.java:165)
    at org.mobicents.media.server.ctrl.mgcp.NotificationRequestAction.call(NotificationRequestAction.java:197)
    at org.mobicents.media.server.ctrl.mgcp.NotificationRequestAction.call(NotificationRequestAction.java:51)
    at org.mobicents.media.server.ctrl.mgcp.MgcpController.processMgcpCommandEvent(MgcpController.java:226)
    at org.mobicents.protocols.mgcp.stack.JainMgcpStackProviderImpl.processMgcpCommandEvent(JainMgcpStackProviderImpl.java:246)
    at org.mobicents.protocols.mgcp.stack.TransactionHandler.receiveRequest(TransactionHandler.java:600)
    at org.mobicents.protocols.mgcp.stack.MessageHandler.scheduleMessages(MessageHandler.java:196)
    at org.mobicents.protocols.mgcp.stack.JainMgcpStackImpl.run(JainMgcpStackImpl.java:327)
13:27:40,258 WARN  [MgcpMessageParser] Unrecognized parameter: For About NIKMAS press one.
13:27:40,259 WARN  [MgcpMessageParser] Unrecognized parameter: For Contact us press two.
13:27:40,259 WARN  [MgcpMessageParser] Unrecognized parameter: For My contributions press three.
13:27:40,259 WARN  [MgcpMessageParser] Unrecognized parameter: For Harvester press four.
13:27:40,259 WARN  [MgcpMessageParser] Unrecognized parameter: ))
13:27:40,279 INFO  [NotificationRequestAction] Request TX= 277907803, Endpoint = /mobicents/media/IVR/6@mms:2427
13:27:40,288 ERROR [MgcpController] Unexpected error during processing,Caused by
java.lang.StringIndexOutOfBoundsException: String index out of range: -4
    at java.lang.String.substring(String.java:1937)
    at org.mobicents.media.server.ctrl.mgcp.evt.ann.AnnSignalFactory$TTSAnnSignal.<init>(AnnSignalFactory.java:106)
    at org.mobicents.media.server.ctrl.mgcp.evt.ann.AnnSignalFactory.getInstance(AnnSignalFactory.java:80)
    at org.mobicents.media.server.ctrl.mgcp.evt.MgcpPackage.getGenerator(MgcpPackage.java:165)
    at org.mobicents.media.server.ctrl.mgcp.NotificationRequestAction.call(NotificationRequestAction.java:197)
    at org.mobicents.media.server.ctrl.mgcp.NotificationRequestAction.call(NotificationRequestAction.java:51)
    at org.mobicents.media.server.ctrl.mgcp.MgcpController.processMgcpCommandEvent(MgcpController.java:226)
    at org.mobicents.protocols.mgcp.stack.JainMgcpStackProviderImpl.processMgcpCommandEvent(JainMgcpStackProviderImpl.java:246)
    at org.mobicents.protocols.mgcp.stack.TransactionHandler.receiveRequest(TransactionHandler.java:600)
    at org.mobicents.protocols.mgcp.stack.MessageHandler.scheduleMessages(MessageHandler.java:196)
    at org.mobicents.protocols.mgcp.stack.JainMgcpStackImpl.run(JainMgcpStackImpl.java:327)
13:27:45,852 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:662)
13:27:48,995 INFO  [DeleteConnectionAction] Request TX= 277907805, CallID = null, Endpoint = /mobicents/media/IVR/6@mms:2427, Connection = null
13:27:48,996 INFO  [DeleteConnectionAction] Response TX=277907805, response=200 The requested transaction was executed normally.
13:27:49,065 ERROR [ConnectionActivity] Error in Connection. Closed Connection and sent DLCX command to client
java.net.PortUnreachableException
    at sun.nio.ch.DatagramDispatcher.write0(Native Method)
    at sun.nio.ch.DatagramDispatcher.write(DatagramDispatcher.java:33)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:72)
    at sun.nio.ch.IOUtil.write(IOUtil.java:28)
    at sun.nio.ch.DatagramChannelImpl.write(DatagramChannelImpl.java:380)
    at org.mobicents.media.server.impl.rtp.RtpSocketImpl.send(RtpSocketImpl.java:682)
    at org.mobicents.media.server.impl.rtp.RtpSocketImpl.send(RtpSocketImpl.java:665)
    at org.mobicents.media.server.impl.rtp.SendStream.onMediaTransfer(SendStream.java:142)
    at org.mobicents.media.server.impl.AbstractSink.receive(AbstractSink.java:287)
    at org.mobicents.media.server.impl.AbstractSource.perform(AbstractSource.java:414)
    at org.mobicents.media.server.impl.resource.Proxy$Input.onMediaTransfer(Proxy.java:211)
    at org.mobicents.media.server.impl.AbstractSink.receive(AbstractSink.java:287)
    at org.mobicents.media.server.impl.AbstractSource.perform(AbstractSource.java:414)
    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:662)


Question:
Do I need to do anything special to get the TTS working?

Thank you so much!

Regards
Ishmael

donlv...@gmail.com

unread,
Dec 7, 2015, 9:12:15 AM12/7/15
to mobicents-public
Hi Ishmael Makitla,

I use function text to speed of mms server have an error:
19:17:14,058 DEBUG [org.mobicents.media.server.mgcp.MgcpProvider] Parsing message: RQNT 941244511 mobicents/ivr/1...@10.58.51.61:4647  MGCP 1.0
X:6
S:A/ann@10(ts(No song))
R:AU/oc (N),AU/of (N),D/0 (N),D/1 (N),D/2 (N),D/3 (N),D/4 (N),D/5 (N),D/6 (N),D/7 (N),D/8 (N),D/9 (N),D/A (N),D/B (N),D/C (N),D/D (N),D/* (N),D/# (N)

19:17:14,059 DEBUG [org.mobicents.media.server.mgcp.MgcpProvider] Dispatching message
19:17:14,059 INFO  [org.mobicents.media.server.mgcp.tx.Transaction] tx=941244511 Started, message= RQNT mobicents/ivr/1...@10.58.51.61:4647, call agent = slave1/10.58.51.61:4657
java.lang.ArrayIndexOutOfBoundsException: 2
at org.mobicents.media.server.utils.Text.divide(Text.java:218)
at org.mobicents.media.server.mgcp.controller.Request.queueSignal(Request.java:207)
at org.mobicents.media.server.mgcp.controller.Request.accept(Request.java:120)
at org.mobicents.media.server.mgcp.tx.cmd.NotificationRequestCmd$Request.perform(NotificationRequestCmd.java:153)
at org.mobicents.media.server.scheduler.Task.run(Task.java:117)
at org.mobicents.media.server.scheduler.Scheduler$WorkerThread.run(Scheduler.java:435)
19:17:14,066 ERROR [org.mobicents.media.server.mgcp.tx.Transaction] tx=941244511 Failed
org.mobicents.media.server.mgcp.tx.cmd.MgcpCommandException
at org.mobicents.media.server.mgcp.tx.cmd.NotificationRequestCmd$Request.perform(NotificationRequestCmd.java:162)
at org.mobicents.media.server.scheduler.Task.run(Task.java:117)
at org.mobicents.media.server.scheduler.Scheduler$WorkerThread.run(Scheduler.java:435)
Can you resolve this error? Please help me.
I use mms 3.0. My code bellow:
private void sendTTSRQNT(String ttsText, boolean createActivity) {
EndpointIdentifier endpointID = this.getEndpointIdentifier();

NotificationRequest notificationRequest = new NotificationRequest(this,
endpointID, mgcpProvider.getUniqueRequestIdentifier());
ttsText = "ts(" + ttsText + ")";
ConnectionIdentifier connectionIdentifier = new ConnectionIdentifier(
this.getConnectionIdentifier());
EventName[] signalRequests = { new EventName(PackageName.Announcement,
MgcpEvent.factory("ann").withParm(ttsText), connectionIdentifier) };
notificationRequest.setSignalRequests(signalRequests);
notificationRequest.setRequestedEvents(requestedEvents);
notificationRequest.setTransactionHandle(mgcpProvider.getUniqueTransactionHandler());
NotifiedEntity notifiedEntity = new NotifiedEntity(Config.ipAddress, Config.ipAddress,Config.mgcpPort);
notificationRequest.setNotifiedEntity(notifiedEntity);
if (createActivity) {
MgcpEndpointActivity endpointActivity = null;
try {
endpointActivity = mgcpProvider.getEndpointActivity(endpointID);
ActivityContextInterface epnAci = mgcpActivityContestInterfaceFactory
.getActivityContextInterface(endpointActivity);
epnAci.attach(sbbContext.getSbbLocalObject());
} catch (FactoryException ex) {
ex.printStackTrace();
} catch (NullPointerException ex) {
ex.printStackTrace();
} catch (UnrecognizedActivityException ex) {
ex.printStackTrace();
}
} // if (createActivity)
mgcpProvider
.sendMgcpEvents(new JainMgcpEvent[] { notificationRequest });
logger.info("sendTTSRQNT " + ttsText);
}

Thanks.

Vào 19:12:30 UTC+7 Thứ Sáu, ngày 01 tháng 4 năm 2011, Ishmael Makitla đã viết:
Reply all
Reply to author
Forward
0 new messages