Package: smstools
Version: 3.1-2
Severity: important
Hi
Not all the SMS messages are sent. Apparently it does not wait long enough for
a reaction of the modem.
This has been fixed by upstream with the following comment (it would be
appreciated if you could look into fixing this in stable):
In the version 3.1.5beta6 there is a modem setting read_timeout
available for solving this kind of problems. Next beta7 will also have
doubled timeouts by default.
If any previous version should be changed, you can find "Send modem
command" in the file smsd.c. There are following lines:
Code: Select all
// Send modem command
put_command(modem,
devices[device].name,devices[device].send_delay, command, answer,
sizeof(answer), 50, "(>)|(ERROR)");
// Send message if command was successful
if (! strstr(answer,"ERROR"))
put_command(modem,
devices[device].name,devices[device].send_delay, command2, answer
,sizeof(answer), 300, "(OK)|(ERROR)");
// Check answer
if (strstr(answer,"OK"))
Change the number 50 to 100 or 150, and number 300 bigger if necessary
(probably it's not necessary). Then recompile and cp smsd `wich smsd`
Cheers
Luk
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages smstools depends on:
ii adduser 3.110 add and remove users and groups
ii debconf 1.5.24 Debian configuration management sy
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libmm14 1.4.2-3 Shared memory library - runtime
ii ucf 3.0016 Update Configuration File: preserv
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]