SMS Inbounds

Fields of application

NameDefinition
message_idTicket of the original message
numberMobile number
textText of the inbound SMS
sim_card_numberSim card number which received the SMS
reception_dateDate of when the inbound SMS was received, in the format “Ymd H:m:s” (Y-m-d H:i:s)
The request fields can also been sent as an array

Simple sample of PHP scratching, with arrays, in your script

$fp = fopen(‘callbacks.txt’, ‘a’);
fputs($fp, ‘message_id : ‘ . $_POST[‘message_id’] . “n”);
fputs($fp, ‘number : ‘ . $_POST[‘number’] . “n”);
fputs($fp, ‘text : ‘ . $_POST[‘text’] . “n”);
fputs($fp, ‘reception_date : ‘ . $_POST[‘reception_date‘] . “n”);
fclose($fp);

Simple sample of PHP scratching, with arrays, in your script

$fp = fopen(‘callbacks.txt’, ‘a’);
$message_ids = $_POST[‘message_id’];
$numbers = $_POST[‘number’];
$texts = $_POST[‘text’];
$reception_dates = $_POST[‘reception_date‘];
for($i=0, $i < count($messages_ids); $i++)
{
fputs($fp, ‘message_id : ‘ . $message_ids[$i] . “n”);
fputs($fp, ‘number : ‘ . $numbers[$i] . “n”);
fputs($fp, ‘text : ‘ . $texts[$i] . “n”);
fputs($fp, ‘reception_date : ‘ . $reception_dates[$i] . “n”);
}
fclose($fp);