Support forum
Hello Venance,
There is no special configuration required when you want to use Diafaan SMS Server with multiple GSM modems. The easiest way to use multiple GSM modems on one computer is to use a multi-port GSM modem pool or a full fledged GSM modem gateway. It is also possible to use multiple separate GSM modems but this is not always reliable, specially USB modems sometimes don't work when you try to connect multiple modems to one PC.
There are a number of ways to make an HTTP call to Diafaan SMS Server from PHP, the next example uses the file_get function to send the HTTP GET request to Diafaan SMS Server and retrieve the answer:
$result = send_sms('+100000000', 'This is the message');
print_r($result);
function send_sms($to, $message)
{
$uriBase = 'http://127.0.0.1:9710/http/send-message/';
$username = 'admin';
$password = 'pass';
$uri = $uriBase
.'?username='.urlencode($username)
.'&password='.urlencode($password)
.'&to='.urlencode($to)
.'&message='.urlencode($message);
return file_get_contents($uri);
}
?>
Regards, Henk
Most Users Ever Online: 529
Currently Online:
3 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 672
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1141
Posts: 3899
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1488