dinesh4126: Hi,
First of all Thanx for Assistance.
Step1): ./configure --prefix=/path/to/mm and then make make test make install everything gone on a smooth manner without any error.
Step2): In smstool directory /src/Makefile I had made one change i.e. #CFLAGS += -D NOSTATS
Commneted above option to enable status monitor and again make and make install the smstoo3.During Making same error is coming.
---------------------------------------------------
stats.c:error:mm.h:no such file or directory
stats.c:warning:implicit declaration of function 'MM_create'
stats.c:warning:implicit declaration of function 'MM_maloc'
stats.c:warning:implicit declaration of function 'MM_destroy'
make[1]: [stats.o] Error1
make[1]:leaving directory '/root/smstools3/src'
make:***[compile] error 2
--------------------------------------------------------------------------------------
Am I following up right procedure.? Is more amendment is needed to make it working.?
|
dinesh4126: Hi,
Now I am Trying to use status monitor.For that I have downloaded the mm library from below link http://www.ossp.org/pkg/lib/mm/ and then comment the statistics to enable it.And then recompile the smstools but during make error is coming.
---------------------------------------------------
stats.c:error:mm.h:no such file or directory
stats.c:warning:implicit declaration of function 'MM_create'
stats.c:warning:implicit declaration of function 'MM_maloc'
stats.c:warning:implicit declaration of function 'MM_destroy'
make[1]: [stats.o] Error1
make[1]:leaving directory '/root/smstools3/src'
make:***[compile] error 2
--------------------------------------------------------------------------------------
Can somebody help me why its failed during make.
|
dinesh4126: step
1)Download the set up and untar the folder and then make +make install.
1)then their is configuration file /etc/sms.conf setting below ..
#below are sms.conf
devices = GSM1
outgoing=/var/spool/sms/outgoing
checked=/var/spool/sms/checked
alarmlevel=LOG_WARNING
delaytime=10
errorsleeptime=10
blocktime=3600
receive_before_send=no
autosplit=3
checkhandler=/etc/din.sh
executable_check=yes
logfile = /var/log/smsd.log
loglevel = 7
[GSM1]
init=AT+CPMS="SM"
device = /dev/ttyAM0
baudrate=115200
SMSC=919811009998
pre_init=yes
rtscts=no
cs_convert=yes
outgoing=yes
check_network=1
messageids=2
init2=AT+CSQ
read_timeout=60
----------------------------------------------
3)If you want to send single SMS to different recipient used automated script posted below and in config file used it as checkhandler=/etc/din.sh and then /var/spool/sms/outgoing/xxxx you define destination phone number 1,2,3 etc.
annd message text also in sms file.
4)run sms tool using /etc/init.d/sms3 start command
5)tail -f /var/log/sms.log to
|
dinesh4126: Thanx, Finally It Work.
Problem was procmail package not install once it installed it work fine.
|
dinesh4126: Thanx for Guidance :)
I am using automated script for sending SMS simultaneously to different recipient as posted above in this forum.Below is SMS file format :
------------------------------------------------------------
#sms file format
To:919312048374
To:919911702052
Alphabet:ISO
Hi ALL THIS IS DINESH..
----------------------------------------------------------------
#below are sms.conf
devices = GSM1
outgoing=/var/spool/sms/outgoing
checked=/var/spool/sms/checked
loglevel=4 for logfile,7 for syslog
alarmlevel=LOG_WARNING
delaytime=10
errorsleeptime=10
blocktime=3600
receive_before_send=no
autosplit=3
checkhandler=/etc/din.sh
executable_check=yes
logfile = /var/log/smsd.log
loglevel = 7
[GSM1]
init=AT+CPMS="SM"
device = /dev/ttyAM0
baudrate=115200
SMSC=+919811009998
pre_init=yes
rtscts=no
cs_convert=yes
outgoing=yes
check_network=1
messageids=2
init2=AT+CSQ
read_timeout=60
#Where checkhandler is path of automated script din.sh for sending SMS to different recipient.
------------------------------------------------------------------------------------------------------------------------------
# sms.log file
smsd: Smsd v3.1.5 started.
smsd: Running as root:root.
smsd: Running startup_check (shell): /tmp/smsd_script.8ODrJd /tmp/smsd_data.gHHhvi
smsd: Done: startup_check (shell), execution time 4 sec., status: 0
smsd: File mode creation mask: 022 (0644, rw-r--r--).
GSM1: Modem handler 0 has started. PID: 11821. Will only send messages.
smsd: Outgoing file checker has started. PID: 11820.
GSM1: Using check_memory_method 1: CPMS is used.
GSM1: Using read_timeout 60 seconds.
GSM1: Checking if modem is ready
GSM1: -> AT
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: Pre-initializing modem
smsd: Running checkhandler: /etc/din.sh /var/spool/sms/outgoing/file_1
GSM1: -> ATE0+CMEE=1
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: Checking if modem needs PIN
GSM1: -> AT+CPIN?
GSM1: Command is sent, waiting for the answer
GSM1: <- +CPIN: READY
GSM1: Initializing modem
GSM1: -> AT+CPMS="SM"
GSM1: Command is sent, waiting for the answer
GSM1: <- +CPMS: 0,25,0,25,0,25 OK
GSM1: -> AT+CSQ
GSM1: Command is sent, waiting for the answer
GSM1: <- +CSQ: 20,0 OK
GSM1: Signal Strength Indicator: (20,0) -73 dBm, Bit Error Rate: less than 0.2 %
GSM1: -> AT+CSQ
GSM1: Command is sent, waiting for the answer
GSM1: <- +CSQ: 20,1 OK
GSM1: Checking if Modem is registered to the network
GSM1: -> AT+CREG?
GSM1: Command is sent, waiting for the answer
GSM1: <- +CREG: 0,1 OK
GSM1: Modem is registered to the network
GSM1: Selecting PDU mode
GSM1: -> AT+CMGF=0
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: Changing SMSC
GSM1: -> AT+CSCA="++919811009998"
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: -> AT+CIMI
GSM1: Command is sent, waiting for the answer
GSM1: <- 4041104001XXXXX OK
GSM1: -> AT+CGSN
, GSM1: Command is sent, waiting for the answer
GSM1: <- 3524590100XXXXX OK
GSM1: CGSN: 3524590100XXXXX
GSM1: IMSI: 4041104001XXXXX
GSM1: Checking if reading of messages is supported
GSM1: -> AT+CPMS?
GSM1: Command is sent, waiting for the answer
GSM1: <- +CPMS: "SM",0,25,"SM",0,25,"SM",0,25 OK
GSM1: Waiting for messages to send...
GSM1: Checking if concatenation storage has expired message parts
smsd: Done: checkhandler, execution time 13 sec., status: 0
smsd: Moved file /var/spool/sms/outgoing/file_1 to /var/spool/sms/checked
GSM1: I have to send 1 short message for /var/spool/sms/checked/file_1
GSM1: Sending SMS from to 9199117XXXXX
GSM1: Checking if modem is ready
GSM1: -> AT
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: Pre-initializing modem
GSM1: -> ATE0+CMEE=1
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: Initializing modem
GSM1: -> AT+CPMS="SM"
GSM1: Command is sent, waiting for the answer
GSM1: <- +CPMS: 0,25,0,25,0,25 OK
GSM1: -> AT+CSQ
GSM1: Command is sent, waiting for the answer
GSM1: <- +CSQ: 20,1 OK
GSM1: Signal Strength Indicator: (20,1) -73 dBm, Bit Error Rate: 0.2 - 0.4 %
GSM1: -> AT+CSQ
GSM1: Command is sent, waiting for the answer
GSM1: <- +CSQ: 20,1 OK
GSM1: Checking if Modem is registered to the network
GSM1: -> AT+CREG?
GSM1: Command is sent, waiting for the answer
1969-12-31 22:06:07,7, GSM1: <- +CREG: 0,1 OK
GSM1: Modem is registered to the network
GSM1: Selecting PDU mode
GSM1: -> AT+CMGF=0
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: Changing SMSC
GSM1: -> AT+CSCA="++919811009998"
GSM1: Command is sent, waiting for the answer
GSM1: <- OK
GSM1: -> AT+CMGS=26
GSM1: Command is sent, waiting for the answer
GSM1: <- >
GSM1: -> ( PDU REMOVED ).
GSM1: Command is sent, waiting for the answer
GSM1: <- +CMGS: 250 OK
GSM1: SMS sent, Message_id: 250, To: 9199117XXXXX, sending time 11 sec.
GSM1: Deleted file /var/spool/sms/checked/file_1
GSM1: Checking if concatenation storage has expired message parts
GSM1: Checking if concatenation storage has expired message parts
------------------------------------------------------------------------------------------------------------------------------------------------
Again same thing is happening in sms file its skipping 9312048734 number and sending only to 99117020502 when I am using automated script for sending SMS.While I am using automated script as checkhandler as per set in the sms.conf file.So is their any more modification is needed in sms.conf file so that I will able to send sms to different recipient .Kindly guide me how can I proceed further to solve this problem.???
|
dinesh4126: Below are script posted for sending single message to different which I found posted in forum.But I have doubt over, once this scripts run then using only command line we can send message. Will it wont work for specify destination phone number directly in SMS file instead of sending through command line.
Edit by keke: The script copied had the last line missing and was not "code" formatted. I changed it to link to the original post. It can be found here: How to configure sms recipients list
Links to older posts can always be done, even if they are locked, I do not remove any old posts which may contain any useful information or which are referred by a link.
|
dinesh4126: Hi,
Do you have any idea abut scripts that will automate the whole process.Guide me PLease
|
dinesh4126: Hi,
Can I send same SMS to different Users using single SMS file as per below:
-------------------------------------------------------------------------------------
To:919999039589,919910653416
alphabet:ISO
HI,ALL this is Dinesh
------------------------------------------------------------------------------------------
will it be work.
|