Restcomm latest iteration comes with SMPP integration that allows sending messages from multiple SMPP endpoints. This tutorial will explain how to connect Restcomm SMPP to Nexmo. If you want to learn how to connect Restcomm SMPP to Telscale SMSC gateway, see more HERE
Requirements
- Latest version of Restcomm
- Nexmo Account
Step 1 – Get Nexmo Account Details
Go into your Nexmo account dashboard and get the following data
- In the screenshot below, you need the
- Callback System-type = text
You also need the API Settings
- Key :
- Secret :
You also need to get the Nexmo gateway and the port as explained HERE
Step 2 – Configure Restcomm to Use Nexmo SMPP
Go to $RESTCOMM_HOME/standalone/deployments/restcomm.war/WEB-INF/conf/restcomm.xml
Find the section <smpp> section and configure as shown below
Activate as follows
- activateSmppConnection = “true”
Set the systemid using the Key of the API
- <systemid>XXXX</systemid>
Set the peerip with the Nexmo Gateway
- <peerip>smpp0.nexmo.com</peerip>
Set the peerport using the Nexmo default port as follows
- <peerport>8000</peerport>
Set the <password> using the Nexmo API Secret
- <password>XXXX</password>
Set the <systemtype> of Nexmo (This is required for inbound SMS)
- <systemtype>text</systemtype>
The final configuration should look like the one below. You can leave the rest as default
<smpp class="org.mobicents.servlet.restcomm.smpp.SmppService" activateSmppConnection ="true"> <connections> <connection activateAddressMapping="false" sourceAddressMap="7777" destinationAddressMap="6666" tonNpiValue="1"> <!-- Name must be unique for each connection --> <name>RestcommSmpp</name> <systemid>xxxxx</systemid> <peerip>smpp0.nexmo.com</peerip> <peerport>8000</peerport> <!--2776--> <bindtype>TRANSCEIVER</bindtype> <!-- These are optional params --> <password>xxxxx</password> <systemtype>text</systemtype>
Step 3 – Start Restcomm and Send inbound Messages
- Start Restcomm and make sure SMPP is correctly bound to Nexmo
- Create a new RVD Application and attach your Nexmo Number to the application (See below)
- See the screenshot below (The number below is the one to attach to your RVD application)
- Send an SMS message to the Number registered in your Nexmo Dashboard.
- The Nexmo Callback System-type setting lets Nexmo know that the message should be sent to Restcomm
Step 4 – Send Outbound SMS through Nexmo SMPP
To send an outbound message through Restcomm SMPP endpoint, you must prepend the number with the “smpp”
Example, if you want to send an SMS to the number 3399999999, you send it to smpp3399999999@RESTCOMM_IP:5080
The prepended smpp tells Restcomm to use SMPP instead of SIP to forward the message
See screenshot below
The post Restcomm – Connecting SMPP Endpoint through Nexmo appeared first on Telestax Docs Online.