aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sms.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-30Merged revisions 289424 via svnmerge from russell1-0/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r289424 | russell | 2010-09-30 10:34:29 -0500 (Thu, 30 Sep 2010) | 8 lines Fix a crash in app_sms. Since the data being passed to the generator callback is on the stack of the SMS() application, we must ensure that the generator is stopped before the application exits. ABE-2587 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@289425 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10AST-2009-005tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@211580 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-30Merged revisions 209554 via svnmerge from dbrooks1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ........ r209554 | dbrooks | 2009-07-30 11:07:05 -0500 (Thu, 30 Jul 2009) | 6 lines Fixes numerous spelling errors. Patch submitted by alecdavis. (closes issue #15595) Reported by: alecdavis ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@209594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-07Introduce SMS() application XML documentation.eliel1-28/+50
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161571 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-02bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 ↵kpfleming1-1/+3
branch, and add the ones needed for all the new code here too git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153616 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-16Answer the channel prior to checking for the 'a'mmichelson1-4/+4
option in app_sms. (closes issue #13675) Reported by: alecdavis Patches: app_sms.bug13675.148985.diff.txt uploaded by alecdavis (license 585) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150257 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-14App is ignoring 'p' parameter -- initial pause.tilghman1-394/+495
(closes issue #13617) Reported by: alecdavis Patches: app_sms.13oct.diff.txt uploaded by alecdavis (license 585) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148985 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-08Correct a typo in the help; also, ensure that the date and time are correctlytilghman1-1/+4
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
2008-10-01Initializing buffer prevents a segfault when arguments are incomplete.tilghman1-1/+1
(closes issue #13471) Reported by: alecdavis Patches: 20080916__bug13471.diff.txt uploaded by Corydon76 (license 14) Tested by: alecdavis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@145428 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-10More RSW merges. Everything from apps/ except for the big offendersseanbright1-19/+19
app_voicemail and app_queue. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137055 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-22- revert change to ast_queue_hangup and create ast_queue_hangup_with_causemvanbaak1-2/+2
- make data member of the ast_frame struct a named union instead of a void Recently the ast_queue_hangup function got a new parameter, the hangupcause Feedback came in that this is no good and that instead a new function should be created. This I did. The hangupcause was stored in the seqno member of the ast_frame struct. This is not very elegant, and since there's already a data member that one should be used. Problem is, this member was a void *. Now it's a named union so it can hold a pointer, an uint32 and there's a padding in case someone wants to store another type in there in the future. This commit is so massive, because all ast_frame.data uses have to be altered to ast_frame.data.data Thanks russellb and kpfleming for the feedback. (closes issue #12674) Reported by: mvanbaak git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-25Whitespace changes onlytilghman1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114667 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11Merged revisions 107464 via svnmerge from kpfleming1-3/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r107464 | kpfleming | 2008-03-11 09:53:03 -0500 (Tue, 11 Mar 2008) | 2 lines fix various other problems found by gcc 4.3 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107466 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11Merged revisions 107461 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r107461 | kpfleming | 2008-03-11 09:33:45 -0500 (Tue, 11 Mar 2008) | 2 lines stop checking for mktime() in the configure script... we don't use it, and the test is buggy under gcc 4.3 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107462 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21remove another set of redundant #include "asterisk/options.h"rizzo1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89512 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20move asterisk/paths.h outside asterisk.h and into those filesrizzo1-0/+1
who really need it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89466 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19include "logger.h" and errno.h from asterisk.h - usage shows that theyrizzo1-2/+0
were included almost everywhere. Remove some of the instances. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-17another cygwin compatibility fix.rizzo1-1/+1
This one must be handled in a better way in configure, also for other architectures git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89374 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Start untangling header inclusion in a way that does not affectrizzo1-5/+0
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06"show application <foo>" changes for clarity.mmichelson1-7/+7
(closes issue #11171, reported and patched by blitzrage) Many thanks! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89044 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-12Merged revisions 82285 via svnmerge from tilghman1-15/+15
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82285 | tilghman | 2007-09-12 15:12:06 -0500 (Wed, 12 Sep 2007) | 4 lines Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we updated the localtime.c file from source. Next we'll have to write ast_strptime to match. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82290 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Mostly cleanup of documentation to substitute the pipe with the comma, but a ↵tilghman1-1/+1
few other formatting cleanups, too. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26Do a massive conversion for using the ast_verb() macrorussell1-19/+11
(closes issue #10277, patches by mvanbaak) Basically, this changes ... if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3, "Something\n"); to ... ast_verb(3, "Something\n"); git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merge in ast_strftime branch, which changes timestamps to be accurate to the ↵tilghman1-12/+16
microsecond, instead of only to the second git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Applications no longer need to call ast_module_user_add and ↵file1-3/+0
ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75200 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16It is no longer required for each module that deals with a channel to call ↵file1-7/+1
ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28move variable declarations to the beginning of a block.rizzo1-2/+4
Not applicable to previous branches. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72457 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Code cleanupstilghman1-344/+345
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71190 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Issue 9990 - New API ast_mkdir, which creates parent directories as ↵tilghman1-8/+4
necessary (and is faster than an outcall to mkdir -p) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71040 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27From coding guidelines:oej1-4/+2
Comments should explain what the code does, not when something was changed or who changed it. If you have done a larger contribution, make sure that you are added to the CREDITS file. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48984 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-22improve readability of a few macros.rizzo1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48857 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21make sms_hexdump() thread safe;rizzo1-212/+224
restructure and reduce indentation on some blocks. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48844 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21make isodate thread-saferizzo1-15/+18
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21- use the standard option parsing routines;rizzo1-70/+123
- document existing but undocumented parameters to send a message (untested but unchanged; - ad a new option p(N) to set the initial message delay to N ms so this can be adapted from the dialplan to various countries; git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48825 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21put generator functions next to each other.rizzo1-16/+23
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48768 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21a quick fix to app_sms.c to get rid of cursed compiler warnings so I can ↵murf1-4/+4
compile under --enable-dev-mode git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48767 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21reduce indentationrizzo1-100/+97
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48752 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21restructure a block to reduce nestingrizzo1-99/+98
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48750 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21Add a bit of documentation on this code, including pointersrizzo1-36/+376
to relevant documents and comment on timing issues. Initial merge of the code in http://bugs.digium.com/view.php?id=8586 by Filippo Grassilli (Hyppo) to support the SMS Protocol 2. In this commit i have tried to minimize the diffs, so further code cleanup will come in subsequent commits. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48736 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-20more formatting cleanup.rizzo1-39/+45
Move some code into a function sms_compose1() in preparation for supporting protocol 2 as well. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48599 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19formatting and code cleanup.rizzo1-100/+85
Still a lot of copy&pasted code here... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19start documenting this code.rizzo1-11/+28
On passing, fix the bogus datalen on outgoing frames just fixed in 1.4 rev.48583 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48588 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-02Doxygenificationoej1-43/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48206 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13Merged revisions 47551 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r47551 | file | 2006-11-13 12:08:07 -0500 (Mon, 13 Nov 2006) | 10 lines Merged revisions 47549 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r47549 | file | 2006-11-13 12:05:32 -0500 (Mon, 13 Nov 2006) | 2 lines When sending an SMS with a user data header properly set the UDH flag in the first byte. (issue #8347 reported by hoffmeis) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-26fix various spelling mistakes in comments (issue #8237, jmls)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46339 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-25Merged revisions 46200 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r46200 | kpfleming | 2006-10-25 09:32:08 -0500 (Wed, 25 Oct 2006) | 2 lines apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46201 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29suppress compiler warningqwell1-1/+2
Code shamelessly borrowed from r41271 (it was the same warning/fix) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41274 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-26/+13
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-14Merged revisions 37612 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37612 | tilghman | 2006-07-14 08:31:11 -0500 (Fri, 14 Jul 2006) | 2 lines Bug 7526 - previous commit broke app_sms ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37613 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-07pointer signedness warnings cleanuprussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37295 f38db490-d61c-443f-a65b-d21fe96a405b