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
how to use round robin
sp_NewTopic Add Topic
July 28, 2014
2:16 pm
Henk Helmantel
Admin
Forum Posts: 1573
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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:

<?php
$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

July 27, 2014
10:10 am
Venance
Guest
Guests

1. I want to configure a gateway with multiple modems, any assistance on extra hardware required and how configuration is done?
2. Can you hare complete sample php script for http gateway integration.

Forum Timezone: Europe/Amsterdam
Most Users Ever Online: 1119
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 703
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1195
Posts: 4079
Newest Members:
, Henk Helmantel
Administrators: Henk Helmantel: 1573