Author: Thorsten Alteholz Description: fix some spelling errors Index: smstools/doc/configure.html =================================================================== --- smstools.orig/doc/configure.html 2020-08-05 19:02:50.448596133 +0000 +++ smstools/doc/configure.html 2020-08-05 19:02:50.440596105 +0000 @@ -738,7 +738,7 @@

filename_preview = number
Default value: not in use.
-Available from version >= 3.1. Defines how many characters of message text is concatenated to the name of a messsage file. +Available from version >= 3.1. Defines how many characters of message text is concatenated to the name of a message file. Characters used are a...z, A...Z, 0...9, - and period. All other characters are replaced with _'s.

@@ -1610,7 +1610,7 @@
+CMGD: (1-30)
OK
-= is not supported, a modem does not give message numbers even if there is messsages available. += is not supported, a modem does not give message numbers even if there is messages available.

 3 CMGL is used to check messages. Message is deleted after it is read. @@ -2126,7 +2126,7 @@ Setting ms_purge_read defines if parts are read before they are deleted. If internal_combine setting is used, parts are stored to the concatenation storage. If missing part(s) are later received, there will be similar timeout before parts are purged. -After this the messsage is complete and is stored to the incoming folder. +After this the message is complete and is stored to the incoming folder. See also global settings ic_purge_*.

@@ -2186,9 +2186,9 @@ After version >= 3.1.16 special keyword modemname can be used, it's replaced with a name of modem.
You can test you eventhandler and some other things without actually receiving a message from the modem/phone. This is especially important when it's not possible to receive the same message again because the sender cannot be reached.
-You may have the original PDU string stored to the incoming messsage file, or you may see it in log file (depending of the loglevel). +You may have the original PDU string stored to the incoming message file, or you may see it in log file (depending of the loglevel). This PDU string can be stored to the pdu_from_file named file, and when this file exists the smsd will read the PDU from there. -Rest processing will be done similarry than with normally received messsages and you can then debug possible problems +Rest processing will be done similarry than with normally received messages and you can then debug possible problems and see when they are fixed.
This file can contain empty lines and comment lines starting with # character.
Actual data can be stored as one line containing the PDU string, or two lines containing (first) the modem answer @@ -2593,7 +2593,7 @@ You can test your eventhandler and whole system around the smsd without sending any messages to the GSM network. All other functionality is working as usual, so this is some kind of "mute" to the modem. However the modem should be connected and working. -This does not have an effect to the incoming messsages. +This does not have an effect to the incoming messages.

Index: smstools/doc/history3.html =================================================================== --- smstools.orig/doc/history3.html 2020-08-05 19:02:50.448596133 +0000 +++ smstools/doc/history3.html 2020-08-05 19:02:50.440596105 +0000 @@ -2223,7 +2223,7 @@ Default value: 0.
adminmessage_count_clear = number
Default value: 0.
- With these settings sending of administrative messsages can be limited. + With these settings sending of administrative messages can be limited. adminmessage_limit, defines a maximum number of messages to be sent. adminmessage_count_clear defines a period to automatically clear the message counter. This value is number of minutes. @@ -2286,7 +2286,7 @@ Setting ms_purge_read defines if parts are read before they are deleted. If internal_combine setting is used, parts are stored to the concatenation storage. If missing part(s) are later received, there will be similar timeout before parts are purged. - After this the messsage is complete and is stored to the incoming folder. + After this the message is complete and is stored to the incoming folder.

  • New setting for a modem: read_timeout = number.
    @@ -2810,7 +2810,7 @@

  • New global setting: filename_preview = number. Defines how many characters of message text is concatenated - to the name of messsage file. Currently works with incoming message files. (3.1beta). + to the name of message file. Currently works with incoming message files. (3.1beta).

  • @@ -2921,7 +2921,7 @@
  • Modem is blocked only if sending has failed because of a modem related reason. (3.1beta).

  • -
  • "SMS sent" log information includes a message id and part information (while sending multipart messsages). (3.1beta). +

  • "SMS sent" log information includes a message id and part information (while sending multipart messages). (3.1beta).

  • Status report log information includes a message id and status value. (3.1beta). @@ -2933,7 +2933,7 @@

    Bug fixes:

      -
    1. If both received and sent PDU's were stored to the messsage files, some sent PDU's were lost if +

    2. If both received and sent PDU's were stored to the message files, some sent PDU's were lost if a message was received while the smsd was sending a multipart message. This is because the same buffer was used to store PDU's and receiving side cleaned it. Receiving and sending side now uses their own buffer to store PDU's. Index: smstools/src/extras.c =================================================================== --- smstools.orig/src/extras.c 2020-08-05 19:02:50.448596133 +0000 +++ smstools/src/extras.c 2020-08-05 19:02:50.440596105 +0000 @@ -816,7 +816,7 @@ else { // 3.1.5: This error is repeated: - snprintf(reason, sizeof(reason), "%s", "Dont know why. Check the file and directory permissions."); + snprintf(reason, sizeof(reason), "%s", "Don't know why. Check the file and directory permissions."); writelogfile0(LOG_ERR, 0, tb_sprintf("Cannot handle %s: %s", tmpname, reason)); alarm_handler0(LOG_ERR, tb); } Index: smstools/src/smsd_cfg.h =================================================================== --- smstools.orig/src/smsd_cfg.h 2020-08-05 19:02:50.448596133 +0000 +++ smstools/src/smsd_cfg.h 2020-08-05 19:45:55.000000000 +0000 @@ -94,7 +94,7 @@ #define CM_CMGL 3 #define CM_S_CMGL "CMGL is used." #define CM_CMGL_DEL_LAST 4 -#define CM_S_CMGL_DEL_LAST "CMGL is used and messages are deleted after all messsages are read." +#define CM_S_CMGL_DEL_LAST "CMGL is used and messages are deleted after all messages are read." #define CM_CMGL_CHECK 31 #define CM_S_CMGL_CHECK "CMGL is used and messages are taken from the list." #define CM_CMGL_DEL_LAST_CHECK 41 Index: smstools/scripts/sms3 =================================================================== --- smstools.orig/scripts/sms3 2020-08-05 19:02:50.448596133 +0000 +++ smstools/scripts/sms3 2020-08-05 19:02:50.440596105 +0000 @@ -112,7 +112,7 @@ echo "" dots=0 fi - echo "Timeout occured, killing $NAME hardly." + echo "Timeout occurred, killing $NAME hardly." kill -9 `ps $PSOPT | grep $NAME | grep -v grep | awk '{print $1}'` >/dev/null 2>&1 [ -f $PIDFILE ] && rm $PIDFILE seconds=0 Index: smstools/src/modeminit.c =================================================================== --- smstools.orig/src/modeminit.c 2020-08-05 19:02:50.448596133 +0000 +++ smstools/src/modeminit.c 2020-08-05 19:46:24.005736988 +0000 @@ -182,7 +182,7 @@ {38, "Network out of order"}, {41, "Temporary failure"}, {42, "Congestion"}, - {47, "Recources unavailable, unspecified"}, + {47, "Resources unavailable, unspecified"}, {50, "Requested facility not subscribed"}, {69, "Requested facility not implemented"}, {81, "Invalid short message transfer reference value"}, @@ -2270,7 +2270,7 @@ writelogfile(LOG_ERR, 0, "Couldn't resolve name '%s': %s.", hostname, (h_errno == HOST_NOT_FOUND) ? "Host not found" : ((h_errno == NO_ADDRESS) || (h_errno == NO_DATA)) ? "No data available" : - (h_errno == NO_RECOVERY) ? "A non-recoverable name server error occured" : (h_errno == TRY_AGAIN) ? "A temporary error occured." : "An unknown error occured"); + (h_errno == NO_RECOVERY) ? "A non-recoverable name server error occurred" : (h_errno == TRY_AGAIN) ? "A temporary error occurred." : "An unknown error occurred"); memcpy(&(sa.sin_addr), he->h_addr, he->h_length); Index: smstools/src/pdu.c =================================================================== --- smstools.orig/src/pdu.c 2020-07-27 19:00:41.612207583 +0000 +++ smstools/src/pdu.c 2020-08-05 19:46:50.573829910 +0000 @@ -997,7 +997,7 @@ case 1: p = "international"; break; case 2: p = "national"; break; case 3: p = "network specific"; break; - case 4: p = "subsciber"; break; + case 4: p = "subscriber"; break; case 5: p = "alphanumeric"; break; case 6: p = "abbreviated"; break; //case 7: p = "reserved"; break;