USSD simulator

1,943 views
Skip to first unread message

sokha

unread,
Oct 12, 2011, 6:00:52 AM10/12/11
to mobicents-public
Hello,

I am new to mobicents , I would like to test out Ussd Simulator so I
have downloaded and USSD Gateway which has ussd simulator inside
however i could not figure out how to run for testing.

what are some of service should i run? mobicents ss7 or ussd gateway
is enough? need to run example?
what do i need to configure ?

note: I used ubuntu and JDK7.

Regards,
sokha

sokha

unread,
Oct 12, 2011, 6:17:00 AM10/12/11
to mobicents-public
when I click on start simulator below error shown:
=========================================================================
17:12:18,669 INFO M3UAManagement:97 - M3UA configuration file
path /home/sokhapen/Downloads/ussd-gateway-1.0.0.BETA1/simulator/m3ua-
server.xml
17:12:18,714 INFO M3UAManagement:105 - Started M3UAManagement
17:12:18,731 INFO M3UAManagement:97 - M3UA configuration file
path /home/sokhapen/Downloads/ussd-gateway-1.0.0.BETA1/simulator/m3ua-
server.xml
17:12:18,741 INFO M3UAManagement:105 - Started M3UAManagement
Oct 12, 2011 5:12:18 PM
org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView$20 run
SEVERE: null
java.lang.UnsupportedOperationException: libsctp.so.1: cannot open
shared object file: No such file or directory
at sun.nio.ch.SctpNet.socket0(Native Method)
at sun.nio.ch.SctpNet.socket(SctpNet.java:83)
at sun.nio.ch.SctpServerChannelImpl.<init>(SctpServerChannelImpl.java:
89)
at com.sun.nio.sctp.SctpServerChannel.open(SctpServerChannel.java:
101)
at
org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpServerChannel.open(SctpServerChannel.java:
58)
at
org.mobicents.protocols.ss7.m3ua.impl.sctp.SctpProvider.openServerChannel(SctpProvider.java:
75)
at
org.mobicents.protocols.ss7.m3ua.impl.sg.ServerM3UAProcess.start(ServerM3UAProcess.java:
135)
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)

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.access
$2100(UssdsimulatorView.java:75)
at org.mobicents.protocols.ss7.ussdsimulator.UssdsimulatorView
$20.run(UssdsimulatorView.java:689)
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)


//

what should i do?

Amit Bhayani

unread,
Oct 12, 2011, 6:19:36 AM10/12/11
to mobicent...@googlegroups.com
You don't have sctp module installed.

sokha

unread,
Oct 13, 2011, 10:09:10 PM10/13/11
to mobicents-public
Hello Amit,

now I can run Simulator , however when i start USSD Gateway the
following error display:
----------
on USSD Simulator
----------
09:03:56,531 ERROR RemAspFactory:389 - Transition=aspactive.
FSM.name=server-testasp old state=ACTIVE, current state=ACTIVE
org.mobicents.protocols.ss7.m3ua.impl.fsm.UnknownTransitionException:
Transition=aspactive. FSM.name=server-testasp old state=ACTIVE,
current state=ACTIVE
at org.mobicents.protocols.ss7.m3ua.impl.fsm.State.signal(State.java:
119)
at org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM.signal(FSM.java:153)
at
org.mobicents.protocols.ss7.m3ua.impl.sg.RemAspFactory.handleAspActive(RemAspFactory.java:
384)
at
org.mobicents.protocols.ss7.m3ua.impl.sg.RemAspFactory.read(RemAspFactory.java:
132)
at
org.mobicents.protocols.ss7.m3ua.impl.sg.ServerM3UAProcess.read(ServerM3UAProcess.java:
235)
at
org.mobicents.protocols.ss7.m3ua.impl.sg.ServerM3UAProcess.execute(ServerM3UAProcess.java:
178)
at org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl
$MtpStreamHandler.run(SccpStackImpl.java:306)
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)

------------
on USSD Gateway
------------

09:03:56,628 ERROR [LocalAspFactory] Transition=aspactiveack.
FSM.name=ASP1 old state=ACTIVE, current state=ACTIVE
org.mobicents.protocols.ss7.m3ua.impl.fsm.UnknownTransitionException:
Transition=aspactiveack. FSM.name=ASP1 old state=ACTIVE, current
state=ACTIVE
at org.mobicents.protocols.ss7.m3ua.impl.fsm.State.signal(State.java:
119)
at org.mobicents.protocols.ss7.m3ua.impl.fsm.FSM.signal(FSM.java:153)
at
org.mobicents.protocols.ss7.m3ua.impl.as.LocalAspFactory.handleAspActiveAck(LocalAspFactory.java:
509)
at
org.mobicents.protocols.ss7.m3ua.impl.as.LocalAspFactory.read(LocalAspFactory.java:
231)
at
org.mobicents.protocols.ss7.m3ua.impl.as.ClientM3UAProcess.read(ClientM3UAProcess.java:
159)
at
org.mobicents.protocols.ss7.m3ua.impl.as.ClientM3UAProcess.execute(ClientM3UAProcess.java:
145)
at org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl
$MtpStreamHandler.run(SccpStackImpl.java:306)
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)

////

what is exactly the problem?


Regards,
sokha





On Oct 12, 5:19 pm, Amit Bhayani <amit.bhay...@gmail.com> wrote:
> You don't have sctp module installed.
>
> Look herehttp://openjdk.java.net/projects/sctp/html/gettingstarted.html

sokha

unread,
Oct 14, 2011, 12:46:01 AM10/14/11
to mobicents-public
when I call to *123# the following error from USSD Gateway:


11:42:53,079 INFO [STDOUT] len=8, pos=0, buffer.remaining=156
11:42:57,705 INFO [ClientTransactionWrapper]
ClientTransaction[z9hG4bK-393734-bfdf47d19804393f28da1941def9931a]
sending request:
INVITE sip:1...@192.168.53.225 SIP/2.0
Call-ID: ba55c0b0ba8a87f5...@127.0.0.1
CSeq: 1 INVITE
From: "MobicentsUSSDGateway" <sip:11...@127.0.0.1>;tag=1369
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP 127.0.0.1:5060;rport=5060;branch=z9hG4bK-393734-
bfdf47d19804393f28da1941def9931a
Max-Forwards: 70
Contact: "MobicentsUSSDGateway" <sip:11...@127.0.0.1:5060>
Content-Type: text/xml
Content-Length: 289

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><request
xmlns="http://mobicents.org/ussd"><invokeId>1</invokeId><dialogId>0</
dialogId><msisdn>31628838002</msisdn><ussdString>*123#</
ussdString><ussdCoding>15</ussdCoding><result>false</
result><lastResult>false</lastResult></request>
11:42:57,725 ERROR [SipSbbImpl] Error while sending SIP message
javax.sip.SipException: Invalid argument
at
gov.nist.javax.sip.stack.SIPClientTransaction.sendRequest(SIPClientTransaction.java:
1044)
at
org.mobicents.slee.resource.sip11.wrappers.ClientTransactionWrapper.sendRequest(ClientTransactionWrapper.java:
168)
at org.mobicents.ussdgateway.slee.sip.SipSbb.sendUssdData(SipSbb.java:
411)
at
org.mobicents.ussdgateway.slee.ChildSbb.onProcessUnstructuredSSRequest(ChildSbb.java:
120)
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:601)
at
org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:
478)
at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:
379)
at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:
126)
at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl
$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
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)
Caused by: java.io.IOException: Invalid argument
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:675)
at
gov.nist.javax.sip.stack.UDPMessageChannel.sendMessage(UDPMessageChannel.java:
807)
at
gov.nist.javax.sip.stack.MessageChannel.sendMessage(MessageChannel.java:
281)
at
gov.nist.javax.sip.stack.SIPTransaction.sendMessage(SIPTransaction.java:
855)
at
gov.nist.javax.sip.stack.SIPClientTransaction.sendMessage(SIPClientTransaction.java:
489)
at
gov.nist.javax.sip.stack.SIPClientTransaction.sendRequest(SIPClientTransaction.java:
1036)
... 14 more
11:42:57,798 INFO [SipSbbImpl] Rx :
onDialogDelimiterorg.mobicents.slee.resource.map.DialogDelimiter@1391c66
11:42:58,229 INFO [SipResourceAdaptor] SIP Transaction z9hg4bk-393734-
bfdf47d19804393f28da1941def9931a terminated


Regards,

Bartosz Baranowski

unread,
Oct 14, 2011, 2:54:16 AM10/14/11
to mobicent...@googlegroups.com
Im not quite sure of the cause of first error. Second one is ( or atleast looks like) easy to nail. 
See:
From: "MobicentsUSSDGateway" <sip:11111@127.0.0.1>;tag=1369
To: <sip:123@192.168.53.225>


Different IPs. Looks like you configured rules to use some networtk IP as target, while you bind container to 127.0.0.1

Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.

sokha

unread,
Oct 17, 2011, 3:34:26 AM10/17/11
to mobicents-public
Hello,

Thanks for your guide,

right now request from ussd gateway to application is ok but
application does not reply any message.

----
14:14:51,890 INFO [SleeManagementMBean] >< >< >< >< >< >< ><
Mobicents JAIN SLEE 2.5.0.FINAL "HENDRIX" starting >< >< >< >< >< ><
><
14:14:52,046 INFO [SleeManagementMBean] >< >< >< >< >< >< ><
Mobicents JAIN SLEE 2.5.0.FINAL "HENDRIX" started >< >< >< >< >< >< ><
14:14:58,453 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on
http-192.168.53.225-8180
14:14:58,578 INFO [AjpProtocol] Starting Coyote AJP/1.3 on
ajp-192.168.53.225-8109
14:14:58,593 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA
(build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 3m:47s:
140ms
14:26:44,484 INFO [SipResourceAdaptor] Received Request:
INVITE sip:1...@192.168.53.225 SIP/2.0
Call-ID: b1f90a7cac3d9e77...@192.168.53.25
CSeq: 1 INVITE
From: "MobicentsUSSDGateway" <sip:11...@192.168.53.25>;tag=4369
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP 192.168.53.25:5060;rport=5060;branch=z9hG4bK-373630-
a206dcb4072
b7ac32b5c5f448921ffd1;received=192.168.53.25
Max-Forwards: 70
Contact: "MobicentsUSSDGateway" <sip:11...@192.168.53.25:5060>
Content-Type: text/xml
Content-Length: 289

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><request
xmlns="http://mo
bicents.org/ussd"><invokeId>1</invokeId><dialogId>0</
dialogId><msisdn>3162883800
2</msisdn><ussdString>*123#</ussdString><ussdCoding>15</
ussdCoding><result>false
</result><lastResult>false</lastResult></request>
14:26:44,484 INFO [SipResourceAdaptor] Received Request:
INVITE sip:1...@192.168.53.225 SIP/2.0
Call-ID: b1f90a7cac3d9e77...@192.168.53.25
CSeq: 1 INVITE
From: "MobicentsUSSDGateway" <sip:11...@192.168.53.25>;tag=4369
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP 192.168.53.25:5060;rport=5060;branch=z9hG4bK-373630-
a206dcb4072
b7ac32b5c5f448921ffd1;received=192.168.53.25
Max-Forwards: 70
Contact: "MobicentsUSSDGateway" <sip:11...@192.168.53.25:5060>
Content-Type: text/xml
Content-Length: 289

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><request
xmlns="http://mo
bicents.org/ussd"><invokeId>1</invokeId><dialogId>0</
dialogId><msisdn>3162883800
2</msisdn><ussdString>*123#</ussdString><ussdCoding>15</
ussdCoding><result>false
</result><lastResult>false</lastResult></request>
14:26:44,484 INFO [SipResourceAdaptor] Received Request:
INVITE sip:1...@192.168.53.225 SIP/2.0
Call-ID: b1f90a7cac3d9e77...@192.168.53.25
CSeq: 1 INVITE
From: "MobicentsUSSDGateway" <sip:11...@192.168.53.25>;tag=4369
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP 192.168.53.25:5060;rport=5060;branch=z9hG4bK-373630-
a206dcb4072
b7ac32b5c5f448921ffd1;received=192.168.53.25
Max-Forwards: 70
Contact: "MobicentsUSSDGateway" <sip:11...@192.168.53.25:5060>
Content-Type: text/xml
Content-Length: 289

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><request
xmlns="http://mobicents.org/ussd"><invokeId>1</invokeId><dialogId>0</
dialogId><msisdn>3162883800
2</msisdn><ussdString>*123#</ussdString><ussdCoding>15</
ussdCoding><result>false
</result><lastResult>false</lastResult></request>

//

do I need to configure anything on Example application?


Regards,
sokha




On Oct 14, 1:54 pm, Bartosz Baranowski <baran...@gmail.com> wrote:
> Im not quite sure of the cause of first error. Second one is ( or atleast
> looks like) easy to nail.
> See:
> From: "MobicentsUSSDGateway" <sip:11111@*127.0.0.1* <sip%3A11...@127.0.0.1>>;tag=1369
>
> To: <sip:123@*192.168.53.225* <sip%3A...@192.168.53.225>>
>
> Different IPs. Looks like you configured rules to use some networtk IP as
> target, while you bind container to 127.0.0.1
>
> Bartosz Baranowski
> JBoss R & D
> ==================================
> Word of criticism meant to improve is always step forward.
>
>
>
>
>
>
>
> On Fri, Oct 14, 2011 at 6:46 AM, sokha <pen.so...@gmail.com> wrote:
> > when I call to *123# the following error from USSD Gateway:
>
> > 11:42:53,079 INFO  [STDOUT] len=8, pos=0, buffer.remaining=156
> > 11:42:57,705 INFO  [ClientTransactionWrapper]
> > ClientTransaction[z9hG4bK-393734-bfdf47d19804393f28da1941def9931a]
> > sending request:
> > INVITE sip:1...@192.168.53.225 SIP/2.0
> > Call-ID: ba55c0b0ba8a87f50f07cca6f1f62...@127.0.0.1

sokha

unread,
Oct 17, 2011, 4:07:34 AM10/17/11
to mobicents-public
below log is from ussdgateway.

15:04:22,628 INFO [STDOUT] [2011:10:290 15:10:628:debug]
ResourceChangeScanner scanning directory=[UrlResource path='file:/home/
sokhapen/Downloads/ussd-gateway-1.0.0.BETA1/jboss-5.1.0.GA/server/
ussd//deploy/mobicents-ussd-gateway/rules/']
15:04:22,629 INFO [STDOUT] [2011:10:290 15:10:629:debug]
ResourceChangeScanner thread is waiting for 60
15:04:45,320 INFO [STDOUT] len=8, pos=0, buffer.remaining=156
15:04:50,099 INFO [ClientTransactionWrapper]
ClientTransaction[z9hG4bK-373630-97a51f057815b33880a5585e5a145a89]
sending request:
INVITE sip:1...@192.168.53.225 SIP/2.0
Call-ID: f1f93f9a1f27a49c...@192.168.53.25
CSeq: 1 INVITE
From: "MobicentsUSSDGateway" <sip:11...@192.168.53.25>;tag=7276
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP
192.168.53.25:5060;rport=5060;branch=z9hG4bK-373630-97a51f057815b33880a5585e5a145a89
Max-Forwards: 70
Contact: "MobicentsUSSDGateway" <sip:11...@192.168.53.25:5060>
Content-Type: text/xml
Content-Length: 289

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><request
xmlns="http://mobicents.org/ussd"><invokeId>1</invokeId><dialogId>5</
dialogId><msisdn>31628838002</msisdn><ussdString>*123#</
ussdString><ussdCoding>15</ussdCoding><result>false</
result><lastResult>false</lastResult></request>
15:04:50,131 INFO [SipSbbImpl] Rx :
onDialogDelimiterorg.mobicents.slee.resource.map.DialogDelimiter@1afa4a9
15:05:03,888 INFO [SipResourceAdaptor] Received Response:
SIP/2.0 100 Trying
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP
192.168.53.25:5060;rport=5060;branch=z9hG4bK-373630-97a51f057815b33880a5585e5a145a89;received=192.168.53.25
CSeq: 1 INVITE
Call-ID: f1f93f9a1f27a49c...@192.168.53.25
From: "MobicentsUSSDGateway" <sip:11...@192.168.53.25>;tag=7276
Content-Length: 0


15:05:04,877 INFO [SipResourceAdaptor] Dropping in dialog
retransmission. Response:
SIP/2.0 100 Trying
To: <sip:1...@192.168.53.225>
Via: SIP/2.0/UDP
192.168.53.25:5060;rport=5060;branch=z9hG4bK-373630-97a51f057815b33880a5585e5a145a89;received=192.168.53.25
CSeq: 1 INVITE
Call-ID: f1f93f9a1f27a49c...@192.168.53.25
From: "MobicentsUSSDGateway" <sip:11...@192.168.53.25>;tag=7276
Content-Length: 0


15:05:22,629 INFO [STDOUT] [2011:10:290 15:10:629:debug]
ResourceChangeScanner attempt to scan 2 resources
15:05:22,629 INFO [STDOUT] [2011:10:290 15:10:629:debug]
ResourceChangeScanner scanning directory=[UrlResource path='file:/home/
sokhapen/Downloads/ussd-gateway-1.0.0.BETA1/jboss-5.1.0.GA/server/
ussd//deploy/mobicents-ussd-gateway/rules/']
15:05:22,630 INFO [STDOUT] [2011:10:290 15:10:630:debug]
ResourceChangeScanner thread is waiting for 60
15:06:22,630 INFO [STDOUT] [2011:10:290 15:10:630:debug]
ResourceChangeScanner attempt to scan 2 resources
15:06:22,630 INFO [STDOUT] [2011:10:290 15:10:630:debug]
ResourceChangeScanner scanning directory=[UrlResource path='file:/home/
sokhapen/Downloads/ussd-gateway-1.0.0.BETA1/jboss-5.1.0.GA/server/
ussd//deploy/mobicents-ussd-gateway/rules/']
15:06:22,657 INFO [STDOUT] [2011:10:290 15:10:657:debug]
ResourceChangeScanner thread is waiting for 60


//
Regards,
sokha

Bartosz Baranowski

unread,
Oct 17, 2011, 5:24:43 AM10/17/11
to mobicent...@googlegroups.com
Did you install example? Its not predeployed. You need to run "ant" in example directory.

Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.


Reply all
Reply to author
Forward
0 new messages