aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
AgeCommit message (Collapse)AuthorFilesLines
2008-12-11Add an option to voicemail.conf to allow urgent messages to bemmichelson1-1/+10
forwarded as not urgent. (closes issue #14063) Reported by: jaroth Patches: urgfwd_v2.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@163213 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-10Finish conversion to using ARRAY_LEN and remove it as a janitor project.file1-1/+1
(closes issue #14032) Reported by: bkruse Patches: 14032.patch uploaded by bkruse (license 132) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162542 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-09Merged revisions 162463 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r162463 | tilghman | 2008-12-09 17:08:53 -0600 (Tue, 09 Dec 2008) | 2 lines Oops, should be "tz", not "zonetag". ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162466 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-09Merged revisions 162348 via svnmerge from tilghman1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r162348 | tilghman | 2008-12-09 15:53:25 -0600 (Tue, 09 Dec 2008) | 4 lines We appear to have documented tz= in the [general] section of voicemail.conf, without actually having implemented it. Oops. (Reported by Olivier on the -users list) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@162355 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-08Add voicemail related applications and functions XML documentation:eliel1-80/+185
applications: - VoiceMail() - VoiceMailMain() - MailboxExists() - VMAuthenticate() functions: - MAILBOX_EXISTS() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161604 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05Use ast_free() instead of free(), pointed out by eliel on IRC.seanbright1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161350 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05When using IMAP_STORAGE, it's important to convert bare newlines (\n) inseanbright1-50/+51
emailbody and pagerbody to CR-LF so that the IMAP server doesn't spit out an error. This was informally reported on #asterisk-dev a few weeks ago. Reviewed by Mark M. on IRC. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161349 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05Janitor, use ARRAY_LEN() when possible.eliel1-2/+2
(closes issue #13990) Reported by: eliel Patches: array_len.diff uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161218 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05Check the return value of fread/fwrite so the compiler doesn't complain. Only aseanbright1-2/+11
problem when IMAP_STORAGE is enabled. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161147 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-03Merged revisions 160770 via svnmerge from tilghman1-6/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r160770 | tilghman | 2008-12-03 15:54:07 -0600 (Wed, 03 Dec 2008) | 2 lines Some compilers warn on null format strings; some don't (caught by buildbot) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160791 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-02Merged revisions 160207 via svnmerge from tilghman1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r160207 | tilghman | 2008-12-01 18:25:16 -0600 (Mon, 01 Dec 2008) | 3 lines Ensure that Asterisk builds with --enable-dev-mode, even on the latest gcc and glibc. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160208 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-18Fix the logic for when delete=yes when IMAP storagemmichelson1-1/+23
is in use so that the message is deleted from both local and IMAP storage. (closes issue #13642) Reported by: jaroth Patches: deleteyes.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157562 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-14Merged revisions 156816 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r156816 | mmichelson | 2008-11-14 09:18:59 -0600 (Fri, 14 Nov 2008) | 10 lines If the prompt to reenter a voicemail password timed out, it resulted in the password not being saved, even if the input matched what you gave when first prompted to enter a new password. This is because the return value of ast_readstring was checked, but not checked properly. This bug was discovered by Jared Smith during an Asterisk training course. Thanks for reporting it! ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@156817 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-04Slightly optimize ast_devstate_str and rename global functions devstate2str ↵tilghman1-3/+3
and config_text_file_save to have an ast_ prefix git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154260 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-04improve configure script to remember the previous value of each dependency ↵kpfleming1-2/+2
in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met along the way, change tags used in configure script, menuselect-deps and code for various dependencies to be consistently named git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154151 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-03Merged revisions 154066 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r154066 | tilghman | 2008-11-03 16:27:10 -0600 (Mon, 03 Nov 2008) | 5 lines Attempting to expunge a mailbox when the mailstream is NULL will crash Asterisk. (Closes issue #13829) Reported by: jaroth Patch by: me (modified jaroth's patch) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154072 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-2/+6
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-11-02 - Use a for loop instead of a while looprussell1-24/+21
- Get rid of an unnecessary variable git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153437 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-28Merged revisions 152463 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r152463 | tilghman | 2008-10-28 17:32:34 -0500 (Tue, 28 Oct 2008) | 3 lines Quoting in the wrong direction (Fixes AST-107) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@152467 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-14Merged revisions 148987 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r148987 | tilghman | 2008-10-14 14:03:08 -0500 (Tue, 14 Oct 2008) | 2 lines Some compilers warn, some don't. Fixing. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148988 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-14Merged revisions 148916 via svnmerge from tilghman1-20/+134
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r148916 | tilghman | 2008-10-14 12:41:08 -0500 (Tue, 14 Oct 2008) | 4 lines Ensure that mail headers are 7-bit clean, even when UTF-8 characters are used in headers like 'Subject' and 'To'. Closes AST-107. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148917 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-14Merge realtime_update2 branch, which adds a new realtime API call namedtilghman1-10/+5
'update2', which permits updates which match across multiple columns, instead of requiring all tables to have a single unique identifier. All of the other API calls with the exception of 'update' already had the ability to match on multiple fields, so it was a missing and very desireable feature that an API call implementing an update should have this, too. This does not change any outward performance of Asterisk, but it should make life easier for application developers who use the RealTime framework. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148570 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-10Merged revisions 148257 via svnmerge from tilghman1-1/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r148257 | tilghman | 2008-10-10 11:25:31 -0500 (Fri, 10 Oct 2008) | 7 lines User not notified of temporary greeting, if ODBC storage is in use. (closes issue #13659) Reported by: moliveras Patches: 20081009__bug13659.diff.txt uploaded by Corydon76 (license 14) Tested by: moliveras ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148268 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-10Don't include logger.h in asterisk.h by default as it is causing problems ↵seanbright1-8/+3
building app_voicemail. Instead, include it where it is needed. This turned out to be a relatively minor issue because other headers include logger.h as well. Need to test -addons before merging this back to 1.6.0. (closes issue #13605) Reported by: tomo1657 Patches: 13605_seanbright.diff uploaded by seanbright (license 71) Tested by: mmichelson git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148200 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-09Read the callerid in the correct order and make sure tommichelson1-2/+4
read the Urgent flag value from the IMAP headers. (closes issue #13652) Reported by: jaroth Patches: imapheaders.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148144 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-09Reverting format addition for nowtilghman1-16/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148071 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-09Fudges for wav16, just like wav49tilghman1-4/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148070 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-09Merged revisions 147997 via svnmerge from tilghman1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r147997 | tilghman | 2008-10-09 14:38:33 -0500 (Thu, 09 Oct 2008) | 4 lines When blank, callerid name and number should display "unknown caller" in voicemail emails. (Closes issue #13643) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@148000 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07This was flawed. The issue that I was trying to address was addressed byseanbright1-2/+0
adding the imapsecret alias for imappassword. Will rethink this one and give it another shot on a rainy day TBD. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147265 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07Merged revisions 147193 via svnmerge from seanbright1-6/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r147193 | seanbright | 2008-10-07 12:48:30 -0400 (Tue, 07 Oct 2008) | 2 lines Make 'imapsecret' an alias to 'imappassword' in voicemail.conf. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147194 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07Or not.seanbright1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147192 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07There was a boo-boo in TFOT that is causing some confusion on the mailing listsseanbright1-0/+6
so include 'imapsecret' as an alias to 'imappassword' (and print a little notice nudging users toward the right option name). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147191 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-07If we encounter something in mailbox options that we don't grok, thenseanbright1-0/+2
spit out a warning instead of just silently ignoring it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147099 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-06All ODBC parts can now use either unixodbc or iodbc.mvanbaak1-1/+3
This allows for the ODBC parts to work on OpenBSD as well. 99.99% of the work is done by seanbright (bow, bow) and I actually did nothing but test and yell at him that it still didn't work :) Thanks for helping out ! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@146925 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-17Merged revisions 143404 via svnmerge from tilghman1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r143404 | tilghman | 2008-09-17 15:55:47 -0500 (Wed, 17 Sep 2008) | 6 lines When callerid is blank, we want to use "unknown caller" in those cases, too. (closes issue #13486) Reported by: tomo1657 Patches: 20080917__bug13486.diff.txt uploaded by Corydon76 (license 14) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@143405 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-12Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiatingtilghman1-9/+23
when a file is invalid from when a file is missing. This is most important when we have two configuration files. Consider the following example: Old system: sip.conf users.conf Old result New result ======== ========== ========== ========== Missing Missing SIP doesn't load SIP doesn't load Missing OK SIP doesn't load SIP doesn't load Missing Invalid SIP doesn't load SIP doesn't load OK Missing SIP loads SIP loads OK OK SIP loads SIP loads OK Invalid SIP loads incompletely SIP doesn't load Invalid Missing SIP doesn't load SIP doesn't load Invalid OK SIP doesn't load SIP doesn't load Invalid Invalid SIP doesn't load SIP doesn't load So in the case when users.conf doesn't load because there's a typo that disrupts the syntax, we may only partially load users, instead of failing with an error, which may cause some calls not to get processed. Worse yet, the old system would do this with no indication that anything was even wrong. (closes issue #10690) Reported by: dtyoo Patches: 20080716__bug10690.diff.txt uploaded by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142992 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-12Merged revisions 142744 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r142744 | tilghman | 2008-09-12 11:38:02 -0500 (Fri, 12 Sep 2008) | 4 lines Missing merge from 1.2 fixes errant exit on DTMF, only when language is Italian (cf commit 34242) (Closes issue #7353) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142745 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-03Fix compilationmmichelson1-5/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140887 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-03Merged revisions 140850 via svnmerge from mmichelson1-2/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r140850 | mmichelson | 2008-09-03 09:29:15 -0500 (Wed, 03 Sep 2008) | 9 lines Fix voicemail forwarding when using ODBC storage. (closes issue #13387) Reported by: moliveras Patches: 13387.patch uploaded by putnopvut (license 60) Tested by: putnopvut, moliveras ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140860 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-02Merged revisions 140751 via svnmerge from mmichelson1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r140751 | mmichelson | 2008-09-02 18:47:49 -0500 (Tue, 02 Sep 2008) | 6 lines After adding the context checking to app_voicemail for IMAP storage, I left out a crucial place to copy the context to the vm_state structure. This is the correction. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140752 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-29Merged revisions 140421 via svnmerge from mmichelson1-13/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r140421 | mmichelson | 2008-08-29 11:01:07 -0500 (Fri, 29 Aug 2008) | 12 lines Add context checking when retrieving a vm_state. This was causing a problem for people who had identically named mailboxes in separate voicemail contexts. This commit affects IMAP storage only. (closes issue #13194) Reported by: moliveras Patches: 13194.patch uploaded by putnopvut (license 60) Tested by: putnopvut, moliveras ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140422 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-10Another batch of files from RSW. The remaining apps and a few moreseanbright1-91/+91
files from main/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137089 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-08Fix compilation for ODBC voicemailmmichelson1-30/+28
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136784 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07Remove one last batch of debug messagesmmichelson1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136722 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07Fix build for non-IMAP storage and get rid of somemmichelson1-3/+3
debug messages. Thanks to eliel for alerting me. No thanks to buildbot. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136720 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07Merging the imap_consistency_trunk branch tommichelson1-1765/+1507
trunk. For an explanation of what "imap_consistency" is, please see svn revision 134223 to the 1.4 branch. Coincidentally, this also fixes a recent bug report regarding the inability to save messages to the new folder when using IMAP storage since they will would be flagged as "seen" and not be recognized as new messages. (closes issue #13234) Reported by: jaroth git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136715 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07fix some format strings to actually compile without errorskpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136477 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-04Merged revisions 135479 via svnmerge from tilghman1-11/+32
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r135479 | tilghman | 2008-08-04 11:56:19 -0500 (Mon, 04 Aug 2008) | 6 lines Memory leak on unload (closes issue #13231) Reported by: eliel Patches: app_voicemail.leak.patch uploaded by eliel (license 64) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135480 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-01IMAP-specific items must go in IMAP_STORAGE defines...mmichelson1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135068 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-01IMAP storage functioned under the assumption that foldersmmichelson1-2/+12
such as "Work" and "Family" would be subfolders of the INBOX. This is an invalid assumption to make, but it could be desirable to set up folders in this manner, so a new option for voicemail.conf, "imapparentfolder" has been added to allow for this. (closes issue #13142) Reported by: jaroth Patches: parentfolder.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135067 f38db490-d61c-443f-a65b-d21fe96a405b