This is tutorial about how to install gammu software. Gammu its an add on software for run GSM modem. so you can send TEXT with blasting methods. Of course in this tutorial i don't explain how to integrate from gammu log file into php script. I hope everyone can understand. Okay, this is the step by step
PLEASE MAKE SURE you already install GAMMU with basic server option, and you can add an "Development Tools" from yum also, for this i can explain in third step.
1. Install cmake – for compile gammu software
# yum install cmake
2. Download file Cmake
# wget http://pkgs.fedoraproject.org/repo/pkgs/cmake/cmake-2.8.7.tar.gz/e1b237aeaed880f65dec9c20602452f6/cmake-2.8.7.tar.gz
3. Install groupinstall “Development tools”
# yum groupinstall “Development Tools”
# yum install alsa-lib mesa-libGLU-devel freetype-devel libmng-devel libpng-devel
# yum install libXt-devel libXft-devel libXrandr-devel libXcirsor-devel libXi-devel libXinerama-devel
# yum install mysql mysql-bench mysql-connector-java mysql-connector-java mysql-connector-odbc mysql-devel mysql-embedded mysql-embedded-devel mysql-libs mysql-server mod_auth_mysql php-mysql qt-mysql
4. Extract and Install Cmake
[root@server ] # tar –zxvf cmake-2.8.7.tar.gz
[root@server cmake-2.8.7] # ./configure
after finished
[root@server cmake-2.8.7] # gmake
ps: make sure last two command run in [cmake-2.8.7] folder
5. Download gammu files 1.33
#wget http://sourceforge.net/projects/gammu/files/gammu/1.33.0/gammu-1.33.0.tar.gz
6. Extract gammu files 1.33
# rpm –Uvh gammu-1.33.0.tar.gz
# ./configure
# make test
# make install
The file gammu will be in directory: /usr/local/bin/gammu
see list program with ls command
# ls /usr/local/bin/
gammu gammu-config gammu-smsd
gammu-smsd-inject gammu-smsd-monitor jadmaker
please make sure you have all the file in that directory
7. Run gammu-config
# /usr/local/bin/gammu-config
add gammurc in folder :::
# touch /usr/local/bin/gammurc
edit file gammurc
[gammu]
port = /dev/ttyUSB0
#model =
connection = at115200
#synchronizetime = yes
logfile = /usr/local/bin/gammu
#logformat = textall
#use_locking = no
#gammuloc =
commtimeout=30
sendtimeout=30
send=1
receive=1
checksecurity=0
deliveryreport=sms
deliveryreportdelay=30
# Database backends congfiguration
#user =
#password =
#pc =
# pc can also contain port or socket path after colon (eg. localhost:/path/to/socket)
#database =
multiparttimeout=3000
To find the device port, please connect your GSM modem and find port with command ::
# dmesg |grep tty
8. ADD this link file for gammu work properly
# ln -s /usr/local/lib64/libGammu.so /usr/lib64/libGammu.so.7
# ln -s /usr/local/lib64/libgsmsd.so /usr/lib64/libgsmsd.so.7
9. Testing
# /usr/local/bin/gammu –identify
Device : /dev/ttyUSB0
Manufacturer : Wavecom
Model : MULTIBAND 900E 1800 (MULTIBAND 900E 1800)
Firmware : 651b09gg.Q2406B 244 041410 13:45
IMEI : 350965720019130
SIM IMSI : 510891574215039
If you see the device, manufacturer etc... your gammu software is working properly, the next step is configure your gammurc file with mysql, i'm sorry i can't explain the step by step for that.
10. Create shortcut gammu
# nano /root/.bashrc
add this line
# Alias gammu command
alias gammu='/usr/local/bin/gammu