Version of smsd: 3.1.21
Smsd installed from:
Name and model of a modem / phone: WAVECOM MODEM, MULTIBAND 900E 1800
Interface:
I have multiport modem which contain 8 ports, i can successfully install the software and make the hardware running in my system.
i tried to configure and make some adjustment to my requirements, but seems like i cannot make it works perfectly, thats why i need some help from people who might know on how can i accomplish regarding from the below requirements:
a. when a device/modem is initialize, i need to have some information when its open successfully and ready to operating so i can executing my custom command when this event occured.
b. when a device/modem is opened successfully and ready, i need to run USSD Command to get simcard number(MSISDN and along with device name) and store it somewhere in database.
c. when a device is suspended, means changing simcard on the fly i need to have an event so i can record the new attached simcard to database so i do not loose information.
d. when a device is on error occur like cannot register on the network and still not ready to operating, i need to have this information too.
the point from the whole thing is, i need to store all information about which port or number in the devices is on ready 100% to accepting some jobs (sending/receiving sms).
what i had tried so far is, trying to make regular_run but failed to get statfile(it got deleted so quickly by the system and i do not know why), the current system just recording the output from ussd command in logfile(if defined, if not then i loose the response).
below is my regular_run configuration.
i'm creating the directory of scripts and setting the permission and ownership to the same user as smstools running from.
i had tried to creating cmdfile from below:
and i can assure that it exists on file system.
rr_logfile_GSM1 contain all ussd command response.
statfile is missing, stats directory is empty, but showing last modified date is the latest one. means the file got deleted.
i have read the documentation which stated
, perhaps there is another run which causing the old file deleted. what makes me confused i never make any cmdfile. another thing which processed strangely postrun scripts running as much as device count even if i only make one cmdfile script.i am attaching the error too.Quoteregular_run_statfile = filename
Default value: not in use.
If defined, results of commands are written to this file. Old file is cleared before each run. Since version 3.1.16 special keyword modemname can be used, it's replaced with a name of modem.
from postrun error message i concluding if the scripts have to be in somewhere in web service and not as file script.
rr_postrun.sh contain just a simple code to writing param $1,$2.
Please help me!