Dashboard

Receiving SMS

Receive an inbound SMS from SMS Expert.

If requested SMS Expert will do a HTTPs/POST from our web-based server to your server containing incoming SMS that have been sent into your dedicated virtual mobile numbers or into our shared shortcodes using your keywords.

Please use the dashboard to configure the default URL of where you want inbound SMS forwarded to for each of your dedicated virtual mobile numbers and shortcode keywords.
https/post callhttp://www.mydomain.com/handler.php
parameters (POST)$source [mobile number that sent the SMS]

$dest [virtual mobile or shortcode the SMS was sent to]

$message [actual SMS message sent. needs to be urldecoded]

$network [mobile network the sender is on, see below]

Mobile networks
  10 - O2
  15 - Vodafone
  20 - Three
  30 - T Mobile
  31 - EE
  33 - Orange
  99 - Unknown

The following only available for keywords on 60300

$matched_keyword [registered keyword]

$matched_subkeyword [registered sub-keyword]

$message_after_match [the rest of the message after keyword]

Sample Code...
PHP

<?php
$source = $_POST["source"];
$dest = $_POST["dest"];
$message = urldecode($_POST["message"]);
$network = $_POST["network"];

if ($network == "10") {
  $netname = "O2";
} else if ($network == "15") {
  $netname = "Vodafone";
} else if ($network == "20") {
  $netname = "Three";
} else if ($network == "30") {
  $netname = "T Mobile";
} else if ($network == "31") {
  $netname = "EE";
} else if ($network == "33") {
  $netname = "Orange";
} else {
  $netname = "Unknown";
}

mail(
  "yourself@mydomain.com",
  "Inbound SMS from $source to $dest",
  "From Mobile number: $source\r\n
   To number/shortcode: $dest\r\n
   Network id: $network\r\n
   Network name: $netname\r\n
   Message: $message\r\n",
  "From: yourself@mydomain.com\r\nReply-To: yourself@mydomain.com\r\n");

print("OK"); //always return "OK" to let SMS Expert know it was received
?>

Support Home
Introduction

Main dashboard
Campaign manager
SMS Expert home page
Sending SMS (http)
Send outbound SMS
Receive delivery receipts
Sending SMS (smpp)
Please call for details
Receiving SMS
Receive inbound SMS
Wallet Balances
SMS + keyword balances
Keyword Tools
Keyword availability
Register keyword
Set keyword forwarding

List keywords
Renew keyword
Delete keyword
Replace keyword

Tool response codes