Problems configuring and using SS7 Simulator for testing USSD

641 views
Skip to first unread message

Joe Willrich Lutalo

unread,
Sep 17, 2012, 6:18:16 AM9/17/12
to mobicent...@googlegroups.com
Dear all

I have been closely following the instruction here (http://code.google.com/p/ussdgateway/source/browse/README.txt) for how to test the USSD Gateway using the simulator.

First, here is my jboss log as of now : http://filebin.ca/G0XUv2e5uOC/server.log

I have previously run all the commands in the above README up to command 5.7 (sccp sap create 1 1 1 2), where I would start getting an "Invalid Command" response in the CLI (launched via ss7-run.sh).

Now, I tried ignoring those errors and proceeded to complete all the commands (up to 5.10), but as might be expected, I never saw the next steps succeed:

6) Assuming mobicents ss7-simulator is started already you should see on jboss console "10:21:28,046 WARN [SccpStackImpl-SccpStack] Rx : MTP-RESUME: AffectedDpc=2" indicating that USSD Gateway M3UA layer is now connected with ss7-simulator

7) Dial *519# on ss7-simulator and you should see USSD getting exchanged between simulator and server


Currently, when I run the SS7 Simulator, it starts, and when I try to make it start like this (see below), it fails:

I set Mobicents IP : 127.0.0.1, and Port : 3435 (I checked with netcat, and that port is open), am just not sure whether this is the right port I should be using,
someone on IRC had told me in this place is supposed to be put the port for the Mobicents SS7 Service (am not sure which it is).

Simulator IP : 127.0.0.1
Simulator Port : 8012

I chose port 8012 for the Simulator because in the given example (ussdgateway README), they indicate the port 8012 as the peer port for the Association Assoc1,
so am asuming that this must be the port that the Simulator should listen on?

5.1) sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011

----------

But when I try to start the simulator with those params above, it fails with log "Failed to initiate connection." and on stderr :

java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:344)
at sun.nio.ch.Net.bind(Net.java:336)
at sun.nio.ch.SctpServerChannelImpl.bind(SctpServerChannelImpl.java:109)
at com.sun.nio.sctp.SctpServerChannel.bind(SctpServerChannel.java:184)
at org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpServerChannel.bind(SctpServerChannel.java:81)
at org.mobicents.protocols.ss7.m3ua.impl.sg.ServerM3UAProcess.start(ServerM3UAProcess.java:136)
at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView.initSS7(UssdsimulatorView.java:1014)
at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView.access$2000(UssdsimulatorView.java:75)
at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView$20.run(UssdsimulatorView.java:686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
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:722)

Yet, currently, no process is binding to that port!

To make this worse, I can't find the docs for SS7 Simulator, though the README says :

----------------
How to Use it?
---------------- Please refer to documentation for detailed explanation. 

  1. So what am I doing wrong? 
  2. How can I do things the right way? 
  3. And where to do I find the SS7 Simulator Docs? 
Am a total newbie to both Mobicents and SS7, but am currently using the book Signalling Systems No. 7 (SS7/C7) -- Lee Dryburgh, Jeff Hewett, but can't even see
how to leverage the theory in that book in terms of configuring and using the Mobicents Stack well, so any help possible is welcome.

My ultimate goal is to be able to test the ussdgateway, then be able to use it in production (with some modifications) for ussd apps for a client.

Thanks.

Sergey Vetyutnev

unread,
Sep 17, 2012, 12:51:05 PM9/17/12
to mobicent...@googlegroups.com
Hello!

It looks like you are using a very old version.
Try to use the last version from:
https://mobicents.ci.cloudbees.com/job/Mobicents-jSS7-Release-2.x/#

Ahmad Hammad

unread,
May 25, 2015, 4:58:02 AM5/25/15
to mobicent...@googlegroups.com
Hello Dear ,

i face now the same problem can you advice plz .

and how you solved it .

Mncedisi Kasper

unread,
May 27, 2015, 4:18:13 AM5/27/15
to mobicent...@googlegroups.com
Hi Joe.

I've just sent in uploaded some instructions here  : https://groups.google.com/forum/#!topic/mobicents-public/uLBSHsC1yyU

You can also download a working version of the USSDGateway + Simulator setup from the same link/document 

Regards
Reply all
Reply to author
Forward
0 new messages