My environment was:
- Windows 8.1 32 bit
- Prolink PHS 301 3.5G modem
- Latest XAMPP
- Gammu 1.32 (I’m searching for the stable one, if you want the latest version of Gammu, its up to you)
- playSMS that still support windows, v0992 or v098 (mine was 098)
Here’s the step:
-
Step 1: install your modem driver/software, and make sure that work properly
-
Step 2: install your XAMPP in
C:
, choose the complete setup not minimal or the other -
Step 3: edit your
php.ini
files inC:\xampp\php
with notepad++, sublime or any text editor -
Step 4: first edit
php.ini
- on the line 747 this :
register_argc_argv=On
, to be set ON, (if your default was off) - then, on the line 1045 edit this :
date.timezone= "Asia/Jakarta"
change theAsia/Jakarta
which suitable to your timezone, save it
- on the line 747 this :
-
Step 5: download Gammu, choose the Windows version, e.g : Gammu-1.33.0-Windows.zip
-
Step 6: extract that and make folder called gammu in
C:\
, and then paste everything inside the folder (Gammu version) that you have been extracted, normally there are 4 folder :bin
,include
,lib
,share
-
Step 7: inside the
C:\gammu
folder, make 4 new folder,inbox
,outbox
,sent
, anderror
-
Step 8: find this file:
gammurc
andsmsdrc
located onC:\gammu\share\doc\gammu\examples\config
-
Step 9: copy that two file to
C:\gammu\bin
-
Step 10: edit that two file
-
Step 11:
gammurc
file to be like this
on the line 9-22:
[gammu]
device = com12: ; your modem port, check Control Panel -> Device manager
connection = at115200
; Do not use model configuration unless you really need it
;model = 6110
synchronizetime = yes
logfile = gammulog
logformat = textall
;use_locking = yes
;gammuloc = locfile
;startinfo = yes
;gammucoding = utf8
;usephonedb = yes
dont forget to remove the beginning semicolon on synchronizetime
, logfile
, and logformat
- Step 12:
smsdrc
file to be like this
on the line 6 to 15:
[gammu]
device = com12:
#model = 6110
connection = at115200
synchronizetime = yes
logfile = gammulog # this is not used at all in SMSD mode
logformat = textall
#use_locking = yes
#gammuloc = gammu.us
#startinfo = yes
line 33:
service = files
line 35:
#PIN = 1234 # add hash if your default is none
line 73 to 80:
# Files backend configuration
InboxPath = C:\gammu\inbox\
OutboxPath = C:\gammu\outbox\
SentSMSPath = C:\gammu\sent\
ErrorSMSPath = C:\gammu\error\
InboxFormat = unicode
OutboxFormat = unicode
TransmitFormat = auto
edit that if you make another place for the folder that i told you in the step 7
-
Step 13: register your Gammu path
C:\gammu\bin
in thePATH
at the environment variables of windows (googling for this) -
Step 14: test your
Gammu
open Command Prompt as administrator, and navigate to C:\gammu\bin
after that type this : gammu --identify
if it shows you information of your modem, that means your Gammu can connect with your modem, if not, back again to the step 11, and read carefully the step
try to SMS with this command : gammu --sendsms TEXT +62XXXXXXXXX
ok thats it for gammu
- Step 15: playSMS
download the playSMS v0992 or v098, and extract that
make new folder in xampp\htdocs
called playsms
and inside that make new folder again called web
after that, copy all file and folder inside web folder of your playSMS extracted folder to xammp\htdocs\playsms\web
open your PhpMyAdmin and make database called playsms
import the playsms.sql
in the db
folder of your extracted playSMS folder
in the xammp\htdocs\playsms\web
you see config-dist.php
edit that, so it can be connect with your database, save, and rename the file to config.php
open in the web browser, http://localhost/playsms/web
and login as admin
configure everything in main configuration menu, that suitable to your environment, don’t forget to select Gammu as your gateway
ok, you’re getting ready now
- Step 16: find the
config.php
file inC:\xampp\htdocs\playsms\web\plugin\gateway\gammu
on the line 5, edit like this : $gammu_param['path'] = "C:\gammu
;
-
Step 17: in the
C:
create folder calledplaysms
and inside that folder make 3 new folders,bin
,etc
, andlogs
-
for bin folder :
copy these fileplaysms_gammu_start.bat
,playsms_gammu_stop.bat
,(your extracted playsms folder)\contrib\gammu\windows
paste them toC:\playsms\bin
-
copy this file
(your extracted playsms folder)\daemon\windows\bin
all file insidebin
, paste them toC:\playsms\bin
-
copy this file
(your extracted playsms folder)\daemon\windows\etc playsms.bat
, paste it toC:\playsms\etc
-
copy this file
(your extracted playsms folder)\contrib\gammu\windows gammu-smsdrc
paste it toC:\playsms\etc
-
check
playsms.bat
inC:\playsms\etc
make sure the path is correct to the resource -
check
gammu-smsdrc
inC:\playsms\etc
edit, and make it same likesmsdrc
file inC:\gammu\bin
-
-
Step 18: the last step
go to C:\gammu
and you will see folders: inbox
, outbox
, sent
, and error
make them all full control permissions folders, you can change this one by one, by right-click the folder -> properties -> security tab -> click edit -> on the ‘group or username’ area, choose your active users, and checked full control permission -> apply -> ok
do that step for all 4 folders
Now, youre done!
Start the playsms_gammu_start.bat
in C:\playsms\bin
as administrator
Try to sms via playSMS via your browser
Problems that I experienced:
- SMS move to queue but never sent/move to outgoing = it means your C:\playsms\bin playsmsd.bat is not working properly, it cant ‘grab’ the queue code of the messages, check the path in C:\playsms\etc playsms.bat make sure all are correct
- SMS is on outgoing table, but the status is failed = check your gammu gateway config, also check modem connectivity and ballance of your sim card
- SMS is on outgoing table, but the status is pending = do same method like failed method, and also check the permision of inbox, outbox, sent, error in C:\gammu make sure they are full control as step 18
- Cant receive sms in inbox = maybe playSMS can’t handle the message, check at incoming message table in playSMS if the message status is ‘unhandled’ that means your messages cant move to inbox table (still dont know how to solve this problem)
OK thats it for now.
any question will be replied as soon as i checked, hehe
and many thanks for MR. Anton Raharja who make this awesome stuff
sorry for my bad english too
Regards,
Rizki Masjahri