Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
SMS HTTP API cannot send to the same mobile number in succession.
sp_NewPost Add Reply sp_NewTopic Add Topic
February 15, 2024
10:38 am
Henk Helmantel
Admin
Forum Posts: 1511
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Chester,

If a message is marked as 'Sent' in the send log of Diafaan SMS Server it means that the message is received and accepted by the SMS network/service. When the message is not received on the mobile phone then the most likely cause is that the message is blocked by the mobile network. Perhaps the message is regarded as spam or maybe the network blocks duplicate messages.

Regards, Henk

February 15, 2024
8:01 am
chester
Guest
Guests

I'm using the basic code from the website with little modification:

<?php

echo WISMS( '+xxxxxxxxxxxxxx', 'XXXUpdate: Your child XXXXX tapped in at 11:49:05 AM today Jan 10, 2024.');

function WISMS($number, $message)
{

/* Create the HTTP API query string */
$query = 'http://192.168.93.214:9710';
$query .= '/http/send-message/';
$query .= '?username='.urlencode("admin");
$query .= '&password='.urlencode("password");
$query .= '&to='.urlencode($number);
$query .= '&message='.urlencode($message);

/* Send the HTTP API request and return the response */
return file_get_contents($query);
}

It works however, if I hit refresh or call the code again, it sends in the console but i can't receive the message on my mobile number (to) anymore.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 680

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1156

Posts: 3946

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1511