aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-23Permit emailsubject and emailbody to be set per mailbox.tilghman1-7/+26
(closes issue #14372) Reported by: fhackenberger Patches: voicemail_individual_subject_and_body_1.6.1 uploaded by fhackenberger (license 592) with additional fixes by Corydon76 (license 14) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@178107 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-20Oops, merge broke trunktilghman1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@177661 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-19Merged revisions 177536 via svnmerge from tilghman1-2/+39
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r177536 | tilghman | 2009-02-19 16:26:01 -0600 (Thu, 19 Feb 2009) | 7 lines Fix up potential crashes, by reducing the sharing between interactive and non-interactive threads. (closes issue #14253) Reported by: Skavin Patches: 20090219__bug14253.diff.txt uploaded by Corydon76 (license 14) Tested by: Skavin ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@177537 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-13Merged revisions 175590 via svnmerge from mmichelson1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r175590 | mmichelson | 2009-02-13 13:47:48 -0600 (Fri, 13 Feb 2009) | 16 lines Fix a potential crash situation when using IMAP voicemail If calling into VoiceMailMain when using IMAP storage, it was possible to crash Asterisk by hanging up the phone when prompted for a voicemail mailbox. This patch fixes the issue. While it may appear that this patch is superficial, it allows code execution to continue to the failure case just below the IMAP_STORAGE code block where this patch has been applied (closes issue #14473) Reported by: dwpaul Patches: voicemail_imap_crash_no_mailbox.patch uploaded by dwpaul (license 689) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@175591 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-10Fix0ring buildtilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@174503 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-05Properly set "seen" and "unseen" flags when moving messages from the new to ↵mmichelson1-0/+3
the old folder when using IMAP for voicemail storage (closes issue #13905) Reported by: jaroth Patches: foldermove_v2.patch uploaded by jaroth (license 50) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@173773 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-05Merged revisions 173696 via svnmerge from jpeeler1-3/+12
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r173696 | jpeeler | 2009-02-05 14:47:51 -0600 (Thu, 05 Feb 2009) | 12 lines Add new configuration option to make shared IMAP mailboxes function as expected. The new option is "imapvmshareid" which is an ID to tag multiple mailboxes using the same IMAP storage location to function as one mailbox. This allows all messages to be retrieved for any user in the group. The patch alters the 'X-Asterisk-VM-Extension' header that is responsible for matching voicemails for a given user. (closes issue #13673) Reported by: howardwilkinson ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@173697 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-01Blank argument crashes Asterisktilghman1-0/+5
(closes issue #14377) Reported by: amorsen git-svn-id: http://svn.digium.com/svn/asterisk/trunk@172741 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-23Reset the ast_str used for escape substitution. We need to do this since it ↵file1-0/+2
is a thread local variable that may contain the value of a previous substitution. (closes issue #14312) Reported by: pj git-svn-id: http://svn.digium.com/svn/asterisk/trunk@170498 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-16Merged revisions 168828 via svnmerge from tilghman1-146/+98
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r168828 | tilghman | 2009-01-16 12:41:35 -0600 (Fri, 16 Jan 2009) | 6 lines Fix the conjugation of Russian and Ukrainian languages. (related to issue #12475) Reported by: chappell Patches: vm_multilang.patch uploaded by chappell (license 8) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@168832 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-15remove the PBX_ODBC logic from the configure script, and add GENERIC_ODCB ↵kpfleming1-3/+1
logic that includes copying the relevant LIB and INCLUDE data from either UnixODBC or iODBC, based on which was found; if both were found, prefer UnixODBC this stops modules from being linked against both sets of libraries on systems that have both installed git-svn-id: http://svn.digium.com/svn/asterisk/trunk@168734 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-18Merged revisions 165767 via svnmerge from tilghman1-10/+52
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r165767 | tilghman | 2008-12-18 15:14:47 -0600 (Thu, 18 Dec 2008) | 8 lines Add mutexes around accesses to the IMAP library interface. This prevents certain crashes, especially when shared mailboxes are used. (closes issue #13653) Reported by: howardwilkinson Patches: asterisk-1.4.21.2-appvoicemail-sharedimap-lock.patch uploaded by howardwilkinson (license 590) Tested by: jpeeler ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165797 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-18Fix 2 resource leaks and fix another pipe-to-comma conversiontilghman1-5/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165658 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-17Merged revisions 165255 via svnmerge from mmichelson1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r165255 | mmichelson | 2008-12-17 14:51:38 -0600 (Wed, 17 Dec 2008) | 7 lines Fix some memory leaks found while looking at how realtime configs are handled. Also cleaned up some coding guidelines violations in app_realtime.c, mostly related to spacing ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165318 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-17And actually assign the function to a pointer...mmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165143 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-17Use the create_vm_state_from_user function in a place wheremmichelson1-18/+7
it was not being used before. Also, I've moved the urgent folder check in messagecount() up a bit so that the flow is a bit better. This was something I noticed while taking a look at issue #13973, although I don't think this is the underlying cause of the issue. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@165142 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-13Merge ast_str_opaque branch (discontinue usage of ast_str internals)tilghman1-9/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@163991 f38db490-d61c-443f-a65b-d21fe96a405b
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