Simulating my USSD Gateway

760 views
Skip to first unread message

Vilian

unread,
Sep 16, 2014, 12:29:05 PM9/16/14
to mobicent...@googlegroups.com
Hi,
I am trying to simulate my USSD gateway already deployed and I got this error when trying to start m3ua link while the host and the peer are on the same IP adress (localhost):
09:10:41,823 INFO  [ShellServer] (pool-19-thread-2) received command : sctp association create ASS1 CLIENT 127.0.0.1 8012 127.0.0.1 8011
09:10:42,364 INFO  [ManagementImpl] (pool-19-thread-2) Added Associoation=ASS1 of type=CLIENT
09:16:48,307 INFO  [ShellServer] (pool-19-thread-1) received command : m3ua asp create ASP1 ASS1
09:17:21,007 INFO  [ShellServer] (pool-19-thread-2) received command : m3ua as add AS1 ASP1
09:19:38,971 INFO  [ShellServer] (pool-19-thread-2) received command : m3ua route add AS1 1 2 3
09:19:39,971 INFO  [ShellServer] (pool-19-thread-1) received command : m3ua asp start ASP1
09:19:39,975 INFO  [AssociationImpl] (pool-19-thread-1) Started Association=Association [name=ASS1, associationType=CLIENT, ipChannelType=SCTP, hostAddress=127.0.0.1, hostPort=8011, peerAddress=127.0.0.1, peerPort=8012, serverName=null, extraHostAddress=[]]
09:20:11,432 ERROR [SelectorThread] (Thread-17) Exception while finishing connection for Association=ASS1
java.net.ConnectException: Connection refused
        at sun.nio.ch.SctpChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SctpChannelImpl.finishConnect(SctpChannelImpl.java:475)
        at org.mobicents.protocols.sctp.SelectorThread.finishConnectionSctp(SelectorThread.java:381)
        at org.mobicents.protocols.sctp.SelectorThread.finishConnection(SelectorThread.java:366)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:151)
        at java.lang.Thread.run(Thread.java:745)

Is there someone who can help me to understand why I am getting this exception?

Regards,

Vilian

mehdi boudou

unread,
Sep 17, 2014, 4:34:21 AM9/17/14
to mobicent...@googlegroups.com
Hello,

did you install the sctp stack ?

git clone https://code.google.com/p/sctp/ and mvn clean install in the directory

 Regards,

Mehdi

Sergey Vetyutnev

unread,
Sep 17, 2014, 9:25:58 AM9/17/14
to mobicent...@googlegroups.com
Hello,

> java.net.ConnectException: Connection refused
This means that you have created SCTP client association, this association is trying to connect to some SCTP socket server but this server rejects an incoming connection.
Either there is no SCTP server at a peer part configured / reachable or it is a configuration issue (bad host/port etc)

Eloge Bapfunya

unread,
Sep 18, 2014, 8:26:15 AM9/18/14
to mobicent...@googlegroups.com
Hi all,
I have just followed the documentation in Readme.txt coming with ussdgateway package:
To test USSD Gateway with mobicents ss7-simulator make sure you follow the below configuration changes and the execute SS7 Command's

 

        a) map/mobicents-slee-ra-map-du-1.0.0.CR3.jar
        b) http-client/http-client-ra-DU-2.5.0.FINAL.jar
        c) jdbc/mobicents-slee-ra-jdbc-DU-1.0.0.FINAL.jar

3) If you are deploying USSD Gateway from source code, set JBOSS_HOME variable to point to "ussd-mobicents-jainslee-2.6.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA" and execute "mvn clean install" command, it should create "mobicents-ussd-gateway" and ussdhttpdemo.war in /deploy folder of JBoss. 

5) Execute below commands in SS7 CLI to setup SS7 

        5.1) sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011 

        5.2) m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare

        5.3) m3ua asp create ASP1 Assoc1

        5.4) m3ua as add AS1 ASP1

        5.5) m3ua route add AS1 2 -1 -1

        5.6) m3ua asp start ASP1

 When I start the m3ua link, I get that error.
I am not good in SCTP protocol but it must be a way how I should check if my SCTP is up and running on both side (Client and Server). 
In the directory deploy/mobicents-ussd-gateway/lib of jboss I shoud foind these modules which are well started with jboss launch:
-rw-rw-r-- 1 beloge2002 beloge2002   8785 Sep  7 09:08 sctp-api-1.0.0-20121119.010416-31.jar
-rw-rw-r-- 1 beloge2002 beloge2002  45231 Sep  7 09:08 sctp-impl-1.0.0-20121119.010424-31.jar

and please find the content of the directory mobicents-ussd-gateway:
-rw-rw-r-- 1 beloge2002 beloge2002  23119 Sep  7 09:08 asn-2.0.0-20130624.000259-57.jar
-rw-rw-r-- 1 beloge2002 beloge2002   7467 Sep  7 09:08 bootstrap-1.0.0-SNAPSHOT.jar
-rw-rw-r-- 1 beloge2002 beloge2002   6389 Sep  7 09:08 commons-1.0.0-20120120.114116-1.jar
-rw-rw-r-- 1 beloge2002 beloge2002   5442 Sep  7 09:08 congestion-2.0.0-20130429.075506-34.jar
-rw-rw-r-- 1 beloge2002 beloge2002  15380 Sep  7 09:08 domain-1.0.0-SNAPSHOT.jar
-rw-rw-r-- 1 beloge2002 beloge2002 108335 Sep  7 09:08 isup-api-2.0.0-20130429.102309-23.jar
-rw-rw-r-- 1 beloge2002 beloge2002 309789 Sep  7 09:08 isup-impl-2.0.0-20130429.102309-23.jar
-rw-rw-r-- 1 beloge2002 beloge2002 395195 Sep  7 09:08 javolution-5.5.1.jar
-rw-rw-r-- 1 beloge2002 beloge2002  22974 Sep  7 09:08 linkset-2.0.0-20130429.091919-21.jar
-rw-rw-r-- 1 beloge2002 beloge2002  36755 Sep  7 09:08 m3ua-api-2.0.0-20130429.090753-34.jar
-rw-rw-r-- 1 beloge2002 beloge2002 234902 Sep  7 09:08 m3ua-impl-2.0.0-20130429.090753-29.jar
-rw-rw-r-- 1 beloge2002 beloge2002 470852 Sep  7 09:08 map-api-2.0.0-20121126.011028-16.jar
-rw-rw-r-- 1 beloge2002 beloge2002 833925 Sep  7 09:08 map-impl-2.0.0-20121126.011048-16.jar
-rw-rw-r-- 1 beloge2002 beloge2002  13602 Sep  7 09:08 mobicents-dialogic-2.0.0-20130429.091919-26.jar
-rw-rw-r-- 1 beloge2002 beloge2002  45910 Sep  7 09:08 mtp-2.0.0-20130429.075506-32.jar
-rw-rw-r-- 1 beloge2002 beloge2002  13298 Sep  7 09:08 mtp-api-2.0.0-20130429.075506-33.jar
-rw-rw-r-- 1 beloge2002 beloge2002  55263 Sep  7 09:08 sccp-api-2.0.0-20130429.114017-23.jar
-rw-rw-r-- 1 beloge2002 beloge2002 160916 Sep  7 09:08 sccp-impl-2.0.0-20121126.010955-20.jar
-rw-rw-r-- 1 beloge2002 beloge2002  26662 Sep  7 09:08 scheduler-2.0.0-20130429.075506-34.jar
-rw-rw-r-- 1 beloge2002 beloge2002   8785 Sep  7 09:08 sctp-api-1.0.0-20121119.010416-31.jar
-rw-rw-r-- 1 beloge2002 beloge2002  45231 Sep  7 09:08 sctp-impl-1.0.0-20121119.010424-31.jar
-rw-rw-r-- 1 beloge2002 beloge2002  50671 Sep  7 09:08 shell-2.0.0-20120903.000653-18.jar
-rw-rw-r-- 1 beloge2002 beloge2002   5176 Sep  7 09:08 stream-1.0.0.CR1.jar
-rw-rw-r-- 1 beloge2002 beloge2002  53263 Sep  7 09:08 tcap-api-2.0.0-20121126.011007-18.jar
-rw-rw-r-- 1 beloge2002 beloge2002 107805 Sep  7 09:08 tcap-impl-2.0.0-20121126.011015-15.jar
-rw-rw-r-- 1 beloge2002 beloge2002  10158 Sep  7 09:08 xml-1.0.0-SNAPSHOT.jar

Someone can give me more details about how the simulation works.

Best regards

--
You received this message because you are subscribed to a topic in the Google Groups "mobicents-public" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mobicents-public/_-wtrJ6AUD8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mobicents-publ...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ibrahima Gaye

unread,
Sep 19, 2014, 12:39:08 AM9/19/14
to mobicent...@googlegroups.com
​hi,
have not seen this step in your log:
        5.2) m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare

On Thu, Sep 18, 2014 at 12:26 PM, Eloge Bapfunya <belog...@gmail.com> wrote:
        5.2) m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare



------
Ibrahim

Vilian

unread,
Sep 21, 2014, 8:16:19 AM9/21/14
to mobicent...@googlegroups.com
Hi all,
Please find all commands I did:
mobicents>ss7 connect 127.0.0.1 3435

mobicents(127.0.0.1:3435)>sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011 
Successfully added client Association=Assoc1
mobicents(127.0.0.1:3435)>m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare
Successfully created AS name=AS1
mobicents(127.0.0.1:3435)>m3ua asp create ASP1 Assoc1
Successfully created ASP name=ASP1
mobicents(127.0.0.1:3435)>m3ua as add AS1 ASP1
Successfully added ASP name=ASP1 to AS name=AS1
mobicents(127.0.0.1:3435)>m3ua route add AS1 2 -1 -1
AS=AS1 successfully added as route for DPC=2
mobicents(127.0.0.1:3435)>m3ua asp start ASP1
Successfully started ASP name=ASP1


and logs generated when typing those commands:

14:09:59,254 INFO  [ShellServer] (pool-18-thread-2) received command : sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011
14:09:59,271 INFO  [ManagementImpl] (pool-18-thread-2) Added Associoation=Assoc1 of type=CLIENT
14:10:23,282 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare
14:10:36,530 INFO  [ShellServer] (pool-18-thread-2) received command : m3ua asp create ASP1 Assoc1
14:10:47,514 INFO  [ShellServer] (pool-18-thread-2) received command : m3ua as add AS1 ASP1
14:11:04,090 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua route add AS1 2 -1 -1
14:11:14,438 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua asp start ASP1
14:11:14,442 INFO  [AssociationImpl] (pool-18-thread-1) Started Association=Association [name=Assoc1, associationType=CLIENT, ipChannelType=SCTP, hostAddress=127.0.0.1, hostPort=8011, peerAddress=127.0.0.1, peerPort=8012, serverName=null, extraHostAddress=[]]
14:11:44,631 ERROR [AssociationImpl] (Thread-17) Error while initiating a connection
java.lang.UnsupportedOperationException: libsctp.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
        at sun.nio.ch.SctpNet.socket0(Native Method)
        at sun.nio.ch.SctpNet.socket(SctpNet.java:90)
        at sun.nio.ch.SctpChannelImpl.<init>(SctpChannelImpl.java:131)
        at com.sun.nio.sctp.SctpChannel.open(SctpChannel.java:165)
        at org.mobicents.protocols.sctp.AssociationImpl.doInitiateConnectionSctp(AssociationImpl.java:724)
        at org.mobicents.protocols.sctp.AssociationImpl.initiateConnection(AssociationImpl.java:695)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:121)
        at java.lang.Thread.run(Thread.java:745)
14:12:14,663 ERROR [AssociationImpl] (Thread-17) Error while initiating a connection
java.lang.UnsupportedOperationException: libsctp.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
        at sun.nio.ch.SctpNet.socket0(Native Method)
        at sun.nio.ch.SctpNet.socket(SctpNet.java:90)
        at sun.nio.ch.SctpChannelImpl.<init>(SctpChannelImpl.java:131)
        at com.sun.nio.sctp.SctpChannel.open(SctpChannel.java:165)
        at org.mobicents.protocols.sctp.AssociationImpl.doInitiateConnectionSctp(AssociationImpl.java:724)
        at org.mobicents.protocols.sctp.AssociationImpl.initiateConnection(AssociationImpl.java:695)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:121)
        at java.lang.Thread.run(Thread.java:745)


Do I have to start also the server which is running on the same computer as I am simulating?
You can see clearly that the command you asked me is already executed below (5.2) m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare)

Vilian

unread,
Sep 21, 2014, 8:34:56 AM9/21/14
to mobicent...@googlegroups.com
Sorry, I noticed I didn't install sctp library which I have already install and now, I come back on the main issue:
4:32:38,381 ERROR [SelectorThread] (Thread-17) Exception while finishing connection for Association=Assoc1
java.net.ConnectException: Connexion refusée
        at sun.nio.ch.SctpChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SctpChannelImpl.finishConnect(SctpChannelImpl.java:475)
        at org.mobicents.protocols.sctp.SelectorThread.finishConnectionSctp(SelectorThread.java:381)
        at org.mobicents.protocols.sctp.SelectorThread.finishConnection(SelectorThread.java:366)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:151)
        at java.lang.Thread.run(Thread.java:745)

Thank you in advance for your help.

Ibrahima Gaye

unread,
Sep 21, 2014, 1:24:41 PM9/21/14
to mobicent...@googlegroups.com
Check if the port are opened : netstat -laputen

------
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.

mehdi boudou

unread,
Sep 22, 2014, 9:46:49 AM9/22/14
to mobicent...@googlegroups.com
I think that the sctp library of your distribution isn't well installed?
Can you reinstall the library ?

Regards, 

Mehdi 

Le mardi 16 septembre 2014 18:29:05 UTC+2, Vilian a écrit :

Vilian

unread,
Sep 23, 2014, 4:32:50 AM9/23/14
to mobicent...@googlegroups.com
Thank you all for your help.
I checked opened port and found port 8011 and 8012 after launching this command in ss7_cli: sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011
I tried to reinstall sctp library with these command: 
sudo apt-get remove lksctp-tools
- sudo apt-get install lksctp-tools

And tried to deploy the latest version of sctp by cloning:
and launch mvn clean install and get attached logs.
It seems I still have a problem with my sctp library cause after installation of sctp package, all test failed as mentioned in logs attached to this message.
Is there someone who can help me to solve the problem?
Thank you in advanced.
Sctp_logs.txt

Vilian

unread,
Sep 23, 2014, 9:18:30 AM9/23/14
to mobicent...@googlegroups.com
And I can add that I succeed this command on my server:
test@Mobicents:/usr/local/share/Mobicents/jboss-5.1.0.GA/bin$ sctp_darn -H 0 -P 2500 -l
sctp_darn listening...
Recieved SCTP_COMM_UP
NOTIFICATION: ASSOC_CHANGE - COMM_UP
SNDRCV
   sinfo_stream 0
   sinfo_ssn 0
   sinfo_flags 0x0
   sinfo_ppid 0
   sinfo_context 0
   sinfo_tsn     642033301
   sinfo_cumtsn  0
   sinfo_assoc_id  20
DATA(6):  test.

test@Mobicents:/usr/local/share/Mobicents/jboss-5.1.0.GA/bin$ sctp_darn -H 0 -P 2600 -h 127.0.0.1 -p 2500 -s
sctp_darn ready to send...
0:2600-127.0.0.1:2500> test
Recieved SCTP_COMM_UP
New connection, peer addresses
0:2600-127.0.0.1:2500> 

I think my sctp library is working perfectly, but I still have error while deploying sctp to simulate ussdgateway as mentioned in my previous message.
Thank you in advance for your time.

Loay Dawoud

unread,
Sep 24, 2014, 9:58:07 AM9/24/14
to mobicent...@googlegroups.com
Hi 

try to disable selinux I think.

BR


--

Vilian

unread,
Sep 25, 2014, 3:30:14 AM9/25/14
to mobicent...@googlegroups.com
Hi,
I am using ubuntu LTS 14.04 which by default do not use selinux.
Apparmor is disabled and still have errors.
Thanks again for your help.

Vilian

unread,
Sep 25, 2014, 11:07:22 AM9/25/14
to mobicent...@googlegroups.com
I have already replaced sctp-api-1.0.0-20121119.010416-31.jar by this sctp-api-1.6.0-SNAPSHOT.jar and restart my jboss server.
I have reset connection on ss7 cli and set new connection and still have error when I start the association by the command m3ua asp start ASP1 as mentioned in logs below. 
Here is also status of association between server and client:

mobicents(127.0.0.1:3435)>sctp association show

ASSOCIATION SCTP name=Assoc1 started=true peerIp=127.0.0.1 peerPort=8012 hostIp=127.0.0.1 hostPort=8011 type=CLIENT

ASSOCIATION SCTP name=ass1 started=false peerIp=127.0.0.1 peerPort=8011 server=serv1 type=SERVER

Please find jboss logs:

16:46:08,639 INFO  [ShellServer] (pool-18-thread-2) received command : m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare
16:46:24,394 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua asp create ASP1 Assoc1
16:46:34,363 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua as add AS1 ASP1
16:46:47,115 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua route add AS1 2 -1 -1
16:47:00,915 INFO  [ShellServer] (pool-18-thread-1) received command : m3ua asp start ASP1
16:47:00,915 INFO  [AssociationImpl] (pool-18-thread-1) Started Association=Association [name=Assoc1, associationType=CLIENT, ipChannelType=SCTP, hostAddress=127.0.0.1, hostPort=8011, peerAddress=127.0.0.1, peerPort=8012, serverName=, extraHostAddress=[]]
16:47:31,014 ERROR [SelectorThread] (Thread-17) Received connect request for Association=ass1 but not started yet. Droping the connection! 
16:47:31,015 INFO  [SelectorThread] (Thread-17) Association=Assoc1 connected to=[]
16:47:31,019 INFO  [AssociationHandler] (Thread-17) New association setup for Association=Assoc1 with 32 outbound streams, and 10 inbound streams.

16:47:31,021 INFO  [AssociationHandler] (Thread-17) Association=Assoc1 SHUTDOWN
16:47:31,021 WARN  [AspFactoryImpl] (Thread-17) Communication channel shutdown for AspFactroy=ASP1 Association=Assoc1
16:47:31,022 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=Assoc1 IOError count=1
java.net.SocketException: Socket is shutdown for writing
        at sun.nio.ch.SctpChannelImpl.send0(Native Method)
        at sun.nio.ch.SctpChannelImpl.sendFromNativeBuffer(SctpChannelImpl.java:1039)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:991)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:971)
        at org.mobicents.protocols.sctp.AssociationImpl.doSendSctp(AssociationImpl.java:643)
        at org.mobicents.protocols.sctp.AssociationImpl.doSend(AssociationImpl.java:637)
        at org.mobicents.protocols.sctp.AssociationImpl.write(AssociationImpl.java:601)
        at org.mobicents.protocols.sctp.SelectorThread.write(SelectorThread.java:436)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:157)
        at java.lang.Thread.run(Thread.java:745)
16:47:31,024 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=Assoc1 IOError count=2
java.net.SocketException: Socket is shutdown for writing
        at sun.nio.ch.SctpChannelImpl.send0(Native Method)
        at sun.nio.ch.SctpChannelImpl.sendFromNativeBuffer(SctpChannelImpl.java:1039)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:991)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:971)
        at org.mobicents.protocols.sctp.AssociationImpl.doSendSctp(AssociationImpl.java:643)
        at org.mobicents.protocols.sctp.AssociationImpl.doSend(AssociationImpl.java:637)
        at org.mobicents.protocols.sctp.AssociationImpl.write(AssociationImpl.java:557)
        at org.mobicents.protocols.sctp.SelectorThread.write(SelectorThread.java:436)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:157)
        at java.lang.Thread.run(Thread.java:745)
16:47:31,025 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=Assoc1 IOError count=3
java.net.SocketException: Socket is shutdown for writing
        at sun.nio.ch.SctpChannelImpl.send0(Native Method)
        at sun.nio.ch.SctpChannelImpl.sendFromNativeBuffer(SctpChannelImpl.java:1039)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:991)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:971)
        at org.mobicents.protocols.sctp.AssociationImpl.doSendSctp(AssociationImpl.java:643)
        at org.mobicents.protocols.sctp.AssociationImpl.doSend(AssociationImpl.java:637)
        at org.mobicents.protocols.sctp.AssociationImpl.write(AssociationImpl.java:557)
        at org.mobicents.protocols.sctp.SelectorThread.write(SelectorThread.java:436)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:157)
        at java.lang.Thread.run(Thread.java:745)
16:47:31,026 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=Assoc1 IOError count=4
java.net.SocketException: Socket is shutdown for writing
        at sun.nio.ch.SctpChannelImpl.send0(Native Method)
        at sun.nio.ch.SctpChannelImpl.sendFromNativeBuffer(SctpChannelImpl.java:1039)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:991)
        at sun.nio.ch.SctpChannelImpl.send(SctpChannelImpl.java:971)
        at org.mobicents.protocols.sctp.AssociationImpl.doSendSctp(AssociationImpl.java:643)
        at org.mobicents.protocols.sctp.AssociationImpl.doSend(AssociationImpl.java:637)
        at org.mobicents.protocols.sctp.AssociationImpl.write(AssociationImpl.java:557)
        at org.mobicents.protocols.sctp.SelectorThread.write(SelectorThread.java:436)
        at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:157)
        at java.lang.Thread.run(Thread.java:745)
16:47:31,028 WARN  [AspFactoryImpl] (Thread-17) Communication channel shutdown for AspFactroy=ASP1 Association=Assoc1
16:48:01,059 ERROR [SelectorThread] (Thread-17) Received connect request for Association=ass1 but not started yet. Droping the connection! 
16:48:01,060 INFO  [SelectorThread] (Thread-17) Association=Assoc1 connected to=[]
16:48:01,061 INFO  [AssociationHandler] (Thread-17) New association setup for Association=Assoc1 with 32 outbound streams, and 10 inbound streams.

16:48:01,061 INFO  [AssociationHandler] (Thread-17) Association=Assoc1 SHUTDOWN
16:48:01,061 WARN  [AspFactoryImpl] (Thread-17) Communication channel shutdown for AspFactroy=ASP1 Association=Assoc1
16:48:01,062 ERROR [AssociationImpl] (Thread-17) IOException while trying to write to underlying socket for Association=Assoc1 IOError count=1

Someone can help me to understand my case. I am really stuck on this step.

Thank you in advance.

Amit Bhayani

unread,
Sep 25, 2014, 4:32:59 PM9/25/14
to mobicents-public

》 ASSOCIATION SCTP name=ass1 started=false peerIp=127.0.0.1 peerPort=8011 server=serv1 type=SERVER

Started is false. Did you start M3UA ASP at server side?

Also did you start Sctp server?

Vilian

unread,
Sep 26, 2014, 1:50:04 AM9/26/14
to mobicent...@googlegroups.com
Hi,
thank you for your help.
I have just followed the readme text which gives steps on how to simulate ussdgateway.
In addition to command below:

        5.1) sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011 
        5.2) m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare
        5.3) m3ua asp create ASP1 Assoc1
        5.4) m3ua as add AS1 ASP1
        5.5) m3ua route add AS1 2 -1 -1
        5.6) m3ua asp start ASP1
        5.7) sccp sap create 1 1 1 2
        5.8) sccp dest create 1 1 2 2 0 255 255
        5.9) sccp rsp create 1 2 0 0
        5.10) sccp rss create 1 2 8 0

after starting my jboss server, do I have to start M3UA and SCTP on client side and server side even they are running on the same host?

Thank you in advance.

Eloge

Vilian

unread,
Sep 26, 2014, 4:57:17 AM9/26/14
to mobicent...@googlegroups.com
The problem is solved.
As you noticed the server was not started.
I continue with my simulation should come back to you if I encounter another problem.

Thank you

Ibrahima Gaye

unread,
Sep 28, 2014, 10:43:50 AM9/28/14
to mobicent...@googlegroups.com
so the port was not open :p

------
Ibrahim

Vilian

unread,
Oct 4, 2014, 7:35:47 AM10/4/14
to mobicent...@googlegroups.com
Hi all,
I have already built and deploy mobicents-slee-ra-map-du-2.8.0-SNAPSHOT.jar and I am trying to simulate my ussdgateway with ss7 simulator. I got above error while sending ussd request from ss7 simulator.
13:11:14,384 ERROR [STDERR] (pool-15-thread-1) Exception in thread "pool-15-thread-1" 
13:11:14,387 ERROR [STDERR] (pool-15-thread-1) java.lang.NoSuchMethodError: org.mobicents.protocols.ss7.map.api.MAPDialog.getLocalDialogId()Ljava/lang/Long;
13:11:14,387 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.slee.resource.map.MAPResourceAdaptor.handleDialogRequest(MAPResourceAdaptor.java:686)
13:11:14,387 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.slee.resource.map.MAPResourceAdaptor.onDialogRequest(MAPResourceAdaptor.java:729)
13:11:14,387 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.map.MAPProviderImpl.deliverDialogRequest(MAPProviderImpl.java:1492)
13:11:14,388 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.map.MAPProviderImpl.onTCBegin(MAPProviderImpl.java:607)
13:11:14,388 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.tcap.TCAPProviderImpl.deliver(TCAPProviderImpl.java:271)
13:11:14,388 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.tcap.DialogImpl.processBegin(DialogImpl.java:1195)
13:11:14,388 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.tcap.TCAPProviderImpl.onMessage(TCAPProviderImpl.java:583)
13:11:14,388 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.sccp.impl.SccpRoutingControl.routeMssgFromMtp(SccpRoutingControl.java:153)
13:11:14,388 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.sccp.impl.SccpStackImpl.onMtp3TransferMessage(SccpStackImpl.java:868)
13:11:14,389 ERROR [STDERR] (pool-15-thread-1)  at org.mobicents.protocols.ss7.mtp.Mtp3UserPartBaseImpl$MsgTransferDeliveryHandler.run(Mtp3UserPartBaseImpl.java:263)
13:11:14,389 ERROR [STDERR] (pool-15-thread-1)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
13:11:14,389 ERROR [STDERR] (pool-15-thread-1)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
13:11:14,389 ERROR [STDERR] (pool-15-thread-1)  at java.lang.Thread.run(Thread.java:745)
13:12:14,349 ERROR [MAPResourceAdaptor] (pool-21-thread-2) Firing ss7.map.DIALOG_TIMEOUT but MAPDialogWrapper userObject is null
13:12:14,350 ERROR [MAPResourceAdaptor] (pool-21-thread-2) Firing ss7.map.DIALOG_RELEASE but MAPDialogWrapper userObject is null
13:12:14,350 ERROR [MAPResourceAdaptor] (pool-21-thread-2) onDialogRelease : Exception while trying to end activity for MAPDialog=MAPDialog: DialogId=1 MAPDialogState=EXPUNGED MAPApplicationContext=MAPApplicationContext [Name=networkUnstructuredSsContext, Version=version2, Oid=0, 4, 0, 0, 1, 0, 19, 2, ] TCAPDialogState=Expunged
java.lang.NullPointerException: handle is null
        at org.mobicents.slee.resource.SleeEndpointImpl.endActivity(SleeEndpointImpl.java:365)
        at org.mobicents.slee.resource.SleeEndpointImpl.endActivity(SleeEndpointImpl.java:342)
        at org.mobicents.slee.resource.map.MAPResourceAdaptor.onDialogRelease(MAPResourceAdaptor.java:764)
        at org.mobicents.protocols.ss7.map.MAPProviderImpl.deliverDialogRelease(MAPProviderImpl.java:1542)
        at org.mobicents.protocols.ss7.map.MAPProviderImpl.onDialogReleased(MAPProviderImpl.java:977)
        at org.mobicents.protocols.ss7.tcap.TCAPProviderImpl.release(TCAPProviderImpl.java:363)
        at org.mobicents.protocols.ss7.tcap.DialogImpl.setState(DialogImpl.java:1626)
        at org.mobicents.protocols.ss7.tcap.DialogImpl.release(DialogImpl.java:200)
        at org.mobicents.protocols.ss7.map.MAPDialogImpl.release(MAPDialogImpl.java:162)
        at org.mobicents.slee.resource.map.MAPResourceAdaptor.onDialogTimeout(MAPResourceAdaptor.java:791)
        at org.mobicents.protocols.ss7.map.MAPProviderImpl.deliverDialogTimeout(MAPProviderImpl.java:1548)
        at org.mobicents.protocols.ss7.map.MAPProviderImpl.onDialogTimeout(MAPProviderImpl.java:965)
        at org.mobicents.protocols.ss7.tcap.TCAPProviderImpl.timeout(TCAPProviderImpl.java:378)
        at org.mobicents.protocols.ss7.tcap.DialogImpl$IdleTimerTask.run(DialogImpl.java:1699)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        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:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

I tried to solve the issue by deploying ss7 stack  by cloning git clone https://code.google.com/p/jss7/ but I got new error when starting jboss server:

13:27:45,912 WARN  [SleeContainerDeployerImpl] (pool-22-thread-1) SLEE DUs not deployed, due to missing dependencies:
        Missing Dependencies:
                EventTypeID[name=ss7.map.service.suplementary.UNSTRUCTURED_SS_RESPONSE,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_TIMEOUT,vendor=org.mobicents,version=1.0]
                ResourceAdaptorTypeID[name=MAPResourceAdaptorType,vendor=org.mobicents,version=2.0]
                LibraryID[name=library-map,vendor=library-map,version=2.0]
                EventTypeID[name=ss7.map.INVOKE_TIMEOUT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_PROVIDERABORT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_DELIMITER,vendor=org.mobicents,version=1.0]
                MAPRA
                EventTypeID[name=ss7.map.DIALOG_REQUEST,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.ERROR_COMPONENT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_ACCEPT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_REJECT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.REJECT_COMPONENT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.service.suplementary.PROCESS_UNSTRUCTURED_SS_REQUEST,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_CLOSE,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_USERABORT,vendor=org.mobicents,version=1.0]
                EventTypeID[name=ss7.map.DIALOG_NOTICE,vendor=org.mobicents,version=1.0]
13:27:45,913 INFO  [MobicentsCache] (main) Starting JBoss Cache...
13:27:45,977 INFO  [ComponentRegistry] (main) JBoss Cache version: JBossCache 'Cascabel' 3.1.0.GA
13:27:45,977 INFO  [MobicentsCache] (main) Mobicents Cache started, status: STARTED, Mode: LOCAL
13:27:46,001 INFO  [SleeManagementMBean] (main)  ## ## ## ## ## ## ## Mobicents JAIN SLEE 2.7.0.FINAL "RAY" started ## ## ## ## ## ## ## 
13:27:46,491 INFO  [HttpClientResourceAdaptor] (main) HttpClientResourceAdaptor=HttpClientResourceAdaptor entity activated.
13:27:46,822 ERROR [ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "MAPSS7Service" is missing the following dependencies:
    Dependency "MapStack" (should be in state "Configured", but is actually in state "Described")
  Deployment "MapStack" is missing the following dependencies:
    Dependency "TcapStack" (should be in state "Instantiated", but is actually in state "**ERROR**")
  Deployment "vfszip:/usr/local/share/Mobicents/jboss-5.1.0.GA/server/default/deploy/mobicents-slee-ra-map-du-2.8.0-SNAPSHOT.jar/" is missing the following dependencies:

DEPLOYMENTS IN ERROR:
  Deployment "TcapStack" is in error due to the following reason(s): org.jboss.joinpoint.spi.JoinpointException: Constructor not found org.mobicents.protocols.ss7.tcap.TCAPStackImpl[null, null] in [ReflectConstructorInfoImpl@3e1a1656{[ReflectClassInfoImpl@22b087f4{name=java.lang.String}, ReflectClassInfoImpl@73adb5f6{name=org.mobicents.protocols.ss7.sccp.SccpProvider}, int]}, ReflectConstructorInfoImpl@118564cf{[ReflectClassInfoImpl@22b087f4{name=java.lang.String}]}], **ERROR**

Thank you in advance for your help.

vishal gupta

unread,
Mar 12, 2015, 4:07:04 AM3/12/15
to mobicent...@googlegroups.com
Hi Villain,

Are you able to start the server..
As I am getting the same problem.

my ussd gateway is build successfully.

Now I am trying to test it with simulator.

Can you guide me the steps for this.

thanks in advance.
...

vishal gupta

unread,
Apr 7, 2015, 4:29:00 AM4/7/15
to mobicent...@googlegroups.com
Hi Villian,

Are you able to resolve this issue.  Please help me.

As I am also getting below error after starting JBOSS server.


13:57:35,657 ERROR [SelectorThread] (Thread-17) Exception while finishing connection for Association=Assoc1
java.net.ConnectException: Connection refused
at sun.nio.ch.SctpChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SctpChannelImpl.finishConnect(SctpChannelImpl.java:471)
at org.mobicents.protocols.sctp.SelectorThread.finishConnectionSctp(SelectorThread.java:381)
at org.mobicents.protocols.sctp.SelectorThread.finishConnection(SelectorThread.java:366)
at org.mobicents.protocols.sctp.SelectorThread.run(SelectorThread.java:151)
at java.lang.Thread.run(Thread.java:744)


regards
Vishal

Sergey Vetyutnev

unread,
Apr 23, 2015, 1:24:43 PM4/23/15
to mobicent...@googlegroups.com
Hello,

> 13:57:35,657 ERROR [SelectorThread] (Thread-17) Exception while finishing connection for Association=Assoc1
> java.net.ConnectException: Connection refused

This is because: USSD GW is trying to establish SCTP connection to a peer but the peer rejects the connection (peer is not started, wrong host / port, brandmauer issue)
Reply all
Reply to author
Forward
0 new messages