[svn-commits] tilghman: trunk r147592 - /trunk/apps/app_sms.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Oct 8 14:08:33 CDT 2008
Author: tilghman
Date: Wed Oct 8 14:08:32 2008
New Revision: 147592
URL: http://svn.digium.com/view/asterisk?view=rev&rev=147592
Log:
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
Modified:
trunk/apps/app_sms.c
Modified: trunk/apps/app_sms.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_sms.c?view=diff&rev=147592&r1=147591&r2=147592
==============================================================================
--- trunk/apps/app_sms.c (original)
+++ trunk/apps/app_sms.c Wed Oct 8 14:08:32 2008
@@ -86,7 +86,7 @@
" 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 @@
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));
More information about the svn-commits
mailing list