Commit Graph

2511 Commits (9f123152faa3f3cf9e8d540110f9d60edf91c07f)

Author SHA1 Message Date
Mark Michelson f4663e4f22 Better quota support for using IMAP storage voicemail
18 years ago
Mark Michelson c30bab877c The mail_copy c-client function does not expect a full imap mailbox string, just the name of the mailbox.
18 years ago
Mark Michelson ad89849308 Removing a debug message I accidentally just committed
18 years ago
Mark Michelson eac09a0cd0 Fixing Portuguese syntax for saying dates and times. Also some coding guidelines cleanup.
18 years ago
Mark Michelson 2fa91746e3 We need to create the directory for a voicemail user even if they are using IMAP storage
18 years ago
Olle Johansson 517dacce70 Issue 11574: Add dependencies on res_monitor and res_features.
18 years ago
Kevin P. Fleming 627f595c58 In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
18 years ago
Mark Michelson 7f7cbe7f69 Prevent another potential fd leak
18 years ago
Mark Michelson fb077e33cb Prevent a possible fd leak.
18 years ago
Jason Parker 4a869fa0c3 Don't increment user count until after name has been recorded (if enabled).
18 years ago
Mark Michelson ef5f25b6c1 Removing an unused variable.
18 years ago
Mark Michelson c8b5d2ea03 Fixing autofill to be more accurate. Specifically, if calls ahead of the current
18 years ago
Mark Michelson 626053ac64 If there are no members in a queue, then the loop where the datastore for detecting
18 years ago
Russell Bryant 3e913c706f * Add channel locking around datastore operations that expect the channel
18 years ago
Russell Bryant d1f1b3c4d6 * Add channel locking around datastore operations that expect the channel
18 years ago
Russell Bryant c13539cb13 Don't unlock the dialed_interfaces list until we're done messing with the iterator.
18 years ago
Russell Bryant 85e0e1919d Allow dialing local channels from Queue() and Dial() again. There was a slight
18 years ago
Russell Bryant 079b4a2b18 Fix in an issue in the call forwarding handling code that was causing crashes
18 years ago
Mark Michelson ad820243bd IMAP storage did not honor the maxmsg setting in voicemail.conf, and it also had the possibility
18 years ago
Mark Michelson 41661777a4 Reverting extra stuff I didn't mean to commit
18 years ago
Mark Michelson a1a592f3f0 The 'G' option for Dial() did not properly handle the case where only a label was
18 years ago
Joshua Colp 335d271dda Fix build issue on the build cluster.
18 years ago
Mark Michelson 7b052b78e1 A big one...
18 years ago
Jason Parker 8315785663 Make sure we always close the conference fd if we have an open one.
18 years ago
Russell Bryant d208d0fc37 The other day when I went through making changes as a result of the ao2_link()
18 years ago
Russell Bryant 1f8caa100d Change the behavior of ao2_link(). Previously, in inherited a reference.
18 years ago
Mark Michelson aafa661ed7 This patch handles the case where a queue member with a negative penalty is added
18 years ago
Joshua Colp c24b0e152a Fix a few memory leaks.
18 years ago
Mark Michelson f1d612adb9 Recording greetings when using IMAP storage was causing zero-length files to be stored.
18 years ago
Russell Bryant a5c9a71b4e Instead of depending on the return value of ast_true(), explicitly set the
18 years ago
Mark Michelson a5db0a6103 Two changes with regards to the 'eventwhencalled' option of queues.conf
18 years ago
Steve Murphy 1975b6e753 closes issue #11379; OK, this is an attempt to make both sides happy. To the cdr.conf file, I added the option 'unanswered', which defaults to 'no'. In this mode, you will see a cdr for a call, whether it was answered or not. The disposition will be NO ANSWER or ANSWERED, as appropriate. The src is as you'd expect, the destination channel will be one of the channels from the Dial() call, usually the last in the list if more than one chan was specified. With unanswered set to 'yes', you will still see this cdr entry in both cases. But in the case where the dial timed out, you will also see a cdr for each line attempted, marked NO ANSWER, with no destination channel name. The new option defaults to 'no', so you don't see the pesky extra cdr's by default, and you will not see the irritating 'not posted' messages.
18 years ago
Mark Michelson 7166081028 After issuing a "say load new", if a caller hangs up during the middle of playback of a number,
18 years ago
Mark Michelson f669a1c661 After issuing a "say load new" tons of warning messages are printed
18 years ago
Joshua Colp 19fc56c14d Close the audio file before sending it to the post processing application.
18 years ago
Mark Michelson 5efa50746e Revert vmu->email back to an empty string if it was empty when imap_store_file
18 years ago
Joshua Colp 1884c603d6 When unloading app_meetme destroy any auto created contexts created by SLA.
18 years ago
Tilghman Lesher e671cb909d Currently, zero-length voicemail messages cause a hangup in VoicemailMain.
18 years ago
Mark Michelson ddc5bf5b47 Fix a small error I made in my previous commit
18 years ago
Mark Michelson d105c24a57 Changing an inaccurate debug message to be less inaccurate. Under the circumstances, this
18 years ago
Mark Michelson 891b3bab2a Make realtime queues accessible from the QUEUE_MEMBER_COUNT function.
18 years ago
Russell Bryant bd5b8a4014 Update the SLAStation application to account for the case where the SLA thread
18 years ago
Mark Michelson dc6e3e9d5d Reverting commit made in revision 89205 since it is unnecessary.
18 years ago
Mark Michelson 4155b5f984 Some sanity checking for MixMonitor. If only 1 argument is given, then the args.options
18 years ago
Mark Michelson 9f5cf47a6f I made this same adjustment in trunk to fix a bug, and it makes sense to do it in 1.4 as
18 years ago
Tilghman Lesher 45c16cc29b The member refcount must be incremented, to avoid using it after deallocation.
18 years ago
Luigi Rizzo a0edff2477 Rename ast_string_field_free_pool to ast_string_field_free_memory,
18 years ago
Joshua Colp f66e8c91ea Fix up commit for my Zap channel with spies in Meetme fix. (thanks Tony Mountifield!)
18 years ago
Joshua Colp 7ee6cdf0c7 If a Zap channel contains a spy or a spy is added take it out of the conference in kernel space and make it go through Asterisk so the spy gets audio from both sides.
18 years ago
Joshua Colp 06e768e60d Return 1.4 to a state where it builds. Changing the arguments to a function and not changing where they are used is bad, mmmk?
18 years ago
BJ Weschke c0d2b5b16d Fix issue where the recorded name wasn't getting removed correctly.
18 years ago
Mark Michelson a4c50fdd7b Removing a completely unnecessary quota check from IMAP code.
18 years ago
Joshua Colp 27ab9bdd82 Make sure res is a positive value before performing the check to determine whether the user stopped it or not.
18 years ago
Mark Michelson 222302c0a2 Account for the fact that sometimes headers may be terminated with \r\n instead of just \n
18 years ago
TransNexus OSP Development 36ffd8e75b Fixed OSP module did not report source/devinfo IP in correct format.
18 years ago
Mark Michelson c9935ba132 If a non-existent file is specified to be played either as a periodic announcement
18 years ago
Mark Michelson cb55155ef1 Changing the strategy field of the call_queue struct to be signed instead of unsigned,
18 years ago
Mark Michelson 1ced2ef939 Adding deprecated warning to monitor-join option, since the plan is to
18 years ago
Mark Michelson eb154e963c Trying to remove a non-dynamic queue member via dynamic means can lead to some
18 years ago
Russell Bryant f192689840 Remove a pointless lock.
18 years ago
Mark Michelson 661aa4ba35 Fixing a double free which happens in the statechange thread.
18 years ago
Joshua Colp ed25613860 Check to make sure a value has been given to the VMCOUNT dialplan function.
18 years ago
Russell Bryant d63883be92 Ensure that no pending state changes are leaked when the device state change
18 years ago
Russell Bryant 87dc20fc03 Previously, app_queue created a thread to handle every single device state
18 years ago
Tilghman Lesher 47b21bae6e Don't execute a gosub if the arguments is zero-len (not just NULL)
18 years ago
Mark Michelson deb480f124 A bunch of changes from sprintf to snprintf.
18 years ago
Joshua Colp 3151af0015 Close voicemail message description file if duration did not meet the minimum, or else we will eventually run out of file descriptors.
18 years ago
Mark Michelson 74cc6754af Don't allocate space for queue members unless it's needed. You end up deleting dynamic members on a reload. Not good.
18 years ago
Joshua Colp 03a7b06959 Create a duplicate of the channel's member name as the tab completion stuff will free it.
18 years ago
Russell Bryant db1ab4db58 Simplify the CAN_EARLY_BRIDGE macro a bit.
18 years ago
Joshua Colp e7f6101587 Only attempt early bridging if the options given to Dial() permit it.
18 years ago
Jason Parker f1467addf7 If # is pressed after dialing an extension in DISA, stop trying to collect more digits.
18 years ago
Russell Bryant 47dc1101eb The System() and TrySystem() applications can take a substantial amount of
18 years ago
Joshua Colp 2187f79e54 Protect the CDR record from modification by pbx_exec so that the application data contains the Queue data.
18 years ago
Russell Bryant 0728297127 Change the description of app_flash to note how it can be a useful tool instead
18 years ago
Joshua Colp 88cfb003df Initialize a variable to NULL to make the world happy.
18 years ago
Mark Michelson 3d1a567df0 Moving the logic for handling an empty membername to the create_member function so that there is a common place
18 years ago
Kevin P. Fleming a809a030d9 there is no need for conditional logic to select ->interface or ->membername, snince ->membername will always be populated
18 years ago
Russell Bryant 82a6309168 Put a memset in ast_localtime() instead of a couple places in app_voicemail
18 years ago
Russell Bryant a67e593e66 Initialize some memory to fix crashes when leaving voicemail. This problem
18 years ago
Kevin P. Fleming 43c2cf7938 fix a couple of places where a logical member name (if specified) was not used, but instead the direct interface was listed
18 years ago
Mark Michelson e53d7231dd Crap, I broke the build. Fixed.
18 years ago
Mark Michelson c7b6c42ef5 Adding member name field to manager events where they were missing before
18 years ago
Jim Dixon 903fba1b1d Fixed problem with changes made to cdr functionality
18 years ago
Jim Dixon 1a9fc13dbe Added channel driver for USB Radio device and
18 years ago
Mark Michelson d6b1a0bfd6 Preemptively fixing a possible segfault. It is possible that queuename is NULL
18 years ago
Mark Michelson 1cf6ee98e0 Added logic to handle the unlikely case that someone has two queues with the same name.
18 years ago
Dwayne M. Hubbard e2611d2f54 remove a race condition for the creation of recordthread's, and fix a small memory leak. This closes issue# 10636
18 years ago
Mark Michelson 39d628adcf Accidentally committed changes to app_voicemail which do NOT need to be in the 1.4 branch yet. reverting...
18 years ago
Mark Michelson da18cece2c We should only initialize a realtime queue when it is allocated, not every time we access it. This prevents the members ao2_container
18 years ago
Russell Bryant 3e11102ef8 Fix incorrect uses of ao2_find(). Every one of these calls was reading bogus
18 years ago
Russell Bryant 56b7a100bc Fix another missing unref of member objects. This one was pointed out by Marta.
18 years ago
Mark Michelson 4f36c859ad All instances of ao2_iterators which were just named 'i' have been renamed
18 years ago
Russell Bryant 808ed0e44e Add a couple more missing unrefs of queue member objects
18 years ago
Russell Bryant aa3a71d3bf Add a missing unref of a queue member in an error handling block
18 years ago
Russell Bryant ffa6e7123b Document why membercount can not simply be replaced by ao2_container_count()
18 years ago
Tilghman Lesher 4913548485 Convert struct member to use refcounts (closes issue #10199)
18 years ago
Jason Parker d73c04d892 Allow the MEMBERINTERFACE variable to be used as the mixmonitor filename.
18 years ago
Joshua Colp e73fa2ba6f (closes issue #10122)
18 years ago
Mark Michelson 76ffc54255 Fixes an issue where valid DTMF had to be pressed twice to exit a queue if a member's phone
18 years ago
Mark Michelson fbbf1e2056 Fixing the build...
18 years ago
Mark Michelson f5cc747662 Reverting behavior of QUEUE_MEMBER_COUNT to only count members who are logged in
18 years ago
Jason Parker e805ee3d40 Rather than attempt to play a file, we can just check whether it exists.
18 years ago
Mark Michelson 6ed2b5c1b2 Changed a comment to be more accurate.
18 years ago
Mark Michelson 687f798f19 Fixed broken behavior of a reload on realtime queues. Prior to this patch, if a reload was issued and
18 years ago
Jason Parker 86c32ff0ef Re-order dial options to be in line with the existing alpha order.
18 years ago
Mark Michelson 0589a7e1d0 Removing an extraneous (and possibly misleading) log message. Firstly, if the announce file isn't found, the
18 years ago
Mark Michelson 4c16fcaa97 Changed some manager event messages to reflect whether a queue member is a realtime member or not
18 years ago
Mark Michelson dbe2d229a5 This patch, in essence, will correctly pause a realtime queue member and reflect those
18 years ago
Mark Michelson 872ab1519e Changed some tabs to spaces
18 years ago
Mark Michelson 2772c71560 This fix creates a more accurate way of detecting whether realtime members were deleted.
18 years ago
Mark Michelson 214d980f86 Resolve a potential deadlock. In this case, a single queue is locked, then the queue list. In changethread(), the queue list is
18 years ago
Mark Michelson fe5489eead Found a case where the queue's membercount is off. It does not take into account dynamic members on a reload.
18 years ago
Dwayne M. Hubbard 5155d31036 An empty string is an empty callerid ... so zap it. This closes issue #10502, which was pointed out by dswartz. Thank you, and may the swartz be with you
18 years ago
BJ Weschke 318f0f6e46 A minor correction to the available logic of autofill. If a queue member is paused, they're not really "available" so don't count them as such. Somewhat related to issue #10155
18 years ago
Mark Michelson 09fc9c894e Fix a possible crash in IMAP voicemail.
18 years ago
Russell Bryant 108326e3d1 Fix the build of app_queue
18 years ago
Mark Michelson 6268d2d7ec After a discussion on #asterisk-dev, it was decided that this should be in 1.4 as well.
18 years ago
Mark Michelson d66e174242 Found a pointless ternary if. member->dynamic was set to 1 and has no opportunity to change
18 years ago
Mark Michelson 7c7ec6a1da Ukrainian language voicemail support.
18 years ago
Tilghman Lesher e6768adf1b Missing curly braces. Oops. (Reported by snuffy via IRC)
18 years ago
Tilghman Lesher d0469e3c42 Don't allocate vmu for messagecount when we could just use the stack instead (closes issue #10490)
18 years ago
Mark Michelson 403ee9194c Patch allows for more seamless transition from file storage voicemail to ODBC storage voicemail.
18 years ago
Mark Michelson ec2f24b901 base_encode is not trying to open a log file, so we should not call it a log file in the warning.
18 years ago
Mark Michelson 176f95680b Fixed an error in the Russian language voicemail intro.
18 years ago
Joshua Colp 924c88d3d0 Instead of accepting a single DTMF character accept a full string.
18 years ago
Joshua Colp 4f8857d608 Add an API call to allow the engine to know that DTMF was received.
18 years ago
Mark Michelson 7133eb1368 Improved a bit of logic regarding comma-separated mailboxes in has_voicemail. Also added some braces to some compound if statements
18 years ago
Mark Michelson 48d9158cdd Removing some extra debug code I left in my last commit
18 years ago
Mark Michelson fd5f948092 Quite a few changes regarding IMAP storage.
18 years ago
Russell Bryant f2bf48ce42 add a comment to indicate that inboxcount for ODBC_STORAGE needs to be fixed to support multiple mailboxes
18 years ago
Russell Bryant e019aff438 Fix subscriptions to multiple mailboxes for ODBC_STORAGE. Also, leave a
18 years ago
Russell Bryant 1996c3a71d Fix a problem with the combination of the 'F' option to pass DTMF through a
18 years ago
Mark Michelson c97cdff67d Fixed some compiler warnings so that compiling with dev-mode and IMAP storage would not have any errors.
18 years ago
Mark Michelson f8c70a5799 Changing a bit of logic so that someone will NEVER exit the queue on timeout unless they have enabled the 'n' option.
18 years ago
Mark Michelson dcfb651931 The logic behind inboxcount's return value was reversed in has_voicemail and message_count.
18 years ago
Tilghman Lesher 57996e930e Reconnection doesn't happen automatically when a DB goes down (fixes issue #9389)
18 years ago
Russell Bryant 76f4f0218c (closes issue #10194)
18 years ago
Tilghman Lesher 9b71e8eef2 Voicemail with ODBC_STORAGE defined does not compile cleanly (missing def)
19 years ago
Joshua Colp 68c221f69a Add some fixes for building on Solaris.
19 years ago
Mark Michelson 5739eba48e Fixes an issue I introduced to queues wherein a queue with joinempty=yes would kick people out of the queue because of erroneously
19 years ago
Mark Michelson 7e6f78d95e If a queue uses dynamic realtime members, then the member list should be updated after each attempt to call the queue.
19 years ago
Jim Dixon 93c169da6f Much newer version, 0.70 with much additions
19 years ago
Joshua Colp ef742da9a6 Merged revisions 77767 via svnmerge from
19 years ago
Steve Murphy 17e2aff7de This fix solves problem with intense squelch noise when someone joins conf 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.
19 years ago
Joshua Colp 7bd5646815 (closes issue #10303)
19 years ago
Mark Michelson ad4eb1b347 Added a membercount variable to call_queue struct which keeps track of the number of logged in members in a particular queue.
19 years ago
Tilghman Lesher 3630b5e477 It was our stated intention for 1.4 that files created in app_voicemail should
19 years ago
Joshua Colp 1fc0771298 Allow app_morsecode to build on PPC Linux by putting the value of the digit char in an int.
19 years ago
Mark Michelson 7fd9d67e7a When using users.conf for the entries in the directory, if multiple users had the same last name, only the first user listed would be available
19 years ago