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#

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

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: