Keywords: Mode: All keywords (AND) |
Thu Aug 06, 2020 13:28
|
chorkpops: Ok I understand now. So I have something like in the smsd.conf
suspend = /xxx/yyy/suspended.txt
Then if I want to suspend devices GSM0 and GSM3... inside the file:
GSM0: replacing sim card
GSM3: replacing sim card
Then after swapping cards. I just have to empty the file (or delete it)
And later read_identity_after_suspend will trigger, refreshing IMEI and IMSI.
However, what happens if I added entries to the suspend file then no activity occurred on those modems before I removed them again on the file. How will I force the suspend check so that it will read_identity_after_suspend?
|
Thu Aug 06, 2020 10:45
|
chorkpops: Operating system name and version: Centos
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: sierra
Interface: USB
I have an 8 port gsm modem. Is it ok to swap sim cards from one slot while sms3 is running? How do I suspend a sim slot (is there a command line to execute)? Thanks
|
Wed May 13, 2020 02:47
|
chorkpops: Operating system name and version: centos 7
Version of smsd: 3.1.21
Smsd installed from: source
Name and model of a modem / phone: unknown generic
Interface: USB
Hi! I am trying to test ussd manually.
I was able to execute a balance check. The response was still in ussd response. And no accompanying sms received.
The response was logged in the regular_run_logfile. However, I cannot find a statfile. Was the statfile created? was it deleted immediately?
What I got to do was use eventhandler_ussd. Does the answer file always writes to /tmp ? I tried to move the file so that I have a copy.
If I execute a ussd command and the result need a reply command, then I overwrite the file (ex: /tmp/smsd.TZdUc9) with something like AT+CUSD=1,"1" . Is this correct? And for that response a different execution of eventhandler_ussd is created right?
Thanks
Config below:
[default]
regular_run_interval = 10
regular_run_logfile = /var/log/sms/smsd_regular_run.log
[GSM7]
device = /dev/ttyUSB7
incoming = yes
baudrate = 115200
smsc = 639170000130
queues = GSM7
logfile = /var/log/sms/modemname.log
loglevel = 5
eventhandler_ussd = /home/sms/eventhandler/eventhandler_ussd.sh
regular_run_cmdfile = /var/spool/sms/regular_run/GSM7.cmdfile
regular_run_statfile = /var/spool/sms/regular_run/GSM7.statfile
|
Mon Oct 14, 2019 04:33
|
chorkpops: Operating system name and version: Centos 7
Version of smsd: 3.1.21
Smsd installed from: source
Name and model of a modem / phone:
Interface: USB
Hi. I am running sms3 as root. I just added logrotate recently however every day it will stop after it has rotated the logs. The directories and scripts below are existing.
2019-10-14 03:28:01,2, smsd: Smsd v3.1.21 started.
2019-10-14 03:28:01,2, smsd: Running as root:root (0:0).
2019-10-14 03:28:01,2, smsd: Sent directory /home/sms/eventhandler/sent cannot be opened.
2019-10-14 03:28:01,2, smsd: Eventhandler /home/sms/eventhandler/eventhandler.sh cannot be read: Permission denied
2019-10-14 03:28:01,2, smsd: Infofile /var/run/smsd.working cannot be created: Permission denied
2019-10-14 03:28:01,7, smsd: Running startup_check (shell): /var/spool/sms/incoming/smsd_script.IWb9qI /tmp/smsd_data.1VDzU3
2019-10-14 03:28:01,3, smsd: Done: startup_check (shell), execution time 0 sec., status: 32256 (126)
2019-10-14 03:28:01,3, smsd: Exec: startup_check (shell) encountered errors:
2019-10-14 03:28:01,3, smsd: ! sh: /var/spool/sms/incoming/smsd_script.IWb9qI: Permission denied
2019-10-14 03:28:01,2, smsd: Shell /bin/sh testing failed: Failed to execute test script.
2019-10-14 03:28:01,2, smsd: There was 4 major problems found.
2019-10-14 03:28:01,2, smsd: Smsd mainprocess terminated.
|