USSD Simulator App Windows Start Script

457 views
Skip to first unread message

Raam

unread,
Jun 4, 2013, 12:34:30 PM6/4/13
to mobicent...@googlegroups.com
Hello Team,

I downloaded the USSD Gateway + Simulator from here: http://sourceforge.net/projects/mobicents/files/Mobicents%20Gateway/1.0.0.BETA1/ and noticed that the simulator app only has a run.sh file but nothing for windows. I wanted to start it up on Windows as I do not have X11 display on my Linux.

So, I managed to start it up like this:

java -Djava.net.preferIPv4Stack=true -classpath  .;lib;./target/classes;./lib/appframework.jar;./lib/concurrent.jar;./lib/java-getopt.jar;./lib/log4j.jar;./lib/opencsv.jar;./lib/swing-layout.jar;./lib/swing-worker.jar;./lib/javolution.jar;./lib/stream.jar;./lib/asn.jar;./lib/mtp-api.jar;./lib/sccp-api.jar;./lib/sccp-impl.jar;./lib/tcap-api.jar;./lib/tcap-impl.jar;./lib/map-api.jar;./lib/map-impl.jar;./lib/m3ua-api.jar;./lib/m3ua-impl.jar;./lib/ussd-simulator.jar org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorApp

and the GUI came up, here are the start up logs from the console:

20:08:12,536         INFO M3UAManagement:97 - M3UA configuration file path C:\Raam\mobicents_work\slee\binary\ussd-gateway-1.0.0.BETA1\simulator\m3ua-server.xml
20:08:12,551         INFO M3UAManagement:105 - Started M3UAManagement
20:08:12,562         INFO M3UAManagement:97 - M3UA configuration file path C:\Raam\mobicents_work\slee\binary\ussd-gateway-1.0.0.BETA1\simulator\m3ua-server.xml
20:08:12,563         INFO M3UAManagement:105 - Started M3UAManagement

The simulator and mobicents IP's and ports are configured, but the keypad is disabled. Any idea what could cause this? Attached is the screenshot.

Also, when i click on the "Stop Simulator" button, i get a NPE in the console, trace below.

java.lang.NullPointerException
        at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView.terminateSS7(UssdsimulatorView.java:1078)
        at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView.resetServer(UssdsimulatorView.java:1101)
        at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView._button_close_serverActionPerformed(UssdsimulatorView.java:731)
        at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView.access$1900(UssdsimulatorView.java:75)
        at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView$19.actionPerformed(UssdsimulatorView.java:450)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

In the documentation, the screenshots show "Peer IP" and "Peer Port" configuration with "Open Server" and "Close Server" buttons. These do not exist in this GUI, maybe the documentation or the code is outdated?

Please advise...

Thanks,
Raam

ussdsim.png

Ibrahima Gaye

unread,
Jun 4, 2013, 1:52:14 PM6/4/13
to mobicent...@googlegroups.com
Hi,
at the end i think it will not be usefull because sctp is not on windows.
regards

------
Ibrahim



--
You received this message because you are subscribed to the Google Groups "mobicents-public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Raam

unread,
Jun 4, 2013, 1:56:03 PM6/4/13
to mobicent...@googlegroups.com
I see... In that case, instead of making the simulator an AWT UI, why not write it such that it is deployed under JBoss and make it accessible via the browser? What do you think? This way, it also benefits from SLEE functionality.

Raam

Abdul Hakeem

unread,
Jun 4, 2013, 2:49:22 PM6/4/13
to mobicent...@googlegroups.com

There is SCTP support for Windows. Try this link:

http://www.bluestop.org/SctpDrv/releases/latest/

Ibrahima Gaye

unread,
Jun 4, 2013, 6:28:17 PM6/4/13
to mobicent...@googlegroups.com
yes but the java build for windows does not support it :)

------
Ibrahim
Reply all
Reply to author
Forward
0 new messages