Monthly Archives: September 2013

Protected: ROUTE INCOMING CALL BY DID ON QUINTUM TENOR DX TO DIFFERENT SIP SERVER


This content is password protected. To view it please enter your password below:

RHEL / CENTOS 6.0 GAMMU SMS SERVER


#!/bin/bash
/bin/tar -zxvf /usr/post/installer/gammu/cmake-2.8.7.tar.gz -C /usr/src/
cd /usr/src/cmake-2.8.7/
./configure
/usr/bin/gmake
/bin/ln -sf /usr/src/cmake-2.8.7/bin/cmake /usr/bin/cmake
/bin/tar -zxvf /usr/post/installer/gammu/gammu-1.31.0.tar.gz -C /usr/src/
cd /usr/src/gammu-1.31.0/
./configure
make install
ln -s /usr/local/lib64/libGammu.so /usr/lib64/libGammu.so.7
ln -s /usr/local/lib64/libgsmsd.so /usr/lib64/libgsmsd.so.7

mkdir /var/log/sms

touch /var/log/sms/modem{0,1,2,3,4}

vim /root/.gammurc

[gammu0]
port = /dev/ttyUSB0
model = at
connection = at115200
synchronizetime = yes
logfile = /var/log/sms/modem0.log
logformat = textalldate
use_locking =
gammuloc =
[gammu1]
port = /dev/ttyUSB1
model = at
connection = at115200
synchronizetime = yes
logfile = /var/log/sms/modem1.log
logformat = textalldate
use_locking =
gammuloc =

[gammu2]
port = /dev/ttyUSB2
model = at
connection = at115200
synchronizetime = yes
logfile = /var/log/sms/modem2.log
logformat = textalldate
use_locking =
gammuloc =
[gammu3]
port = /dev/ttyUSB3
model = at
connection = at115200
synchronizetime = yes
logfile = /var/log/sms/modem3.log
logformat = textalldate
use_locking =
gammuloc =

[gammu4]
port = /dev/ttyUSB4
model = at
connection = at115200
synchronizetime = yes
logfile = /var/log/sms/modem4.log
logformat = textalldate
use_locking =
gammuloc =

 

Check modem status

gammu 1 identify
gammu 2 identify
gammu 3 identify
gammu 4 identify

 

Check Pulsa SMS (XL)

[root@sms ~]# gammu getussd *123#

EXAMPLE PHP TELNEL QUINTUM


<?php
set_time_limit(0);
require_once “PHPTelnet.php”;

$telnet = new PHPTelnet();
$result = $telnet->Connect(‘192.168.0.220′,’username’,’password’);

if ($result == 0) {
$varin = ‘st ds1 clear’;
$telnet->DoCommand($varin, $result);
sleep(2);
$telnet->Disconnect();
}
?>

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: