Skip to content
Tran Huu Nhan edited this page Feb 9, 2016 · 1 revision

This is old and outdate - Just use it for reference

= Introduction =

I will explain here how to download and deploy Mobicents SMSC GW.

NOTE : Mobicents SMSC is under AGPL License.

= Details =

  1. We need to download and compile last JAIN SLEE (how to do it - see at site of the project): https://github.com/Mobicents/jain-slee At the end of this procedure we will have JBOSS server with deployed there JAIN-SLEE.

  2. Set a environment variable JBOSS_HOME to the path where you have installed JBOSS server. For example if we have installed JBOSS to the /opt/smsc/jboss folder use commands:

  • windows:
  • set JBOSS_HOME=C:\opt\smsc\jboss
  • linux:
  • export JBOSS_HOME=/opt/smsc/jboss
  1. download and compile sctp library https://github.com/Mobicents/sctp version "release-1.4.0.FINAL"
  1. download and compile asn library https://github.com/Mobicents/jasn version "release-2.0.2.FINAL"
  1. download, compile jss7 library https://github.com/Mobicents/jss7 version "release-2.1.0.FINAL" and deploy CLI components to jboss server. We need to clone it from sources, checkout "release-2.1.0.FINAL" tag and compile.

}}}

  • mvn clean install -P jboss -Dmaven.test.skip=true
  • cd ..
  1. remove deployed jss7 stack from jboss (we do not need it):
  • delete the folder: jboss/default/deploy/mobicents-ss7-service
  1. download and compile SIP RA https://github.com/Mobicents/jain-slee.sip/ last version
  • git clone https://github.com/Mobicents/jain-slee.sip/
  • cd jain-slee.sip
  • comment out all modules excluding "resources/sip11" (the first one) from "jain-slee.sip/pom.xml" {{{replace}}} {{{ resources/sip11 enablers/sip-publication-client enablers/sip-subscription-client examples/sip-b2bua examples/sip-uas examples/sip-jdbc-registrar examples/sip-wake-up }}} {{{with}}} {{{ resources/sip11
</modules>

}}}

  • mvn clean install -Dmaven.test.skip=true
  • cd ..
  1. clone the last version of SMSC project https://github.com/Mobicents/smscgateway/ master branch:
  1. if you need of CDR's generating you need to update jboss/server/default/conf/jboss-log4j.xml by adding there two extra sections for logging like following: {{{

     <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    
     <layout class="org.apache.log4j.PatternLayout"> 
     <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> 
     </layout> 
    

}}} and {{{ }}}

  1. run SMSC by the commands:
  • for linux:
  • export JBOSS_HOME=/<...>/jboss
  • cd <...>/jboss/bin
  • ./run.sh
  • for windows:
  • set JBOSS_HOME=<...>\jboss
  • cd <...>/jboss/bin
  • run
  1. configuring of SMSC GW for a simple test:
  • a) run CLI interface
  • for linux:
  • cd <...>/jboss/bin
  • ./ss7-cli.sh
  • for windows:
  • cd <...>/jboss/bin
  • ss7-cli
  • b) connect to SMSC GW server
  • connect
  • c) create ESME (for SMPP connection) that will accept messages for the number 6666
  • smpp esme create test test -1 -1 TRANSCEIVER SERVER password test esme-ton -1 esme-npi -1 esme-range 6666 source-range 6666 routing-range 6666
  • smpp esme start test
  • d) configure SIP connector that will accept messages for the number 5555
  • smsc sip modify SIP cluster-name cluster host 127.0.0.1 port 5065 routing-ton -1 routing-npi -1 routing-range 5555 counters-enabled false
  1. run any SMPP utility you wish to connect to SMSC (as systemId and password == test (port is 2776)). You can run a provided Mobicents SMPP Simulator. To run it: for linux:
  • cd /smscgateway/tools/smpp-simulator/bootstrap/target/simulator-smpp/bin
  • ./run.sh
  • for windows:
  • cd \smscgateway\tools\smpp-simulator\bootstrap\target\simulator-smpp\bin
  • run Then the GUI application is opened. We can use default SMPP Simulator's settings for connecting to SMSC GW (as it has been configured at the previous step). Then press "Run test" button - "Start a sesion" button. SMPP Simulator will connect to SMSC GW.
  1. run any SIP phone that supports messaging, For example Linphone. Configure it so it listern 5065 port for incoming SIP requests. SMSC GW by default listern port 5060. Use the following SIP address for sending messages to SMSC GW: "sip:[email protected]:5060"

  2. now you can send a message from SMPP Simulator to SIP Phone (press "Submit a message" button at SMPP Simulator) or send a message from SIP phone to SMPP Simulator.

Clone this wiki locally