As the loss of registration is a serious problem, smsd tries to get back to the network as soon as possible. There is no setting for increase the waiting time. I probably have to add this setting to the next version.
You can avoid those messages with a modem setting
log_not_registered_after. For example value 64 causes that messages are logged using
debug level, and after the 64th try level is changed to
notice and alarmhandler is called.
As you have installed smsd from sources, you might make a small change to the sources. In the file
smstools3/src/modeminit.c, locate the following and add highlighted line:
// Return value:
// -2 = terminated
// -1 = modem is not registered
// >= 0 = number of retries, modem is registered
int wait_network_registration(int waitnetwork_errorsleeptime, int retry_count)
{
char answer[500];
int success = 0;
int retries = 0;
int registration_denied = 0;
static int registration_ok = 0;
char *p;
// 3.1.14:
static char prev_lac[32] = "";
static char prev_ci[32] = "";
char lac[32];
char ci[32];
waitnetwork_errorsleeptime = 10;
writelogfile(LOG_INFO, 0, "Checking if Modem is registered to the network");
'c' Syntax Highlight powered by GeSHi Then in the
smstools3/src directory, run
make. After the compilation is done, replace the executable with
cp -p smsd $(which smsd)