Version of smsd: 3.1.5
Smsd installed from: preinstalled on FoxboxGT
Name and model of a modem / phone: Novatel Wireless Expedite EU850D/EU860D/EU870D
Interface: USB
Hello,
i have a problem witch the eventhandler:
after receiving a message, the eventhandlerGSM2 is called and starts a custom script witch the following command ($2 is the filename of the sms):
eventhandlerGSM2:
This script makes a copy of the message from the spool directory /var/spool/sms/incoming/GSM2.xxxxxx to another folder with following command:
This runs well but sometimes (about 1 of 10 messages) the script gives an error and the message could not be copied. This is the output from the smsd.log:
It seems that the smsd removes the message before the eventhandler has finished. If i insert a sleep 3 into the eventhandler before the custom script will be executed, every message produces this error:
How can i be sure that every message will be processed correctly? Does the smsd wait for the eventhandler?
best regards,
Frank