aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2007-08-20Fix the build of app_queuerussell1-49/+49
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80088 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20After a discussion on #asterisk-dev, it was decided that this should be in ↵mmichelson1-0/+2
1.4 as well. (issue #10424, reported and patched by irroot) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80086 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Found a pointless ternary if. member->dynamic was set to 1 and has no ↵mmichelson1-1/+1
opportunity to change between then and this line, so "dynamic" will ALWAYS be output. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80049 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Ukrainian language voicemail support.mmichelson1-0/+95
(closes issue #10458, reported and patched by Oleh) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80044 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20Missing curly braces. Oops. (Reported by snuffy via IRC)tilghman1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79998 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-18Don't allocate vmu for messagecount when we could just use the stack instead ↵tilghman1-15/+2
(closes issue #10490) Also, remove a useless (and leaky) SQLAllocHandle (closes issue #10480) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79947 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-17Patch allows for more seamless transition from file storage voicemail to ↵mmichelson1-1/+11
ODBC storage voicemail. If a retrieval of a greeting from the database fails, but the file is found on the file system, then we go ahead an insert the greeting into the database. The result of this is that people who switch from file storage to ODBC storage do not need to rerecord their voicemail greetings. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79906 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16base_encode is not trying to open a log file, so we should not call it a log ↵mmichelson1-1/+1
file in the warning. (related to issue #10452, reported by bcnit) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79690 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-15Fixed an error in the Russian language voicemail intro.mmichelson1-1/+1
(issue #10458, reported and patched by Oleh) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79527 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Instead of accepting a single DTMF character accept a full string.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79334 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13Add an API call to allow the engine to know that DTMF was received.file1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79207 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Improved a bit of logic regarding comma-separated mailboxes in ↵mmichelson1-5/+11
has_voicemail. Also added some braces to some compound if statements since unbraced if statements scare me in general. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78907 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Removing some extra debug code I left in my last commitmmichelson1-7/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78860 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Quite a few changes regarding IMAP storage.mmichelson1-102/+160
1. instead of using inboxcount as the core message counting function, we use messagecount instead. This makes it possible to count messages in folders besides just INBOX and Old. 2. inboxcount and hasvoicemail now use messagecount as their means of determining return values. 3. Added a copy_message function for IMAP storage. Unfortunately I don't have the means to test it, but it seems like a pretty straightforward function. 4. Removed a #ifndef IMAP_STORAGE and matching #endif from leave_voicemail for a couple of reasons. One, we want to support copying mail to multiple IMAP boxes, and two, IMAP was broken because a STORE macro had been moved into this section of code. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78859 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09add a comment to indicate that inboxcount for ODBC_STORAGE needs to be fixed ↵russell1-0/+1
to support multiple mailboxes git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78778 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Fix subscriptions to multiple mailboxes for ODBC_STORAGE. Also, leave arussell1-10/+11
comment for this to be fixed for IMAP_STORAGE, as well. I left IMAP alone since I know MarkM was working on this code right now for another reason. This is broken even worse in trunk, but for a different reason. The fact that the mailbox option supported multiple mailboxes is completely not obvious from the code in the channel drivers. Anyway, I will fix that in another commit ... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-09Fix a problem with the combination of the 'F' option to pass DTMF through arussell1-2/+8
conference and options that use DTMF to activate various features. The problem was that the BEGIN frame would be passed through, but the END frame would get intercepted to activate a feature. Then, the other conference members would hear DTMF for forever, which they didn't seem to like very much. (closes issue #10400, reported by stevefeinstein, fixed by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78717 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Fixed some compiler warnings so that compiling with dev-mode and IMAP ↵mmichelson1-2/+4
storage would not have any errors. This section of code may get changed again shortly since my change uncovers a rather silly bit of logic. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78620 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-08Changing a bit of logic so that someone will NEVER exit the queue on timeout ↵mmichelson1-11/+8
unless they have enabled the 'n' option. This commit relates to issue #10320. Thanks to jfitzgibbon for detailing the idea behind this code change. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78575 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07The logic behind inboxcount's return value was reversed in has_voicemail and ↵mmichelson1-4/+4
message_count. (closes issue #10401, reported by st1710, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78450 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-07Reconnection doesn't happen automatically when a DB goes down (fixes issue ↵tilghman2-193/+106
#9389) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78415 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03(closes issue #10194)russell1-0/+7
Reported by: blitzrage Patches: bug0010194 uploaded by vovochka Tested by: blitzrage Fix a problem when you call Voicemail() with multiple mailboxes specified and ODBC_STORAGE is in use. The audio part of the message was only given to the first mailbox specified. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78101 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Voicemail with ODBC_STORAGE defined does not compile cleanly (missing def)tilghman1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77886 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Add some fixes for building on Solaris.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Fixes an issue I introduced to queues wherein a queue with joinempty=yes ↵mmichelson1-0/+5
would kick people out of the queue because of erroneously thinking the 'n' option was in use. (closes issue #10320, reported by jfitzgibbon, patched by me, tested by blitzrage and me) Thank you blitzrage for all the testing you've done lately with queues! It's much appreciated! git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77854 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01If a queue uses dynamic realtime members, then the member list should be ↵mmichelson1-0/+54
updated after each attempt to call the queue. This fixes an issue where if a caller calls into a queue where no one is logged in, they would wait forever even if a member logged in at some point. (closes issue #10346, reported by and tested by blitzrage, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77852 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Much newer version, 0.70 with much additionsjdixon1-1263/+4902
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77846 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30Merged revisions 77767 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r77767 | file | 2007-07-30 11:50:02 -0300 (Mon, 30 Jul 2007) | 4 lines (closes issue #10334) Reported by: ramonpeek Pass through the return value from macro_exec through the MacroIf application. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77768 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25This fix solves problem with intense squelch noise when someone joins conf ↵murf1-21/+27
in bug 9430; We repro'd the problem with meetme opts of 'CciMo'; Josh Colp supplied this patch, and I'm applying it. It looks like playing the recorded username will louse up the next thing played into the channel. Josh rearranged the code so as to start things over before playing data directly into the conference. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77191 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25(closes issue #10303)file1-2/+10
Reported by: jtodd Add SPEECH_DTMF_TERMINATOR variable so the user can specify the digit to terminate a DTMF string with. If none is specified then no terminator will be used. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77176 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24Added a membercount variable to call_queue struct which keeps track of the ↵mmichelson1-11/+19
number of logged in members in a particular queue. This makes it so that the 'n' option for Queue() can act properly depending on which strategy is used. If the strategy is roundrobin, rrmemory, or ringall, we want to ring each phone once before moving on in the dialplan. However, if any other strategy is used, we will only ring one phone since it cannot be guaranteed that a different phone will ring on subsequent attempts to ring a phone. As a side effect of this, the QUEUE_MEMBER_COUNT dialplan function now just reads the membercount variable instead of traversing through the member list to figure out how many members there are. Special thanks to blitzrage for helping to test this out. (closes issue #10127, reported by bcnit, patched by me, tested by blitzrage) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76801 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23It was our stated intention for 1.4 that files created in app_voicemail shouldtilghman1-0/+7
depend upon the umask. Unfortunately, mkstemp() creates files with mode 0600, regardless of the umask. This corrects that deficiency. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76708 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-23Allow app_morsecode to build on PPC Linux by putting the value of the digit ↵file1-2/+3
char in an int. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76618 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20When using users.conf for the entries in the directory, if multiple users ↵mmichelson1-2/+9
had the same last name, only the first user listed would be available in the directory. (closes issue #10200, reported by mrskippy, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76139 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Move makeannouncement variable declaration to proper place.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76054 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19The diff on this looks pretty big but all I did was remove a pointless if ↵mmichelson1-81/+78
statement (always evaluates true). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75978 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-19Changes in handling return values of several functions in app_queue. This ↵mmichelson1-96/+70
all started as a fix for issue #10008 but now includes all of the following changes: 1. Simplifying the code to handle positive return values from ast API calls. 2. Removing the background_file function. 3. The fix for issue #10008 (closes issue #10008, reported and patched by dimas) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75969 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75748 via svnmerge from tilghman1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75748 | tilghman | 2007-07-18 15:31:36 -0500 (Wed, 18 Jul 2007) | 2 lines Store prior to copy (closes issue #10193) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75749 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode ↵file1-6/+3
using GCC 4.2. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75712 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Merged revisions 75657 via svnmerge from dhubbard1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75657 | dhubbard | 2007-07-18 12:48:33 -0500 (Wed, 18 Jul 2007) | 1 line removed the word 'pissed' from ast_log(...) function call for BE-90 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75658 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Using a freed frame causes crashes (closes issue #9317)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75529 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Fixing an error I made earlier. ast_fileexists can return -1 on failure, so ↵mmichelson1-2/+2
I need to be sure that we only enter the if statement if it is successful. Related to my fix to issue #10186 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75405 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Restoring functionality from 1.2 wherein Retrydial will not exit if there is ↵mmichelson1-5/+16
no announce file specified. This change makes it so that if there is no announce file specified, the application will continue until finished (or caller hangs up). If a bogus announce file is specified, then a warning message will be printed saying that the file could not be found, but execution will still continue. (closes issue #10186, reported by jon, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75253 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-13Merged revisions 75066 via svnmerge from mmichelson1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75066 | mmichelson | 2007-07-13 15:10:39 -0500 (Fri, 13 Jul 2007) | 5 lines Fixed an issue where chanspy flags were uninitialized if no options were passed. What triggered this investigation was an IRC chat where some people's quiet flags were set while others' weren't even though none of them had specified the q option. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75078 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Forwarding a message with IMAP storage was storing the message in the ↵mmichelson1-1/+14
sender's box instead of the forwarded mailbox. (closes issue #10138, reported and patched by jaroth) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74476 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74427 via svnmerge from qwell1-10/+13
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74427 | qwell | 2007-07-10 14:57:20 -0500 (Tue, 10 Jul 2007) | 6 lines Fix an issue where it was possible to have a service level of over 100% Between the time recalc_holdtime and update_queue was called, it was possible that the call could have been hungup. Move both additions to the same place, so this won't happen. Issue 10158, initial patch by makoto, modified by me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74428 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74316 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74316 | qwell | 2007-07-10 10:37:54 -0500 (Tue, 10 Jul 2007) | 4 lines Fix a small typo in description in of Voicemail() application. Issue 10170, patch by casper. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74317 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Forgot to get rid of an extraneous debug message.mmichelson1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74122 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09The n option for Queue should make the queue exit immediately after failure ↵mmichelson1-12/+14
to reach any members and should not be dependent on the timeout value passed to Queue (closes issue #10127, reported by bcnit, repaired by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74120 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Fixed a logic error in leave_voicemail. Pass the mailbox instead of the ↵mmichelson1-1/+1
context to inbox_count when the context is "default." (closes issue #10135, reported by yannj, repaired by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74047 f38db490-d61c-443f-a65b-d21fe96a405b