aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sms.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-08 19:08:32 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-10-08 19:08:32 +0000
commitdf67063efcefe19c287c4a9f375426f793b08ea5 (patch)
tree2a2687fb9db6217d5217e313751cfd9790c31b8d /apps/app_sms.c
parentc407ae1a7d91f8dada70b25a7a7d18dc9be7185f (diff)
Correct a typo in the help; also, ensure that the date and time are correctly
set, if not specified in the message. (Closes issue #13594, closes issue #13595) Reported by: alecdavis Patches: 20081001__bug13595.diff.txt uploaded by Corydon76 (license 14) Tested by: alecdavis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147592 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r--apps/app_sms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c
index fba111d66..8df98354f 100644
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -86,7 +86,7 @@ static char *descrip =
" t - use protocol 2 (default used is protocol 1).\n"
" p(N) - set the initial delay to N ms (default is 300).\n"
" addr and body are a deprecated format to send messages out.\n"
- " s - set the Status Report Request (SRR) bit.\n"
+ " r - set the Status Report Request (SRR) bit.\n"
" o - the body should be coded as octets not 7-bit symbols.\n"
"Messages are processed as per text file message queues.\n"
"smsq (a separate software) is a command to generate message\n"
@@ -919,6 +919,9 @@ static void sms_writefile(sms_t * h)
char buf[30];
FILE *o;
+ if (ast_tvzero(h->scts)) {
+ h->scts = ast_tvnow();
+ }
snprintf(fn, sizeof(fn), "%s/sms/%s", ast_config_AST_SPOOL_DIR, h->smsc ? h->rx ? "morx" : "mttx" : h->rx ? "mtrx" : "motx");
ast_mkdir(fn, 0777); /* ensure it exists */
ast_copy_string(fn2, fn, sizeof(fn2));