USSD Gateway: applications deployment errors

1,084 views
Skip to first unread message

Dmytro Ozarkiv

unread,
Nov 3, 2014, 5:03:00 AM11/3/14
to mobicent...@googlegroups.com, Alexander Denysyuk
Hello Mobicents Community.

--- Brief summary:

--- Problem:

1. During JBOSS applications deploy ERRORs are occurred:

DEPLOYMENTS IN ERROR:
  Deployment "SS7Service" is in error due to the following reason(s): ** NOT FOUND Depends on 'SS7Service' **
  Deployment "vfsfile:/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-ss7-service/META-INF/jboss-beans.xml" is in error due to the following reason(s): java.lang.IllegalStateException: SCTPManagement is already installed.
  Deployment "Mtp3UserPart" is in error due to the following reason(s): java.lang.NoSuchMethodError: org.mobicents.protocols.ss7.m3ua.impl.M3UARouteManagement.<init>(Lorg/mobicents/protocols/ss7/m3ua/impl/M3UAManagementImpl;)V, **ERROR**

2. Can't connect via ss7-cli to managed node:

mobicents>connect 127.0.0.1 3435
Connection refused

- No one is listening on that port. Most probably of above deployment errors?
- What is the management node suppose to be? Running JBOSS app which act as SS7/Sigtran server? And JBOSS USSDGW should connect to it with above command?

Please, help to solve this issue. If other additional info is needed, please, feel free to ask.

Thank you.

boot.log
server.log

Dmytro Ozarkiv

unread,
Nov 4, 2014, 3:12:25 AM11/4/14
to mobicent...@googlegroups.com, alexander...@life.com.ua, Sergiy Dryga
Hello everyone.

I've read similar problem topic and tried to perform following and partially it works:

I've deleted jboss-5.1.0.GA/server/default/deploy/mobicents-ss7-service/ folder:

Before delete:
DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "M3UAShellExecutor" is missing the following dependencies:
    Dependency "Mtp3UserPart" (should be in state "Configured", but is actually in state "**ERROR**")
  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 "Described")
  Deployment "SccpExecutor" is missing the following dependencies:
    Dependency "SccpStack" (should be in state "Configured", but is actually in state "Instantiated")
  Deployment "SccpStack" is missing the following dependencies:
    Dependency "Mtp3UserPart" (should be in state "Configured", but is actually in state "**ERROR**")
  Deployment "ShellExecutor" is missing the following dependencies:
  Deployment "TcapStack" is missing the following dependencies:
  Deployment "vfszip:/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-slee-ra-map-du-1.0.0.FINAL.jar/" is missing the following dependencies:
    Dependency "SS7Service" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'SS7Service' **")


DEPLOYMENTS IN ERROR:
  Deployment "SS7Service" is in error due to the following reason(s): ** NOT FOUND Depends on 'SS7Service' **
  Deployment "vfsfile:/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-ss7-service/META-INF/jboss-beans.xml" is in error due to the following reason(s): java.lang.IllegalStateException: SCTPManagement is already installed.
  Deployment "Mtp3UserPart" is in error due to the following reason(s): java.lang.NoSuchMethodError: org.mobicents.protocols.ss7.m3ua.impl.M3UARouteManagement.<init>(Lorg/mobicents/protocols/ss7/m3ua/impl/M3UAManagementImpl;)V, **ERROR**

After delete:
DEPLOYMENTS MISSING DEPENDENCIES:

  Deployment "vfszip:/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-slee-ra-map-du-1.0.0.FINAL.jar/" is missing the following dependencies:
    Dependency "SS7Service" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'SS7Service' **")

DEPLOYMENTS IN ERROR:
  Deployment "SS7Service" is in error due to the following reason(s): ** NOT FOUND Depends on 'SS7Service' **

Why SS7Service is in not Real state? Something is missing?

But now SS7 management shell seems to become available:
09:22:14,469 INFO  [ShellServer] (main) Starting SS7 management shell environment
09:22:14,473 INFO  [ShellServer] (main) ShellExecutor listening at /127.0.0.1:3435

I've connected to with 'connect 127.0.0.1 3435' and configured it as described in USSDGW README.txt to simulate USSDGW

$ cd $JBOSS_HOME/bin/ && ./ss7-cli.sh
version=2.1.0.FINAL,name=Mobicents CLI,prefix=mobicents,vendor=TeleStax
mobicents>connect 127.0.0.1 3435
No response from server
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
mobicents(127.0.0.1:3435)>sccp sap create 1 1 1 2
Service access point successfully added
mobicents(127.0.0.1:3435)>sccp dest create 1 1 2 2 0 255 255
Destination definition successfully added
mobicents(127.0.0.1:3435)>sccp rsp create 1 2 0 0
Remote Signaling Pointcode successfully added
mobicents(127.0.0.1:3435)>sccp rss create 1 2 8 0
Remote Subsystem successfully added

And now I've got new problem with missing library libsctp.so.1:
09:50:47,859 INFO  [ShellServer] (pool-32-thread-3) received command : sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011
09:50:47,891 INFO  [ManagementImpl] (pool-32-thread-3) Added Associoation=Assoc1 of type=CLIENT
09:50:54,292 INFO  [ShellServer] (pool-32-thread-6) received command : m3ua as create AS1 IPSP mode SE ipspType CLIENT rc 101 traffic-mode loadshare
09:50:57,949 INFO  [ShellServer] (pool-32-thread-8) received command : m3ua asp create ASP1 Assoc1
09:51:01,717 INFO  [ShellServer] (pool-32-thread-6) received command : m3ua as add AS1 ASP1
09:51:05,236 INFO  [ShellServer] (pool-32-thread-6) received command : m3ua route add AS1 2 -1 -1
09:51:09,793 INFO  [ShellServer] (pool-32-thread-1) received command : m3ua asp start ASP1
09:51:09,796 INFO  [AssociationImpl] (pool-32-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=[]]
09:51:13,128 INFO  [ShellServer] (pool-32-thread-3) received command : sccp sap create 1 1 1 2
09:51:16,737 INFO  [ShellServer] (pool-32-thread-1) received command : sccp dest create 1 1 2 2 0 255 255
09:51:20,233 INFO  [ShellServer] (pool-32-thread-3) received command : sccp rsp create 1 2 0 0
09:51:24,793 INFO  [ShellServer] (pool-32-thread-7) received command : sccp rss create 1 2 8 0
09:51:40,107 ERROR [AssociationImpl] (Thread-21) Error while initiating a connection
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: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)

After installing library error is gone, but now I've got new one with connection refused:
# sudo yum install lksctp-tools
# rpm -ql lksctp-tools|grep libsctp.so.1
/usr/lib64/libsctp.so.1

09:53:40,292 ERROR [SelectorThread] (Thread-21) 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: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)
 
Firewall is off, SELinux too.

# /etc/init.d/iptables status
iptables: Firewall is not running.
# getenforce
Permissive

JBOSS restart didn't help.

***
During compiling jss7, I skipped test suites as mentioned in other topics & install some libraries manually because of mismatched version or unavailability to find them in specified repos (otherwise successes build isn't impossible):

https://oss.sonatype.org/content/groups/public/org/mobicents/protocols/ss7/hardware/libmobicents-dahdi-linux/2.1.0-SNAPSHOT/libmobicents-dahdi-linux-2.1.0-SNAPSHOT.so
http://www.datanucleus.org/downloads/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (copy) on project boot: Unable to find artifact. Could not find artifact org.mobicents.protocols.ss7.hardware:libmobicents-dahdi-linux:so:2.1.0.FINAL in mobicents-public-repository-group (http://oss.sonatype.org/content/groups/public/)
[ERROR] mvn install:install-file -DgroupId=org.mobicents.protocols.ss7.hardware -DartifactId=libmobicents-dahdi-linux -Dversion=2.1.0.FINAL -Dpackaging=so -Dfile=/path/to/file
$ mvn install:install-file -DgroupId=org.mobicents.protocols.ss7.hardware -DartifactId=libmobicents-dahdi-linux -Dversion=2.1.0.FINAL -Dpackaging=so -Dfile=/opt/ussdgw/libs/libmobicents-dahdi-linux-2.1.0-SNAPSHOT.so

[ERROR] Failed to execute goal on project simulator-parent: Could not resolve dependencies for project org.mobicents.protocols.ss7.tools.simulator:simulator-parent:pom:2.1.0.FINAL: Could not find artifact com.sun.jdmk:jmxtools:jar:1.2.1 in mobicents-public-repository-group (http://oss.sonatype.org/content/groups/public/)
$ mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/opt/ussdgw/libs/jmxtools-1.2.1.jar

$ cd /opt/ussdgw/jss7/ && mvn clean install -DskipTests
***

What can be the cause of this problem? I've read similar topic, but haven't found the solution.
server & boot log files are attached.

Please, help to solve this issued.


Thank you.
server.log
boot.log

mehdi boudou

unread,
Nov 4, 2014, 6:32:37 AM11/4/14
to mobicent...@googlegroups.com, alexander...@life.com.ua
Hello follow theses topics try to follow  https://groups.google.com/forum/#!topic/mobicents-public/lE-dGDCem7E and this topic https://groups.google.com/forum/#!topic/mobicents-public/YxnGLFvLYVA which will help you

about sctp you need to install sctp stack https://code.google.com/p/sctp/source/checkout and mvn clean install. Did you do it ?


To install the jss7 stack, i had the same problems : first of all you need to increase the memory of Maven with the Maven_OPTS => export MAVEN_OPTS='-Xms256m -XX:MaxPermSize=1024m -Xmx1024m' in your bahrc file

after you need to install manually jmx tools and libmobicents-dahdi-linux and it will works.

Best Regards,

Mehdi
Message has been deleted

Dmytro Ozarkiv

unread,
Nov 5, 2014, 5:49:24 AM11/5/14
to mobicent...@googlegroups.com, alexander...@life.com.ua
Hello, Mehdi.

---
about sctp you need to install sctp stack https://code.google.com/p/sctp/source/checkout and mvn clean install. Did you do it ?
Is installed libsctp.so.1 not enough?
I've installed additionaly sctp stack, didn't help.

--- after you need to install manually jmx tools and libmobicents-dahdi-linux and it will works.
I've done these steps previously and have already installed jss7 with these "features".

--- Hello follow theses topics try to follow  https://groups.google.com/forum/#!topic/mobicents-public/lE-dGDCem7E and this topic https://groups.google.com/forum/#!topic/mobicents-public/YxnGLFvLYVA which will help you
--- I check out MAP RA ressources from 
https://ss7.jain-slee.googlecode.com/archive/6b871d604db6474f89dfba008a899f8bc92b6cdc.zip

This is the latest ss7 jain slee and I've used it during compile using git clone.

--- You have to download the ussd version 4c3f4262e706 and the jainslee ss7 ab504d6ded5b.  When you download it you must install it With Maven and normaly it will works.
I've also downloaded these ussd & jainslee ss7 version and 'mvn clean install' them. Didn't help.
12:28:51,913 ERROR [SelectorThread] (Thread-21) 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: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)


I'm using such configuration:
Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T23:58:10+03:00)
Maven home: /opt/ussdgw/apache-maven
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /opt/ussdgw/jdk1.7.0_71/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-504.el6.x86_64", arch: "amd64", family: "unix"

Questions:
1. Is using Maven 2 mandatory? (For sctp stack I've read that JDK 7 is required).
2. Can you tell which bunch of versions should I use to compile & run with success:
- mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA?
- jain-slee.ss7- ?
- ussdgateway- ?
- jss7- ?


Best regards, Dmytro.
Message has been deleted

mehdi boudou

unread,
Nov 5, 2014, 1:29:50 PM11/5/14
to mobicent...@googlegroups.com, alexander...@life.com.ua
Questions:
1. Is using Maven 2 mandatory? (For sctp stack I've read that JDK 7 is required).
i'm not sure
2. Can you tell which bunch of versions should I use to compile & run with success:
mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA?
- jain-slee.ss7- ? ab504d6ded5b
- ussdgateway- ? 
4c3f4262e706 
- jss7- ? master branch last version

Can you try to install sctp tools to test if your sctp stack is ok ?


Le lundi 3 novembre 2014 11:03:00 UTC+1, Dmytro Ozarkiv a écrit :

Dmytro Ozarkiv

unread,
Nov 6, 2014, 2:21:54 AM11/6/14
to mobicent...@googlegroups.com
Thanks, Mehdi.
I'll try your recommendations.

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

Dmytro Ozarkiv

unread,
Nov 6, 2014, 7:11:52 AM11/6/14
to mobicent...@googlegroups.com
Hello, Mehdi.

I had already installed lksctp-tools during previous latest versions build.
Now I've tested stack with following:
# rpm -ql lksctp-tools|grep libsctp.so.1$
/usr/lib64/libsctp.so.1
$ 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     3317422207
   sinfo_cumtsn  0
   sinfo_assoc_id  30
DATA(6):  help.
Recieved SCTP_SHUTDOWN_COMP
NOTIFICATION: ASSOC_CHANGE - SHUTDOWN_COMP
No association is present now!!
$ 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> help
Recieved SCTP_COMM_UP
New connection, peer addresses
127.0.0.1:2500
10.1.15.46:2500
10.50.49.138:2500
10.51.49.138:2500
0:2600-127.0.0.1:2500>


Also I've found sctp kernel module loaded into the Linux kernel:
# lsmod|grep ^sctp
sctp                  265398  2
# modinfo sctp
filename:       /lib/modules/2.6.32-504.el6.x86_64/kernel/net/sctp/sctp.ko
license:        GPL
description:    Support for the SCTP protocol (RFC2960)
author:         Linux Kernel SCTP developers <lksctp-d...@lists.sourceforge.net>
alias:          net-pf-10-proto-132
alias:          net-pf-2-proto-132
srcversion:     EBEBEEE861B3A8C6918203F
depends:        ipv6,libcrc32c
vermagic:       2.6.32-504.el6.x86_64 SMP mod_unload modversions
parm:           no_checksums:Disable checksums computing and verification (bool)
# rpm -qf /lib/modules/2.6.32-504.el6.x86_64/kernel/net/sctp/sctp.ko
kernel-2.6.32-504.el6.x86_64


I've build following version of apps that you recommended, but it doesn't help and problem is the same as with latest versions from git master:

*******************
*** 2014-11-06: ***
*******************
$ grep ^export ~mobicents/.bash_profile
export PATH
export M2_HOME=/opt/ussdgw/apache-maven
export M2=$M2_HOME/bin
export JAVA_HOME=/opt/ussdgw/java
export JBOSS_HOME=/opt/ussdgw/mobicents-jainslee-jboss/jboss-5.1.0.GA
export PATH=$PATH:$M2_HOME:$M2:$JAVA_HOME:$JBOSS_HOME

$ rm -rf ~mobicents/.m2/

$ cd /opt/ussdgw/
$ for i in apache-maven-3.2.3-bin.tar.gz jdk-7u71-linux-x64.tar.gz tomcat-native-1.1.32-src.tar.gz ss7.jain-slee-ab504d6ded5b.tar.gz ussdgateway-4c3f4262e706.tar.gz jss7-f6beefabd3ec.tar.gz sctp-c2a29e6d7ae7.tar.gz; do tar xvf $i; done
$ unzip mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA.zip -d mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA
$ ln -s jdk1.7.0_71 java; ln -s apache-maven-3.2.3 apache-maven; ln -s mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA mobicents-jainslee-jboss
$ cp ext/settings.xml apache-maven/conf/settings.xml
$ chown -R mobicents:telestax ussdgw

$ cd ss7.jain-slee-ab504d6ded5b && mvn clean install
[INFO] Installing /opt/ussdgw/ss7.jain-slee-ab504d6ded5b/pom.xml to /home/mobicents/.m2/repository/org/mobicents/servers/jainslee/ss7/mobicents-slee-ss7/2.8.0-SNAPSHOT/mobicents-slee-ss7-2.8.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:20 min
[INFO] Finished at: 2014-11-06T10:23:13+02:00
[INFO] Final Memory: 13M/121M
[INFO] ------------------------------------------------------------------------

$ sed -i '9i<relativePath>../../pom.xml</relativePath>' ../ussdgateway-4c3f4262e706/core/oam/cli/pom.xml
$ cd ussdgateway-4c3f4262e706 && mvn clean install
[INFO] Packaging webapp
[INFO] Assembling webapp [example-http] in [/opt/ussdgw/ussdgateway-4c3f4262e706/example/http/target/ussdhttpdemo]
[INFO] Processing war project
[INFO] Copying webapp resources [/opt/ussdgw/ussdgateway-4c3f4262e706/example/http/src/main/webapp]
[INFO] Webapp assembled in [53 msecs]
[INFO] Building war: /opt/ussdgw/ussdgateway-4c3f4262e706/example/http/target/ussdhttpdemo.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ example-http ---
[INFO] Installing /opt/ussdgw/ussdgateway-4c3f4262e706/example/http/target/ussdhttpdemo.war to /home/mobicents/.m2/repository/org/mobicents/ussd/example-http/1.0.0-SNAPSHOT/example-http-1.0.0-SNAPSHOT.war
[INFO] Installing /opt/ussdgw/ussdgateway-4c3f4262e706/example/http/pom.xml to /home/mobicents/.m2/repository/org/mobicents/ussd/example-http/1.0.0-SNAPSHOT/example-http-1.0.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-antrun-plugin:1.3:run (deploy) @ example-http ---
[INFO] Executing tasks
     [echo] /opt/ussdgw/mobicents-jainslee-jboss/jboss-5.1.0.GAserver/default/deploy
     [copy] Copying 1 file to /opt/ussdgw/mobicents-jainslee-jboss/jboss-5.1.0.GA/server/default/deploy
[INFO] Executed tasks
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] USSD Gateway Parent ................................ SUCCESS [  0.495 s]
[INFO] Core ............................................... SUCCESS [  0.277 s]
[INFO] Core : Domain ...................................... SUCCESS [05:29 min]
[INFO] Core : XML ......................................... SUCCESS [01:42 min]
[INFO] Core : Operations and Management : CLI ............. SUCCESS [ 34.602 s]
[INFO] Core : SLEE ........................................ SUCCESS [  0.013 s]
[INFO] Core : SLEE : Library .............................. SUCCESS [02:57 min]
[INFO] Core : SLEE : Sbbs ................................. SUCCESS [ 45.168 s]
[INFO] Core : SLEE : Service .............................. SUCCESS [  4.171 s]
[INFO] Core : Bootstrap ................................... SUCCESS [02:10 min]
[INFO] Example ............................................ SUCCESS [  0.015 s]
[INFO] Example : HTTP ..................................... SUCCESS [ 31.913 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14:18 min
[INFO] Finished at: 2014-11-06T10:44:21+02:00
[INFO] Final Memory: 79M/568M
[INFO] ------------------------------------------------------------------------


$ cd /opt/ussdgw/mobicents-jainslee-jboss/
$ cp resources/{http-client/http-client-ra-DU-2.5.0.FINAL.jar,jdbc/mobicents-slee-ra-jdbc-DU-1.0.0.FINAL.jar} jboss-5.1.0.GA/server/default/deploy


$ mvn install:install-file -DgroupId=org.mobicents.protocols.ss7.hardware -DartifactId=libmobicents-dahdi-linux -Dversion=2.1.0.FINAL -Dpackaging=so -Dfile=/opt/ussdgw/ext/libmobicents-dahdi-linux-2.1.0-SNAPSHOT.so
$ mvn install:install-file -DgroupId=com.sun.jdmk -DartifactId=jmxtools -Dversion=1.2.1 -Dpackaging=jar -Dfile=/opt/ussdgw/ext/jmxtools-1.2.1.jar
$ cd /opt/ussdgw/jss7-f6beefabd3ec/ && mvn clean install -DskipTests -Pjboss
[INFO] Installing /opt/ussdgw/jss7-f6beefabd3ec/tools/trace-parser/parser/target/ss7-trace-parser-2.1.0.FINAL.jar to /home/mobicents/.m2/repository/org/mobicents/protocols/ss7/tools/traceparser/ss7-trace-parser/2.1.0.FINAL/ss7-trace-parser-2.1.0.FINAL.jar
[INFO] Installing /opt/ussdgw/jss7-f6beefabd3ec/tools/trace-parser/parser/pom.xml to /home/mobicents/.m2/repository/org/mobicents/protocols/ss7/tools/traceparser/ss7-trace-parser/2.1.0.FINAL/ss7-trace-parser-2.1.0.FINAL.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mobicents SS7 :: ss7-parent ........................ SUCCESS [  1.075 s]
[INFO] Mobicents SS7 :: Scheduler :: scheduler ............ SUCCESS [  3.224 s]
[INFO] Mobicents SS7 :: Congestion :: congestion .......... SUCCESS [  1.113 s]
[INFO] Mobicents SS7 :: Statistics :: Parent :: statistics-parent SUCCESS [  0.027 s]
[INFO] Mobicents SS7 :: Statistics :: Api :: statistics-api SUCCESS [  2.348 s]
[INFO] Mobicents SS7 :: Statistics :: Impl :: statistics-impl SUCCESS [  1.516 s]
[INFO] Mobicents SS7 :: management ........................ SUCCESS [  0.062 s]
[INFO] Mobicents SS7 :: Management :: shell-transport ..... SUCCESS [  2.133 s]
[INFO] Mobicents SS7 :: Management :: shell-client ........ SUCCESS [  2.716 s]
[INFO] Mobicents SS7 :: Management :: shell-server-api .... SUCCESS [  0.888 s]
[INFO] Mobicents SS7 :: Management :: shell-server-impl ... SUCCESS [  0.953 s]
[INFO] Mobicents SS7 :: MTP :: Parent :: mtp-parent ....... SUCCESS [  0.022 s]
[INFO] Mobicents SS7 :: MTP :: Impl :: mtp-api ............ SUCCESS [  1.308 s]
[INFO] Mobicents SS7 :: MTP :: Impl :: mtp ................ SUCCESS [  1.817 s]
[INFO] Mobicents SS7 :: M3UA :: Parent :: m3ua ............ SUCCESS [  0.010 s]
[INFO] Mobicents SS7 :: M3UA :: Api :: m3ua-api ........... SUCCESS [  1.162 s]
[INFO] Mobicents SS7 :: M3UA :: Impl :: m3ua-impl ......... SUCCESS [  8.072 s]
[INFO] Mobicents SS7 :: M3UA :: CLI :: m3ua-cli-sctp ...... SUCCESS [  0.906 s]
[INFO] Mobicents SS7 :: M3UA :: CLI :: m3ua-cli-m3ua ...... SUCCESS [  0.799 s]
[INFO] Mobicents SS7 :: Hardware :: Parent :: mobicents-hardware SUCCESS [  0.022 s]
[INFO] Mobicents SS7 :: Hardware :: linkset ............... SUCCESS [  1.107 s]
[INFO] Mobicents SS7 :: Hardware :: linkset-cli ........... SUCCESS [  1.119 s]
[INFO] Mobicents SS7 :: Hardware :: mobicents-dahdi-parent  SUCCESS [  0.021 s]
[INFO] Mobicents SS7 :: Hardware :: mobicents-dahdi-native  SUCCESS [  0.030 s]
[INFO] Mobicents SS7 :: Hardware :: mobicents-dahdi ....... SUCCESS [  1.195 s]
[INFO] Mobicents SS7 :: Hardware :: mobicents-dialogic-parent SUCCESS [  0.020 s]
[INFO] Mobicents SS7 :: Hardware :: mobicents-dialogic-native SUCCESS [  0.023 s]
[INFO] Mobicents SS7 :: Hardware :: mobicents-dialogic .... SUCCESS [  1.193 s]
[INFO] Mobicents SS7 :: ISUP :: Parent :: isup-parent ..... SUCCESS [  0.020 s]
[INFO] Mobicents SS7 :: ISUP :: Api :: isup-api ........... SUCCESS [  2.038 s]
[INFO] Mobicents SS7 :: ISUP :: Impl :: isup-impl ......... SUCCESS [  7.653 s]
[INFO] Mobicents SS7 :: SCCP :: Parent :: sccp-parent ..... SUCCESS [  0.009 s]
[INFO] Mobicents SS7 :: SCCP :: Api :: sccp-api ........... SUCCESS [  1.447 s]
[INFO] Mobicents SS7 :: SCCP :: Impl :: sccp-impl ......... SUCCESS [  8.521 s]
[INFO] Mobicents SS7 :: SCCP :: CLI :: sccp-cli ........... SUCCESS [  1.012 s]
[INFO] Mobicents SS7 :: TCAP :: Parent :: tcap-parent ..... SUCCESS [  0.021 s]
[INFO] Mobicents SS7 :: TCAP :: Api :: tcap-api ........... SUCCESS [  1.377 s]
[INFO] Mobicents SS7 :: TCAP :: Impl :: tcap-impl ......... SUCCESS [  4.197 s]
[INFO] Mobicents SS7 :: TCAP-ANSI :: Parent :: tcap-ansi-parent SUCCESS [  0.011 s]
[INFO] Mobicents SS7 :: TCAP ANSI :: Api :: tcap-ansi-api . SUCCESS [  1.186 s]
[INFO] Mobicents SS7 :: TCAP ANSI :: Impl :: tcap-ansi-impl SUCCESS [  4.513 s]
[INFO] Mobicents SS7 :: MAP :: Parent :: map-parent ....... SUCCESS [  0.007 s]
[INFO] Mobicents SS7 :: MAP :: Api :: map-api ............. SUCCESS [  4.359 s]
[INFO] Mobicents SS7 :: MAP :: Impl :: map-impl ........... SUCCESS [ 12.815 s]
[INFO] Mobicents SS7 :: MAP :: LOAD :: map-load ........... SUCCESS [  1.110 s]
[INFO] Mobicents SS7 :: INAP :: Parent :: inap-parent ..... SUCCESS [  0.008 s]
[INFO] Mobicents SS7 :: INAP :: Api :: inap-api ........... SUCCESS [  1.772 s]
[INFO] Mobicents SS7 :: INAP :: Impl :: inap-impl ......... SUCCESS [  3.789 s]
[INFO] Mobicents SS7 :: CAP :: Parent :: cap-parent ....... SUCCESS [  0.011 s]
[INFO] Mobicents SS7 :: CAP :: Api :: cap-api ............. SUCCESS [  2.444 s]
[INFO] Mobicents SS7 :: CAP :: Impl :: cap-impl ........... SUCCESS [ 11.273 s]
[INFO] Mobicents SS7 :: Service ........................... SUCCESS [  9.304 s]
[INFO] Mobicents SS7 :: SGW :: Parent :: mobicents-sgw .... SUCCESS [  0.013 s]
[INFO] Mobicents SS7 :: SGW :: Gateway :: gateway ......... SUCCESS [  0.733 s]
[INFO] Mobicents SS7 :: SGW :: Boot :: boot ............... SUCCESS [  8.385 s]
[INFO] Mobicents SS7 :: Tools :: Parent ................... SUCCESS [  0.007 s]
[INFO] Mobicents SS7 Simulator :: Parent .................. SUCCESS [  0.022 s]
[INFO] Mobicents SS7 Simulator :: Simulator core .......... SUCCESS [  3.576 s]
[INFO] Mobicents SS7 Simulator :: Simulator GUI ........... SUCCESS [  2.191 s]
[INFO] Mobicents SS7 Simulator :: Simulator Bootstrap ..... SUCCESS [  8.207 s]
[INFO] Mobicents Trase Parser :: ss7-trace-parser-parent .. SUCCESS [  0.017 s]
[INFO] Mobicents Trase Parser :: ss7-trace-parser ......... SUCCESS [  5.066 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:24 min
[INFO] Finished at: 2014-11-06T11:44:32+02:00
[INFO] Final Memory: 89M/1873M
[INFO] ------------------------------------------------------------------------

$ cd /opt/ussdgw/sctp-c2a29e6d7ae7 && mvn clean install
[INFO] Installing /opt/ussdgw/sctp-c2a29e6d7ae7/sctp-impl/target/sctp-impl-1.6.0-SNAPSHOT.jar to /home/mobicents/.m2/repository/org/mobicents/protocols/sctp/sctp-impl/1.6.0-SNAPSHOT/sctp-impl-1.6.0-SNAPSHOT.jar
[INFO] Installing /opt/ussdgw/sctp-c2a29e6d7ae7/sctp-impl/pom.xml to /home/mobicents/.m2/repository/org/mobicents/protocols/sctp/sctp-impl/1.6.0-SNAPSHOT/sctp-impl-1.6.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Mobicents :: SCTP :: Parent :: sctp-parent ......... SUCCESS [  0.570 s]
[INFO] Mobicents :: SCTP :: API :: sctp-api ............... SUCCESS [ 28.595 s]
[INFO] Mobicents :: SCTP :: Impl :: sctp-impl ............. SUCCESS [02:45 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:15 min
[INFO] Finished at: 2014-11-06T11:49:09+02:00
[INFO] Final Memory: 31M/341M
[INFO] ------------------------------------------------------------------------

# yum install lksctp-tools
# rpm -ql lksctp-tools|grep libsctp.so.1$
/usr/lib64/libsctp.so.1
$ 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     3317422207
   sinfo_cumtsn  0
   sinfo_assoc_id  30
DATA(6):  help.
Recieved SCTP_SHUTDOWN_COMP
NOTIFICATION: ASSOC_CHANGE - SHUTDOWN_COMP
No association is present now!!
$ 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> help
Recieved SCTP_COMM_UP
New connection, peer addresses
127.0.0.1:2500
10.1.15.46:2500
10.50.49.138:2500
10.51.49.138:2500
0:2600-127.0.0.1:2500>

# lsmod|grep ^sctp
sctp                  265398  2
# modinfo sctp
filename:       /lib/modules/2.6.32-504.el6.x86_64/kernel/net/sctp/sctp.ko
license:        GPL
description:    Support for the SCTP protocol (RFC2960)
author:         Linux Kernel SCTP developers <lksctp-d...@lists.sourceforge.net>
alias:          net-pf-10-proto-132
alias:          net-pf-2-proto-132
srcversion:     EBEBEEE861B3A8C6918203F
depends:        ipv6,libcrc32c
vermagic:       2.6.32-504.el6.x86_64 SMP mod_unload modversions
parm:           no_checksums:Disable checksums computing and verification (bool)
# rpm -qf /lib/modules/2.6.32-504.el6.x86_64/kernel/net/sctp/sctp.ko
kernel-2.6.32-504.el6.x86_64

# yum install apr-devel openssl-devel firefox
$ cd /opt/ussdgw/tomcat-native-1.1.32-src/jni/native/
$ ./configure --with-apr=/usr/bin/apr-1-config --with-java-home=/opt/ussdgw/java/ --with-ssl=yes
$ make && make install

$ egrep "8088|8089" $JBOSS_HOME/server/default/deploy/jbossweb.sar/server.xml
      <Connector protocol="HTTP/1.1" port="8088" address="${jboss.bind.address}"
      <Connector protocol="AJP/1.3" port="8089" address="${jboss.bind.address}"
$ rm -rf $JBOSS_HOME/server/default/deploy/mobicents-ss7-service/
$ cd $JBOSS_HOME/bin/ && ./run.sh -b 127.0.0.1

$ cd $JBOSS_HOME/bin/ && ./ss7-cli.sh
mobicents>connect 127.0.0.1 3435
No response from server
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
mobicents(127.0.0.1:3435)>sccp sap create 1 1 1 2
Service access point successfully added
mobicents(127.0.0.1:3435)>sccp dest create 1 1 2 2 0 255 255
Destination definition successfully added


12:36:22,747 ERROR [SelectorThread] (Thread-21) 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: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)

Questions:
1. Can I use https://code.google.com/p/ussdgateway/source/browse/README.txt to simulate USSDGW? Is this manual correct or not???
2. Have I configured SS7 correctly to simulate USSDGW or not? Using this https://groups.google.com/forum/#!msg/mobicents-public/fjcMJOXSp5Q/AT1JdWpLgVYJ didn't answered my problem, I've only figured out that I have to used different configuration? SERVER vs CLIENT? Is that correct?
3. Did you simulate your USSDGW with ss7-cli? If yes, please, gimme instructions of your experience. I haven't found this in your previous links.

Thank you for help!

mehdi boudou

unread,
Nov 6, 2014, 9:46:52 AM11/6/14
to mobicent...@googlegroups.com, alexander...@life.com.ua
Hello Dmytro,

the good news is that it's just a bad configuration :)

I had also this trouble with the readme example and when I followed  this topic the anwser of sergey helped me a lot https://groups.google.com/forum/#!topic/mobicents-public/fjcMJOXSp5Q

He explained clearly the configuration of both sides combine with the documentation http://yassine.ab.free.fr/telco-jain-v1/Documents/Mobicents_SS7Stack_User_Guide.pdf, =>It will works.

Now i think that you mistake is that you create the Association on USSD Gateway as the client side instead of Server

replaced 

sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011
 by 
sctp association create ass1 SERVER serv1 127.0.0.1 8011

The gateway wants to connect to a server which is not started thatswhy when you started your association you have 
java.net.ConnectException: Connection refused.

Try to follow the topic ( i used it with a routing on DPC and not GT you can forgot this rules 
sccp address create 1 82 1 8 0 1 4 000 sccp address create 2 82 2 8 0 1 4 000 sccp rule create 1 K 82 0 8 0 1 4 * solitary 1 origination-type localOriginated sccp rule create 2 K 82 0 8 0 1 4 * solitary 2 origination-type remoteOriginated if you do like me  


Topic of Sergey 


Hello!

For configuring SS7 simulator and USSD GW you can:

At Simulator side as for a first configuring step you can select for all layers and a testing task (M3UA, SCCP, TCAP+MAP, USSD_TEST_CLIENT) a button "Load default values for side A" and:
- for m3ua - select which protocol do you prefer SCTP / TCP
- for SCCP - select "Route on Global title mode" and put into "CallingPartyAddress digits" some address you wish (for example "1111111222")
- for MAP - set for both origination and destination reference address digits (like "1111122" and "1111133")
- for ussd test client - msisdn value string (like "79992222222")

At USSD GW part we can configure corresponded SS7 settings via CLI (just select TCP / SCTP):
sctp server create serv1 127.0.0.1 8012 TCP
sctp server start serv1
sctp association create ass1 SERVER serv1 127.0.0.1 8011 TCP

m3ua as create as1 IPSP mode SE ipspType server rc 101 traffic-mode loadsharing network-appearance 102
m3ua asp create asp1 ass1
m3ua as add as1 asp1
m3ua asp start asp1
m3ua route add as1 1 2 3

sccp sap create 1 1 2 2
sccp dest create 1 1 1 1 0 255 255
sccp address create 1 82 1 8 0 1 4 000
sccp address create 2 82 2 8 0 1 4 000
sccp rule create 1 K 82 0 8 0 1 4 * solitary 1 origination-type localOriginated
sccp rule create 2 K 82 0 8 0 1 4 * solitary 2 origination-type remoteOriginated
sccp rsp create 1 1 0 0
sccp rss create 1 1 8 0

At this step SS7 part is configured and you need to congigure general USSD settings and USSD routing rules


Best Regards,

Mehdi


Le lundi 3 novembre 2014 11:03:00 UTC+1, Dmytro Ozarkiv a écrit :

Dmytro Ozarkiv

unread,
Nov 7, 2014, 10:01:57 AM11/7/14
to mobicent...@googlegroups.com
Thanks, Mehdi!

I'll try and answer later.

--

Dmytro Ozarkiv

unread,
Nov 21, 2014, 5:44:10 AM11/21/14
to mobicent...@googlegroups.com
Hello, Mehdi!

I've followed your advice:

11:26:15,156 WARN  [ManagementImpl] (main) Failed to load the SCTP configuration file.
/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/SCTPManagement_sctp.xml (No such file or directory)
11:26:15,677 WARN  [UssdPropertiesManagement] (main) Failed to load the USSD configuration file.
/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/UssdManagement_ussdproperties.xml (No such file or directory)
11:26:15,678 INFO  [ShortCodeRoutingRuleManagement] (main) Loading short code routig rule configuration from /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/UssdManagement_scroutingrule.xml
11:26:15,678 WARN  [ShortCodeRoutingRuleManagement] (main) Failed to load the short code routig rule configuration file.
/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/UssdManagement_scroutingrule.xml (No such file or directory)


cd $JBOSS_HOME/bin/ && ./ss7-cli.sh
version=2.1.0.FINAL,name=Mobicents CLI,prefix=mobicents,vendor=TeleStax
mobicents>connect 127.0.0.1 3435
No response from server
mobicents(127.0.0.1:3435)>sctp server create serv1 127.0.0.1 8012
Successfully added Server=serv1
mobicents(127.0.0.1:3435)>sctp server start serv1
Successfully started Server=serv1
mobicents(127.0.0.1:3435)>sctp association create ass1 SERVER serv1 127.0.0.1 8011
Successfully added server Association=ass1
mobicents(127.0.0.1:3435)>m3ua as create as1 IPSP mode SE ipspType server rc 101 traffic-mode loadsharing network-appearance 102
Successfully created AS name=as1
mobicents(127.0.0.1:3435)>m3ua asp create asp1 ass1
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 asp start asp1
Successfully started ASP name=asp1
mobicents(127.0.0.1:3435)>m3ua route add as1 1 2 3
AS=as1 successfully added as route for DPC=1
mobicents(127.0.0.1:3435)>sccp sap create 1 1 2 2

Service access point successfully added
mobicents(127.0.0.1:3435)>sccp dest create 1 1 1 1 0 255 255
Destination definition successfully added
mobicents(127.0.0.1:3435)>sccp rsp create 1 1 0 0

Remote Signaling Pointcode successfully added
mobicents(127.0.0.1:3435)>sccp rss create 1 1 8 0
Remote Subsystem successfully added

I've restarted JBOSS server to get sure that new configuration files were created:

11:30:47,426 INFO  [MobicentsCache] (main) Starting JBoss Cache...
11:30:47,517 INFO  [ComponentRegistry] (main) JBoss Cache version: JBossCache 'Cascabel' 3.1.0.GA
11:30:47,518 INFO  [MobicentsCache] (main) Mobicents Cache started, status: STARTED, Mode: LOCAL
11:30:47,575 INFO  [SleeManagementMBean] (main)  ## ## ## ## ## ## ## Mobicents JAIN SLEE 2.7.0.FINAL "RAY" started ## ## ## ## ## ## ##
11:30:47,792 INFO  [ManagementImpl] (main) SCTP configuration file path /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/SCTPManagement_sctp.xml
11:30:47,881 INFO  [ServerImpl] (main) SctpServerChannel bound to=[/127.0.0.1:8012]
11:30:47,882 INFO  [ServerImpl] (main) Started Server=serv1
11:30:47,897 INFO  [ManagementImpl] (main) Started SCTP Management=SCTPManagement WorkerThreads=0 SingleThread=true
11:30:47,897 INFO  [SelectorThread] (Thread-17) SelectorThread for Management=SCTPManagement started.
11:30:48,126 INFO  [M3UAManagementImpl] (main) M3UA configuration file path /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/Mtp3UserPart_m3ua.xml
11:30:48,219 INFO  [AssociationImpl] (main) Started Association=Association [name=ass1, associationType=SERVER, ipChannelType=SCTP, hostAddress=, hostPort=0, peerAddress=127.0.0.1, peerPort=8011, serverName=serv1, extraHostAddress=[]]
11:30:48,222 INFO  [M3UAManagementImpl] (main) Started M3UAManagement
11:30:48,237 INFO  [Scheduler] (main) Starting
11:30:48,237 INFO  [Scheduler] (main) Started
11:30:48,260 INFO  [SccpStackImpl-SccpStack] (main) Starting ...
11:30:48,283 INFO  [RouterImpl] (main) SCCP Router configuration file path /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/SccpStack_sccprouter.xml
11:30:48,288 INFO  [RouterImpl] (main) Started SCCP Router
11:30:48,294 INFO  [SccpResourceImpl] (main) SCCP Resource configuration file path /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/SccpStack_sccpresource.xml
11:30:48,297 INFO  [SccpResourceImpl] (main) Started Sccp Resource
11:30:48,297 INFO  [SccpStackImpl-SccpStack] (main) Starting routing engine...
11:30:48,298 INFO  [SccpStackImpl-SccpStack] (main) Starting management ...
11:30:48,298 INFO  [SccpStackImpl-SccpStack] (main) Starting MSU handler...
11:30:48,323 INFO  [TCAPStackImpl] (main) Starting ...org.mobicents.protocols.ss7.tcap.TCAPProviderImpl@124c1bbd
11:30:48,323 INFO  [TCAPProviderImpl] (main) Starting TCAP Provider
11:30:48,323 INFO  [TCAPProviderImpl] (main) Registered SCCP listener with address 8
11:30:48,520 INFO  [SS7Service] (main)  [[[[[[[[[ Mobicents USSD 1.0.0-SNAPSHOT service started ]]]]]]]]]
11:30:48,527 INFO  [UssdPropertiesManagement] (main) Loading USSD Properties from /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/UssdManagement_ussdproperties.xml
11:30:48,529 INFO  [ShortCodeRoutingRuleManagement] (main) Loading short code routig rule configuration from /opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/UssdManagement_scroutingrule.xml
11:30:48,529 WARN  [ShortCodeRoutingRuleManagement] (main) Failed to load the short code routig rule configuration file.
/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/data/UssdManagement_scroutingrule.xml (No such file or directory)

11:30:48,532 INFO  [UssdManagement] (main) Started UssdManagement
11:30:48,539 INFO  [ShellServer] (main) Starting SS7 management shell environment
11:30:48,542 INFO  [ShellServer] (main) ShellExecutor listening at /127.0.0.1:3435
11:30:48,646 INFO  [Http11Protocol] (main) Starting Coyote HTTP/1.1 on http-127.0.0.1-8088
11:30:48,685 INFO  [AjpProtocol] (main) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8089
11:30:48,702 INFO  [ServerImpl] (main) JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 41s:276m

Seems that new configurations file were created after configuration and successfully applied.
$ ls -ltr $JBOSS_HOME/server/default/data/
total 36
drwxr-xr-x 2 mobicents telestax 4096 Nov 21 11:25 xmbean-attrs
drwxr-xr-x 4 mobicents telestax 4096 Nov 21 11:26 tx-object-store
-rw-r--r-- 1 mobicents telestax   70 Nov 21 11:29 UssdManagement_ussdproperties.xml
-rw-r--r-- 1 mobicents telestax  289 Nov 21 11:29 SccpStack_sccpresource.xml
-rw-r--r-- 1 mobicents telestax  320 Nov 21 11:29 SccpStack_sccprouter.xml
-rw-r--r-- 1 mobicents telestax   21 Nov 21 11:30 jnp-service.url
drwxr-xr-x 2 mobicents telestax 4096 Nov 21 11:30 hypersonic
-rw-r--r-- 1 mobicents telestax  537 Nov 21 11:30 Mtp3UserPart_m3ua.xml
-rw-r--r-- 1 mobicents telestax  485 Nov 21 11:30 SCTPManagement_sctp.xml

*** But no UssdManagement_scroutingrule.xml created. Is this the routing application table? (code to app).
* I've read in Mobicents_USSDGateway_User_Guide.pdf section 2.4. Rule engine configuration
USSD  Gateway  uses  Drools  as  rule  engine  to  perform  decisions
Guvnor is deployed along with USSD Gateway Application. To access it simply go to http://
<your  server>/drools-guvnor/ . This will bring initial info screen or login screen - depends
on configuration.
http://localhost:8088/drools-guvnor
HTTP Status 404 - /drools-guvnor
type Status report
message /drools-guvnor
description The requested resource (/drools-guvnor) is not available.
JBoss Web/2.1.3.GA
* but there is no drools-guvnor deployed at $JBOSS_HOME/server/default/deploy/. Why? Do I have to deploy it mannualy?

Also JBOSS can't deploy mobicents-ussd-gateway/services-DU-1.0.0-SNAPSHOT.jar due to missing dependencies:
12:19:03,230 WARN  [SleeContainerDeployerImpl] (pool-17-thread-1) SLEE DUs not deployed, due to missing dependencies:
file:/opt/ussdgw/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-ussd-gateway/services-DU-1.0.0-SNAPSHOT.jar/
        Missing Dependencies:

                EventTypeID[name=net.java.client.slee.resource.http.event.ResponseEvent,vendor=net.java.client.slee,version=4.0]
                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=JDBCResourceAdaptorType,vendor=org.mobicents,version=1.0]
                EventTypeID[name=JdbcTaskExecutionThrowableEvent,vendor=org.mobicents,version=1.0]
                HttpClientResourceAdaptor
                ResourceAdaptorTypeID[name=MAPResourceAdaptorType,vendor=org.mobicents,version=2.0]
                LibraryID[name=library-map,vendor=library-map,version=2.0]
                ResourceAdaptorTypeID[name=HttpClientResourceAdaptorType,vendor=org.mobicents,version=4.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]
                JDBCRA
                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=SimpleJdbcTaskResultEvent,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]

deploy/mobicents-ss7-service/ folder is removed:
[mobicents@freeussdgw1 ussdgw]$ ls -ltr $JBOSS_HOME/server/default/deploy/mobicents-ss7-service/
ls: cannot access /opt/ussdgw/mobicents-jainslee-jboss/jboss-5.1.0.GA/server/default/deploy/mobicents-ss7-service/: No such file or directory

So, now I'm moving to next:
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

0. SS7 has been set up (I hope).
1. USSD Demo is deployed:
http://localhost:8088/ussddemo/test
2. ss7-simulator was compiled during jss7:
[INFO] Mobicents SS7 Simulator :: Parent .................. SUCCESS [  0.022 s]
[INFO] Mobicents SS7 Simulator :: Simulator core .......... SUCCESS [  3.576 s]
[INFO] Mobicents SS7 Simulator :: Simulator GUI ........... SUCCESS [  2.191 s]
[INFO] Mobicents SS7 Simulator :: Simulator Bootstrap ..... SUCCESS [  8.207 s]
But I can't find start script or something to start it in $JBOSS/bin. Where is it?

***

Now, If I've done previous steps correct, how can I finish USSDGW simulation?

1. How can I start ss7-simulator?

2. How can I configure routing if there no
Drools Guvnor rule engine? Do I have to install it manually (however it has to be deployed alongside with USSDGW)?

3. *** I've read in
Mobicents_USSDGateway_User_Guide (2012) that SMPP is in roadmap:
JBoss Drools is used to derive the protocol between Gateway and USSD Application and also the
information of the server (for example IP, port etc) where these applications are deployed.
SMPP protocol is in roadmap and will be implemented in next release
*** But at http://www.mobicents.org/incubator/ussd/intro.html (2008):
The Mobicents USSD Gateway makes use of SIP, HTTP and SMPP protocol between gateway and Value Added Service Modules or third party applications
Maybe you have some info about is Mobicents USSD Gateway support SMPP ?

Thank you for your help!

SM

unread,
Nov 22, 2014, 5:56:12 PM11/22/14
to mobicent...@googlegroups.com
Hello Dmytro Ozarkiv


no UssdManagement_scroutingrule.xml created
in shell client:   ussd scrule create *519# http://127.0.0.1:8080/ussddemo/test



1. How can I start ss7-simulator?
in /jss7-858fd96274d6/tools/simulator/bootstrap/target/simulator-ss7/bin       tape:   ./run.sh gui

hope that will help you
thanks

Dmytro Ozarkiv

unread,
May 13, 2015, 6:56:23 AM5/13/15
to mobicent...@googlegroups.com
Hello Mehdi!

I can't figure out architecture.

Can u answer some questions for me?

===

Now i think that you mistake is that you create the Association on USSD Gateway as the client side instead of Server

sctp association create Assoc1 CLIENT 127.0.0.1 8012 127.0.0.1 8011
 by 
sctp association create ass1 SERVER serv1 127.0.0.1 8011

At USSD GW part we can configure corresponded SS7 settings via CLI (just select TCP / SCTP):
sctp server create serv1 127.0.0.1 8012 TCP
sctp server start serv1
sctp association create ass1 SERVER serv1 127.0.0.1 8011 TCP


In real world USSDGW should be client connected to real STP, yep? And the ss7-cli is just tool to configure USSDGW SS7, yes?
Can you give an example of real configuration? How I can create sctp client as USSDGW and connect to real STP?

Thanks a lot.

--

Dmytro Ozarkiv

unread,
May 13, 2015, 7:09:04 AM5/13/15
to mobicent...@googlegroups.com
Suppose I've got some IP1 (LAN1) to interact USSDGW with some HTTP servers and IP2, IP3 (LAN2) to interact with Sigtran M3UA. And IP4:port4, IP5:port5 (LAN2/other) of STP.
How possible configuration should look like?
Reply all
Reply to author
Forward
0 new messages