Commit Graph

888 Commits (522593f901baff3f1ba334ecaad9eefd6a9c9316)

Author SHA1 Message Date
Jason Parker e785520eb9 Correctly document state interface for AddQueueMember. Discovered while looking at issue #12626.
17 years ago
Mark Michelson c854ba85a5 Merged revisions 115320 via svnmerge from
17 years ago
Dwayne M. Hubbard 8fdea12f33 app_queue uses a taskprocessor for device state changes
17 years ago
Tilghman Lesher b5a127daac Modify TIMEOUT() to be accurate down to the millisecond.
17 years ago
Mark Michelson e37dafdd3a Adding new configuration options to app_queue. This adds two new values
17 years ago
Mark Michelson 6447280c2f Merged revisions 114848 via svnmerge from
17 years ago
Tilghman Lesher 463a5dbd0a Whitespace changes only
17 years ago
Michiel van Baak 08e674bce0 Pass the hangup cause all the way to the calling app/channel.
17 years ago
Mark Michelson 14fc93e721 Merged revisions 114628 via svnmerge from
17 years ago
Jason Parker 6f549bc324 Allow setqueuevar=yes (et al) to work, after changes to pbx_builtin_setvar()
17 years ago
Jason Parker f6cfccbc07 Merged revisions 114133 via svnmerge from
17 years ago
Mark Michelson df7cb6b30b Merged revisions 114112 via svnmerge from
17 years ago
Mark Michelson 9bd9421c83 Fix a crash that happened due to accessing free'd memory
17 years ago
Mark Michelson b95d24ea47 Merged revisions 112393 via svnmerge from
17 years ago
Joshua Colp cafce80cd5 Forgetting to unregister a manager action is bad, mmmk?
17 years ago
Mark Michelson 0f8f6e239e Fix a crash that would happen when attempting to unload the app_queue module.
17 years ago
Mark Michelson 994d025523 Merged revisions 109713 via svnmerge from
17 years ago
Mark Michelson cd7efcf4e7 Add option 'randomperiodicannounce' to queues.conf. Setting this will
17 years ago
Terry Wilson b02bc230af Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
17 years ago
Mark Michelson 9c876e801f app_queue has now been doxygenified thanks to snuffy! The ony thing I changed
17 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
17 years ago
Russell Bryant 5403b28778 - simplify a few statements with ARRAY_LEN()
17 years ago
Tilghman Lesher 7007c565fe Fix minor misuses of snprintf
17 years ago
Mark Michelson f0379886c5 Merged revisions 105059 via svnmerge from
17 years ago
Mark Michelson caeb435271 Merged revisions 103956 via svnmerge from
17 years ago
Jason Parker 72bc8a7c7d Fix up some doxygen issues.
17 years ago
Mark Michelson 44810652d6 Change the queue holdtime announcement to happen at any interval (not just greater than two minutes). Remove
17 years ago
Mark Michelson 84ecef76b8 Fix improper indentation. Thanks again to snuffy for pointing it out.
17 years ago
Mark Michelson cd02fd2763 Add a couple of comments to clarify the unreffing of queues.
17 years ago
Mark Michelson 52595c5d30 Forgot that AST_LIST_REMOVE_CURRENT takes different arguments in trunk than 1.4.
17 years ago
Mark Michelson ba003e415b Merged revisions 103120 via svnmerge from
17 years ago
Mark Michelson f26fd8dac4 Add the channel's unique id to the AgentCalled manager event to make it more consistent
17 years ago
Mark Michelson 267220d043 Remove an extra debug message I left in
17 years ago
Mark Michelson b0999f3bfa Forgot an !
18 years ago
Mark Michelson 19d8ce4033 A change I made to accommodate the "linear" strategy in trunk caused queue strategies to
18 years ago
Mark Michelson 815658d35e Handle the case of a NULL state_interface when checking a realtime member.
18 years ago
Mark Michelson 28b48d2214 Merged revisions 101216 via svnmerge from
18 years ago
Mark Michelson b719c2e5d2 Merged revisions 101035 via svnmerge from
18 years ago
Mark Michelson 105e0f6cf8 Merged revisions 100973 via svnmerge from
18 years ago
Mark Michelson 81fb790419 Insure that we are not going to pass a NULL pointer to add_to_interfaces.
18 years ago
Mark Michelson 6d57a8c873 Adding the QUEUENAME variable to the variables set using the setqueuevar option
18 years ago
Mark Michelson 3d022ccfec state_interface could be NULL, so use the never-NULL cur->state_interface for this check
18 years ago
Mark Michelson 9c39ec55d8 Get the device state of the state interface instead of the interface when creating a new queue member.
18 years ago
Mark Michelson 7cd98338fd Merged revisions 98737 via svnmerge from
18 years ago
Mark Michelson ef7c382507 Merged revisions 98733 via svnmerge from
18 years ago
Mark Michelson 87b92b1020 Merged revisions 97575 via svnmerge from
18 years ago
Mark Michelson c1eaacc3df Merged revisions 97308 via svnmerge from
18 years ago
Mark Michelson 925d9ffa47 Merged revisions 97304 via svnmerge from
18 years ago
Terry Wilson 12964661f2 Initialize new variable to NULL
18 years ago
Mark Michelson 427f17fd9d Adding the option of specifying a second interface in a member definition for a queue. app_queue
18 years ago
Joshua Colp fb2aef67b9 Merged revisions 97093 via svnmerge from
18 years ago
Mark Michelson b7f3b78031 Merged revisions 96102 via svnmerge from
18 years ago
Mark Michelson 80c479f94e Since ',' is the standard argument separator in trunk, change app_queue
18 years ago
Mark Michelson e0e6e81477 Merged revisions 95890 via svnmerge from
18 years ago
Mark Michelson c540b02f6f The diff for this change looks really bad, but all I did here was decrease the indentation of most
18 years ago
Mark Michelson af080add62 Merged revisions 95095 via svnmerge from
18 years ago
Luigi Rizzo 5e041a46dc NULL does not need to be cast to (char *)
18 years ago
Mark Michelson e0b9943818 Fix a memory leak when reloading queue rules.
18 years ago
Mark Michelson c1fac2d834 Merged revisions 94464 via svnmerge from
18 years ago
Mark Michelson 2e6431c42a Merged revisions 94420 via svnmerge from
18 years ago
Mark Michelson 88f27c8279 Moved the update of the queue_ent's rule list to just before we try to call
18 years ago
Mark Michelson b489558138 Merging the queue-penalty branch. In short, this allows one to dynamically adjust
18 years ago
Mark Michelson c848e480c9 1. Unify the check for a penalty < 0 into the set_member_penalty code.
18 years ago
Olle Johansson f3471c1652 Merged revisions 93182 via svnmerge from
18 years ago
Mark Michelson c3f89eab8f Removing some leftover debug messages from a while back.
18 years ago
Mark Michelson a43dd8acb3 Merged revisions 92443 via svnmerge from
18 years ago
Mark Michelson dea49116ee Merged revisions 92323 via svnmerge from
18 years ago
Mark Michelson 8bf68432a0 Merged revisions 92202 via svnmerge from
18 years ago
Russell Bryant bfd58d8c2a Merged revisions 91780 via svnmerge from
18 years ago
Russell Bryant c72fa81580 Merged revisions 91677 via svnmerge from
18 years ago
Russell Bryant 135f315382 Merged revisions 91675 via svnmerge from
18 years ago
Mark Michelson 5d1fb935ba Wrong locking style got merged from 1.4 to trunk. My mistake.
18 years ago
Mark Michelson c52d8a1cd5 Merged revisions 90735 via svnmerge from
18 years ago
Olle Johansson 4d2368f202 (closes issue #11431)
18 years ago
Russell Bryant 0f5117be2e Merged revisions 90470 via svnmerge from
18 years ago
Mark Michelson 6b08c442c7 Adding support for the "automixmonitor" dial and queue options.
18 years ago
Russell Bryant fac7480820 Merged revisions 90348 via svnmerge from
18 years ago
Mark Michelson 4ed5336a45 Merged revisions 90163 via svnmerge from
18 years ago
Joshua Colp 48da910225 Merged revisions 90101 via svnmerge from
18 years ago
Russell Bryant 63bca744a2 Merged revisions 89844 via svnmerge from
18 years ago
Mark Michelson ba7f5fec38 Merged revisions 89837 via svnmerge from
18 years ago
Joshua Colp 0619fb1248 Perform some module use counting audits. This is now done outside the scope of the application/dialplan function so they do not need to worry about it.
18 years ago
Steve Murphy 86476c607f closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
18 years ago
Luigi Rizzo 7e8835e0d7 remove another set of redundant #include "asterisk/options.h"
18 years ago
Mark Michelson ffa8035212 Merged revisions 89495 via svnmerge from
18 years ago
Mark Michelson 9c275b0e51 Merged revisions 89493 via svnmerge from
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Mark Michelson 2f7440932c Merged revisions 89323 via svnmerge from
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Russell Bryant 31512895ae Instead of reserving 800 bytes for periodic announcements, use an array of
18 years ago
Russell Bryant 76696ac65f Convert most of the strings in the call_queue struct to use stringfields.
18 years ago
Steve Murphy 98429d37b2 Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Tilghman Lesher 97744f54e7 Merged revisions 89093 via svnmerge from
18 years ago
Mark Michelson 0cd3118a62 Adding the queue strategy wrandom
18 years ago
Mark Michelson 01e1f6cc94 Added CLI and manager commands for changing a queue member's penalty
18 years ago
Steve Murphy 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Mark Michelson 3ffc123db9 Adding the more flexible QUEUE_MEMBER function to replace the QUEUE_MEMBER_COUNT function.
18 years ago
Mark Michelson cf861b38c7 Added queue strategy "linear". This strategy is useful for those who always wish for their
18 years ago
Mark Michelson a8cc80e36d Adding the general option "shared_lastcall" to queues so that a member's wrapuptime
18 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Mark Michelson 934b814add Merged revisions 86328 via svnmerge from
18 years ago
Mark Michelson 37c1943b87 Changed some spaces to tabs
18 years ago
Mark Michelson d1a0d959a7 Merged revisions 86202 via svnmerge from
18 years ago
Mark Michelson c438d76551 Removed the monitor-join option. If one wishes to mix audio, they should instead use
18 years ago
Mark Michelson a39404fed2 Fixing the build.
18 years ago
Mark Michelson bece7e24f2 Merged revisions 85958 via svnmerge from
18 years ago
Russell Bryant a586d03231 Merged revisions 85720 via svnmerge from
18 years ago
Mark Michelson fbcd884e1b Allow for the position announcement to be turned off if desired.
18 years ago
Mark Michelson 310cfd3280 Patch to add one-touch parking for queues.
18 years ago
Mark Michelson 23ebcbc370 A two-in-one patch from the bugtracker
18 years ago
Mark Michelson 43e2818750 Merged revisions 84692 via svnmerge from
18 years ago
Joshua Colp e835dd12e4 Merged revisions 84637 via svnmerge from
18 years ago
Mark Michelson 2d95565f53 interface_exists_global was never returning 1. Most likely an error from my merge on Friday.
18 years ago
Tilghman Lesher b88902639a Fix some areas where we were still using '|' for an argument delimiter (closes issue #10793)
18 years ago
Russell Bryant e5c12bcf62 Update app_queue to use commas as application argument separators.
18 years ago
Mark Michelson 25763e2573 Merging changes from queue_refcount_trunk into trunk. Refcounted queues now in place.
18 years ago
Jason Parker ac5332c674 More conversions to NEW_CLI
18 years ago
Joshua Colp 39a6ecc228 Merged revisions 83074 via svnmerge from
18 years ago
Joshua Colp bd8414eff6 Merged revisions 82961 via svnmerge from
18 years ago
Mark Michelson b33123cf87 Merged revisions 82865 via svnmerge from
18 years ago
Kevin P. Fleming ef87383055 Merged revisions 82834 via svnmerge from
18 years ago
Jason Parker 9a5f7c5764 (closes issue #10755)
18 years ago
Russell Bryant 9388173f85 Make the MALLOC_DEBUG output for free() useful again. After changing calls to
18 years ago
Kevin P. Fleming 6cdc9ced97 Merged revisions 82590,82592 via svnmerge from
18 years ago
Mark Michelson 38460271f2 Merged revisions 82396 via svnmerge from
18 years ago
Mark Michelson 899ddcee92 Changed "in" to "queue" in "queue {pause|unpause} member" command to be more clear.
18 years ago
Mark Michelson eb39b71fba Added the ability to pause and unpause members via the CLI
18 years ago
Mark Michelson c04887e428 Merged revisions 82346 via svnmerge from
18 years ago
Mark Michelson 10d22b6e13 Merged revisions 82326 via svnmerge from
18 years ago
Russell Bryant a0e8ee0a3d Fix a missing unref of a member struct. This was pointed out by Marta. Thanks!
18 years ago
Mark Michelson 25e4377167 Removed an unneeded ao2_ref. This was a problem because unless get_member_status returned QUEUE_NORMAL, a NULL member
18 years ago
Mark Michelson 8cd1f2effc Merged revisions 82274 via svnmerge from
18 years ago
Russell Bryant 38c2cd05fa Merged revisions 82267 via svnmerge from
18 years ago
Russell Bryant c0bcb9f218 Merged revisions 82263 via svnmerge from
18 years ago
Mark Michelson 88a1ae75d5 Merged revisions 82252 via svnmerge from
18 years ago
Russell Bryant 20288b58af Merged revisions 82240 via svnmerge from
18 years ago
Russell Bryant 74044bbb88 Merged revisions 82238 via svnmerge from
18 years ago
Russell Bryant 02c8ceb4e5 Merged revisions 82236 via svnmerge from
18 years ago
Mark Michelson ef2856adf0 Fixing a problem where NULL channels would cause a crash when calling indisposed queue members (i.e. paused, wrapup time not completed, etc.)
18 years ago
Tilghman Lesher e558260746 Merged revisions 82155 via svnmerge from
18 years ago
Jason Parker ce12177952 Merged revisions 81923 via svnmerge from
18 years ago
Jason Parker 00da8c6dc7 Add an optional reason parameter to PauseQueueMember/UnpauseQueueMember applications and manager events.
18 years ago
Mark Michelson ba8c1b5243 Merged revisions 81713 via svnmerge from
18 years ago
Mark Michelson e9548619cf Not having this epoll specific code in wait_for_answer was causing app_queue to infinitely loop.
18 years ago
Mark Michelson 504f8a09af Weird. When I merged my changes from 1.4, they merged into the wrong function.
18 years ago
Mark Michelson 2b60033542 Merged revisions 81525 via svnmerge from
18 years ago
Mark Michelson 3d62457e96 Merged revisions 81520 via svnmerge from
18 years ago
Mark Michelson a748fc6647 Merged revisions 81416 via svnmerge from
18 years ago
Mark Michelson ac9c53375f Merged revisions 81397 via svnmerge from
18 years ago
Mark Michelson 2d828f3308 Merged revisions 81381 via svnmerge from
18 years ago
Mark Michelson 639b4aacce Added the MEMBERREALTIME variable when using setinterfacevar in queues.conf
18 years ago
Mark Michelson faeaff33bb Merged revisions 81349 via svnmerge from
18 years ago
Mark Michelson b823b635ac Merged revisions 81346 via svnmerge from
18 years ago
Mark Michelson a9bec2f669 Merged revisions 81340 via svnmerge from
18 years ago
Mark Michelson 8176c0ee7c Merged revisions 81158 via svnmerge from
18 years ago
Mark Michelson cea7b885d9 Merged revisions 81010 via svnmerge from
18 years ago
Russell Bryant e5b801c419 use ast_strlen_zero
18 years ago
BJ Weschke eb0e0ec33f Merged revisions 80818 via svnmerge from
18 years ago
Mark Michelson e9a50d1f15 Merged revisions 80049 via svnmerge from
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Mark Michelson 8d929d7afd Allow non-realtime queues to have realtime members
18 years ago
Mark Michelson 2f88ff4599 Merged revisions 78575 via svnmerge from
18 years ago
Jason Parker 1bf5335f00 Add the Ring time in the CONNECT on the queue_log and on the Manager event AgentConnect
18 years ago
Russell Bryant 4e0947c5f1 Convert code that checks the _softhangup member of ast_channel directory to use
18 years ago
Mark Michelson 04ca0b9728 Merged revisions 77854 via svnmerge from
18 years ago
Mark Michelson 9aee2bf6c7 Merged revisions 77852 via svnmerge from
18 years ago
Tilghman Lesher 20bbd09de3 Mostly cleanup of documentation to substitute the pipe with the comma, but a few other formatting cleanups, too.
18 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
18 years ago
Mark Michelson c3a92f402f Merged revisions 76801 via svnmerge from
18 years ago
Tilghman Lesher 55b1ee298e Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
18 years ago
Steve Murphy ffd49bc066 One small documentation update made to accompany 10154, the upgrading of the queue ringing to allow periodic announcments
18 years ago
Steve Murphy 5c6d509591 This update was supplied in 10154; to allow announcemnts if the 'r' option (ringing) is provided.
18 years ago
Steve Murphy 7756ba6619 This repairs a 'warning: ISO C90 forbids mixed declarations and code' message that cripples my dev-mode enabled build
18 years ago
Mark Michelson 51fa94c6f5 Merged revisions 75978 via svnmerge from
18 years ago
Mark Michelson 3dcce46f69 Merged revisions 75969 via svnmerge from
18 years ago
Dwayne M. Hubbard b96fde308c Merged revisions 75658 via svnmerge from
18 years ago
Joshua Colp b8cd949cce Applications no longer need to call ast_module_user_add and ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application.
18 years ago
Joshua Colp 96a646734f It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
18 years ago
Jason Parker 6f8294847f Merged revisions 74428 via svnmerge from
18 years ago
Jason Parker 76e2e39f77 Fix building that was broken by recent monitor.h changes. Thanks Russell for pointing this out (and pointing out what I probably did to prevent gcc from fixing it - don't ctrl-C builds)
18 years ago
Mark Michelson ab398473a0 Merged revisions 74120 via svnmerge from
18 years ago
Russell Bryant 262dfb44cd Add Queue and DestinationChannel headers to the AgentCalled manager event
18 years ago
Jason Parker 25b941b238 Add the ability to play an announcement to queue caller just before bridging
18 years ago
Mark Michelson 850287e46d Merged revisions 73400 via svnmerge from
18 years ago
Joshua Colp 758873a068 Merged revisions 73316 via svnmerge from
18 years ago
Russell Bryant 8a53d595a5 Fix up the device state processing thread in app_queue so that it's not
18 years ago
Joshua Colp 7b60d29f68 Merged revisions 72328 via svnmerge from
18 years ago
Tilghman Lesher 396a37eba8 Fix trunk brokenness; also, optimize application registration
18 years ago
Steve Murphy 2462d5ab4f Cleaning up a small disaster I created earlier
18 years ago
Steve Murphy 57526b35cc As per 9228, now app_queue should have the proper machinery to do gosubs.
18 years ago
Steve Murphy 866bbaa515 Via bug9228, no way to create macros via AEL, and some of the apps allow you to call macros..., I modded the apps that allow macro calls to allow gosubs calls also, to make them AEL compliant.
18 years ago
Brett Bryant 7573042f95 Fixed issue where 'stop gracfeully' was hanging ...
18 years ago
Russell Bryant 055d82cbce Add a massive set of changes for converting to use the ast_debug() macro.
18 years ago
Russell Bryant 9e0458e9f1 Completely remove all of the code related to jumping to priority n + 101. yay!
18 years ago
Russell Bryant e911f41166 Merged revisions 68280 via svnmerge from
18 years ago
Tilghman Lesher 9d05ff8ed5 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
18 years ago
Russell Bryant 605368649e Merge major changes to the way device state is passed around Asterisk. The two
18 years ago
Russell Bryant 9b5d9279be Fix a couple of spots in the handling of device states that could lead to a
18 years ago
Russell Bryant ff73bfb7e7 I know we have talked about rewriting app_queue for Asterisk 1.6, but once I
18 years ago
Russell Bryant 3ecad89b42 Merged revisions 64868 via svnmerge from
18 years ago
Jason Parker 2d1b06faef Don't allow rounding seconds to weird values that may cause "unexpected" results.
18 years ago
Jason Parker 83c00e346e Add 'c' option to app_queue which allows for continuing in the dialplan if the callee hangs up.
18 years ago
Russell Bryant 683417407e This patch adds additional information to the EXITWITHKEY and EXITWITHTIMEOUT
18 years ago
Russell Bryant 672fbc1f81 Add a min-announce-frequency option to queues.conf which allows you to control the
18 years ago
Jason Parker 52ae7d58f7 Merged revisions 61694 via svnmerge from
18 years ago
Jason Parker 0cb6714ce8 Merged revisions 61022 via svnmerge from
18 years ago
Joshua Colp 9ab4327d8b Merged revisions 60762 via svnmerge from
18 years ago
Russell Bryant f0aeab730f Send a manager AgentComplete event when the agent transfers the call, in
18 years ago
Joshua Colp f95a15ed58 Merged revisions 55219 via svnmerge from
18 years ago
Joshua Colp 177953c8f1 We want to skip the queue if the name doesn't match the specified one, not if they *do*.
18 years ago
Joshua Colp d4c75e57c0 Increase "queue show" buffer size from 80 to 240. This should be more then enough for most cases. (issue #9089 reported by mvanbaak)
18 years ago
Joshua Colp 213983dee2 Merged revisions 55129 via svnmerge from
18 years ago
Russell Bryant f60efe347a This introduces a new dialplan function, DEVSTATE, which allows you to do some
18 years ago
Joshua Colp 655da6da05 Clean up documentation of Queue application. (issue #9022 reported by seanbright)
18 years ago
Olle Johansson d07e640c6f Merged revisions 53081 via svnmerge from
19 years ago
Russell Bryant b233892198 Merged revisions 53046 via svnmerge from
19 years ago
Russell Bryant 26a33b2ffc Merged revisions 53037 via svnmerge from
19 years ago
Russell Bryant 59b382021e Merged revisions 53035 via svnmerge from
19 years ago
Joshua Colp 44beb7c475 Merged revisions 52416 via svnmerge from
19 years ago
Kevin P. Fleming cd73a483f1 const-ify some more APIs, and fix rev 49710 from branch-1.4 in a better way here
19 years ago
Kevin P. Fleming 87b9abc892 Merged revisions 49676 via svnmerge from
19 years ago
Luigi Rizzo ccebf3511c convert the final clients of ast_build_string to use ast_str_*()
19 years ago
Luigi Rizzo 18e5017634 replace ast_build_string() with ast_str_*();
19 years ago
Russell Bryant 5824af9cbc Resolve some pointer signedness compiler warnings in app_osplookup, and
19 years ago
Jason Parker a1a37dddfe Add ability to add custom queue log via manager interface.
19 years ago
Joshua Colp 64d5316a53 Add 'loose' option to joinempty and leavewhenempty which is almost exactly like 'strict' except it does not count paused queue members as unavailable. (issue #8263 reported by gnarf)
19 years ago
Kevin P. Fleming 9398ac87a2 Merged revisions 47433 via svnmerge from
19 years ago
Kevin P. Fleming fed9126600 Merged revisions 47432 via svnmerge from
19 years ago
Luigi Rizzo 6b459ebd0c %ld and time_t don't match, so cast the argument to long
19 years ago
Tilghman Lesher 10875731ec Merged revisions 47051 via svnmerge from
19 years ago
BJ Weschke eea3a260da Let's make sure we hold the mutex lock before we go looking at values in the queue structure that could potentially be changing while we're running.
19 years ago
BJ Weschke 95a4fc7af2 * Added option to run macro when a queue member is connected to a caller,
19 years ago
Russell Bryant 414f448b09 Merged revisions 46249 via svnmerge from
19 years ago
Kevin P. Fleming 749029de38 Merged revisions 46200 via svnmerge from
19 years ago
Kevin P. Fleming 3c876af5cf Merged revisions 44378 via svnmerge from
19 years ago
Kevin P. Fleming e486316dc6 Merged revisions 44298 via svnmerge from
19 years ago
Joshua Colp 31800f61c3 Strat becomes Strategy based on feedback from two nameless fellows
19 years ago
Joshua Colp e550109383 Add 'Strat' manager field to QueueParams event. (issue #7704 reported by renemendoza)
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp 8ff3dd273a Expand setinterfacevar option to also set a variable, MEMBERNAME, which contains the member's name. (issue #8046 reported by jmls)
19 years ago
Joshua Colp 3e4a081e1c Make callerid fields in Manager events more consistent. CallerIDNum for number and CallerIDName for name. (issue #7976 reported by suhler)
19 years ago
Joshua Colp cc1945ce1b Add option 'keepstats' which will keep queue statistics during a reload. (issue #7908 reported by jmls)
19 years ago
Jason Parker e2a52816fc Merged revisions 43944 via svnmerge from
19 years ago
Kevin P. Fleming 5ae60ec272 Merged revisions 43919 via svnmerge from
19 years ago
BJ Weschke 9baf50ee9a Merged revisions 43899 via svnmerge from
19 years ago
BJ Weschke 3b3702f9bc Merged revisions 43873 via svnmerge from
19 years ago
BJ Weschke 4a50548ab2 Merged revisions 43864 via svnmerge from
19 years ago
Jason Parker a046b75f8a Add QueueSummary manager action.
19 years ago
Tilghman Lesher 2b55678e1f Remove deprecated CLI apps from the core
19 years ago
Tilghman Lesher fc88db013e Remove deprecated apps and funcs
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Jason Parker 61e4465f49 Fix a segfault that was reported by jcmoore in #asterisk-bugs on IRC.
19 years ago
Jason Parker 50c1981780 We need to persist the member name also
19 years ago
Jason Parker a7119b522d Add a "member name" to queue members.
19 years ago
Matt O'Gorman d0a1a0033d similar patch for verbose vs debug with minor changes
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
BJ Weschke c5c1d4579f This was added to app_dial a while back, and now it's in app_queue as well. Provide an option to prevent members of the queue from forwarding calls from the queue to somewhere else.
19 years ago
BJ Weschke 06b98dcc77 Merged revisions 41882 via svnmerge from
19 years ago
BJ Weschke 91f4aa93bb Don't keep trying the same member in certain strategies when members of the queue are unavailable (#7278 - diLLec reported and patched)
19 years ago
BJ Weschke b6ccca7566 Merged revisions 41827 via svnmerge from
19 years ago
BJ Weschke e736c8a27b With the somewhat recent addition (from one of the Astridevcon Europe sessions) of more detailed device states, we need to change strategy in app_queue in how we determine whether a queue member is "in use" or not. Basically, instead of specifically looking for that device state as we did previously, now we're going to observe any other device state aside from the two that we know for sure are "not in use" as "in use". This will cause some other states to fall through that we know will never be available (eg - "INVALID","UNAVAILABLE",etc) but there's other code already within to handle those conditions. (#7433 - tgrman reporting)
19 years ago
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
BJ Weschke 2ec3a672e9 Increase the size of the variable space for writing/reading persistent queue member data to allow for larger queues of members. (Matthew Roth #7703)
19 years ago
Russell Bryant e068c5fcf9 Merged revisions 38972 via svnmerge from
19 years ago
Tilghman Lesher cc3029e871 Typo found on the -dev list
19 years ago
Kevin P. Fleming 6d0742fc16 merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
19 years ago
Russell Bryant 88627c754a add a QueueLog application that allows for custom entries in the queue_log
19 years ago
Tilghman Lesher d8ccfb6711 Whitespace fix
19 years ago
Kevin P. Fleming dea45f3aa3 only compare the queue entry's max penalty to the member's penalty when the queue entry actually has a non-zero penalty
19 years ago
Tilghman Lesher 2127a0b7e5 Change superfluous messages to DEBUG and remove dead code
19 years ago
BJ Weschke 0d0fadc781 Merged revisions 35669 via svnmerge from
19 years ago
Tilghman Lesher 89f6ffe1e5 Bug 6589 - option to display channel variables in queue events
19 years ago
Joshua Colp 0224dee876 Actually allow realtime queue members to be added (issue #7408 reported by tgrman)
19 years ago
Kevin P. Fleming b5a13cbef8 Merged revisions 34274 via svnmerge from
19 years ago
Kevin P. Fleming aba00b66fc use the proper named constants for checking device state, and don't treat UNKNOWN as not available in autofill mode
19 years ago
Kevin P. Fleming 7518a91032 various coding style cleanup and minor fixes
19 years ago
Kevin P. Fleming 11dac47877 Merged revisions 34159-34160 via svnmerge from
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Kevin P. Fleming 998eacf17f Merged revisions 31921 via svnmerge from
19 years ago
Kevin P. Fleming 7e84433270 officially deprecate the 'roundrobin' queue strategy in favor of 'rrmemory'
19 years ago
BJ Weschke 295c340164 A new way to try and deal with deadlocks that occur in app_queue at present. Using this approach, we only manipulate the main queue mutexes when we get a dev state change on a device that is actually a member of a queue. Further optimizations are still possible (eg - store and manage pointers to the status integer of the member record that this interface/device has a one-to-one relationship with and then go directly to those pointers to make status modifications rather than the recursive looping that goes on now) BUT first things first. :)
19 years ago
BJ Weschke 59e1522025 Merged revisions 30424 via svnmerge from
19 years ago
BJ Weschke 6cfaaf9ac0 Properly initialize destination variables before we send them into pbx_substitute_variables_helper(..). Ya! Testing! Take 2.
19 years ago
BJ Weschke 36cf242f31 Making sure a char ptr is initialized before we strchr on it is a GOOD thing. Ya! Testing!
19 years ago
BJ Weschke 8d890cb626 Doxygen comment for Qwell
19 years ago
BJ Weschke 6848d55d85 Make sure we catch all the instances where a member didn't answer the call sent to them rather than just on a timeout after a dial attempt and some minor code cleanup/reuse.
19 years ago
Kevin P. Fleming 6e307c1d81 Merged revisions 29971 via svnmerge from
19 years ago
BJ Weschke d1fc8d4687 Add UniqueID to the leave manager event.
19 years ago
Kevin P. Fleming db55898c0d Merged revisions 28968 via svnmerge from
19 years ago
Joshua Colp 154774e033 Merged revisions 28627 via svnmerge from
19 years ago
Joshua Colp 4edfd20a7a Remove needless check for autofill (issue #7180 reported by Marquis)
19 years ago
Russell Bryant 04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
19 years ago
Russell Bryant 4120afc28e put all the QUEUE_STRATEGY values in an enum, and use them in all of the places
19 years ago
BJ Weschke 3780d4e7dd strategy "ringall" is really int value of 0, not 1.
19 years ago
BJ Weschke c0186f6b4d Make QueueStatusComplete manager event thread safe by wrapping it inside the already existing Queue Lock clause. #7013 (bziherl reporting)
19 years ago
BJ Weschke a7f330a2d2 Merged revisions 25520 via svnmerge from
19 years ago
BJ Weschke 415dff6f2a Merged revisions 25518 via svnmerge from
19 years ago
BJ Weschke 714aab87bb Fix situation for when there is no monitor_option defined, but there is a monitor_exec defined.
19 years ago
BJ Weschke d83bd4d136 Integrate the MixMonitor functionality (introduced in 1.2) as an option for recording queue member conversations with callers. #7084
19 years ago
BJ Weschke 85e0c889e4 Allow for the execution of an AGI to the caller's channel right before they get bridged with the queue member that is going to take their call. Add the option to set a MEMBERINTERFACE variable on the caller's channel that will contain the interface of the queue member that is going to/did take the call. #6843
19 years ago
Tilghman Lesher 7734d20eb5 Merged revisions 24706 via svnmerge from
19 years ago
BJ Weschke 80c34d2a91 Make sure that callers kicked from queue because of joinempty and leavewhenempty have an event logged with regard to the reason for their departure. #6559 (Corydon76)
19 years ago
BJ Weschke 944c8cc4a6 Log hold time and talktime in queue_log when blind transfers are made by queue members. #7038 (alphaqueue) w/documentation mods added
19 years ago
BJ Weschke ebb7eee9ce Implement and document RINGNOANSWER queue logging functionality to "tattle" on bad queue members.
19 years ago
BJ Weschke 7b3f3db65d Fix autofill behavior in app_queue and document it's functionality in queues.conf.sample and UPGRADE.txt
19 years ago
BJ Weschke 857f2e8d41 Record bridge channel unique id in "CONNECT" queue_log entry and the corresponding manager event. #6522 (nording) w/ documentation additions where appropriate
19 years ago
Luigi Rizzo 2904c6956d remove unused variable
19 years ago
Matt O'Gorman 7212fa80ad adds new function QUEUE_WAITING_COUNT and a few
19 years ago
Luigi Rizzo 1a6572c4e6 more NULL "" equivalence,
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
19 years ago
Kevin P. Fleming cf15740eaf remove support for BYEXTENSION (which nobody even knows about anymore)
19 years ago
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
19 years ago
Tilghman Lesher 756c7cbb12 Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
19 years ago
Olle Johansson 982a66a93a Issue #6882
19 years ago
Luigi Rizzo c0f2f5b5b8 Normalize some cli completion code.
19 years ago
Mark Spencer 9164eac21a Add micro-http server and abstract manager interface, make snmp not die
19 years ago
Russell Bryant f28abd4020 Merged revisions 12925 via svnmerge from
19 years ago
Tilghman Lesher 30a806010a Bug 6459 - tell manager when queue is abandoned
19 years ago
Russell Bryant a0d438fb6c remove the uses of the deprecated STANDARD_LOCAL_USER
19 years ago
Kevin P. Fleming f0495e8944 add option to avoid calling members whose channels are 'in use' (issue #6315, plus documentation)
19 years ago
Kevin P. Fleming c1e19165b4 add channel's uniqueid to manager 'join' event (issue #6458)
19 years ago
Kevin P. Fleming 2f46cb9198 don't use localuser structure for outbound calls (issue #6216)
19 years ago
Kevin P. Fleming 918cab0e08 Merged revisions 9961,9964,9990,10018 via svnmerge from
19 years ago
Russell Bryant 2f2530b8e6 remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
19 years ago
Kevin P. Fleming 96bf384e7d major dialplan functions update
20 years ago
Kevin P. Fleming a16ae226b6 use string fields for some stuff in ast_channel
20 years ago
Matt O'Gorman 83ab52cdc4 changed some settings to app_args and some code
20 years ago
Russell Bryant 72a2e892bc fix memory leak from not freeing the list of queue members when freeing a queue
20 years ago
Tilghman Lesher 56bb41460e Bug 6312 - Macro janitor
20 years ago
Russell Bryant 4414f45393 on this pass, only remove duplicate log messages
20 years ago
Tilghman Lesher 41c87ccb97 Bug 5936 - Cannot AddQueueMember on realtime queue, if queue not yet loaded (different fix than 1.2)
20 years ago
Russell Bryant 9fa6eb5e07 revert my pass through the tree to remove checks of the result of ast_strdupa
20 years ago
Russell Bryant 7ad681adc8 remove lots of useless checks of the result of ast_strdupa
20 years ago
Russell Bryant cb8bd57a21 Merged revisions 8347 via svnmerge from
20 years ago
Russell Bryant 6f71e1178e constify arguments in more places where strings should not be modified (issue #6286)
20 years ago
Matt O'Gorman 90b4d8b9be oops all better now.
20 years ago
Matt O'Gorman 24c4e062cc allow for multiple periodic announcements
20 years ago
BJ Weschke 3854a2438e Spelling corrections (mostly in comments and doxygen areas) #6249
20 years ago
Matt O'Gorman 58bac05e59 Added QUEUE_MEMBER_COUNT and QUEUE_MEMBER_LIST
20 years ago
Russell Bryant 55c8fc92a9 Various cleanups from comments in an email from Luigi Rizzo. Thank you!
20 years ago
Matt O'Gorman 130ce286ba added two new features to meetme, autofill and
20 years ago
BJ Weschke 8637b23569 More memory wrapper and cleanup work. #6226 w/one very minor compile fix mod in app_rpt.c
20 years ago
BJ Weschke a44bc3a0d7 Remove an unneccessary unlock and do away with the error msg about not being able to unlock the lock. #6201
20 years ago
BJ Weschke e825a748cf More new memory wrapper work and initializing some memory allocations to zero where they weren't before.
20 years ago
Kevin P. Fleming d44823b5b8 allow limiting of queue members who will be delivered a given caller's call by penalty setting
20 years ago
Russell Bryant a725468381 update doxygen docs to specify authors
20 years ago
Russell Bryant 1bd94abf57 avoid multiple strlen calls in complete_queue
20 years ago
Russell Bryant ef1ce7aec9 Merged revisions 7634 via svnmerge from
20 years ago
Tilghman Lesher e2f674787b Clarify purpose of function, by renaming
20 years ago
Russell Bryant f75bd5a29e Merged revisions 7337 via svnmerge from
20 years ago
Russell Bryant ec05153ac4 convert most of the option_*'s to a single ast_flags structure. Also, fix some
20 years ago
Tilghman Lesher 870f98f02d Bug 5858 - Make the chanvars.c functions return a 'const char *'
20 years ago
Russell Bryant ad122bf6cd fix queue weight feature - compare member interfaces instead of pointers to
20 years ago
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
20 years ago
Kevin P. Fleming 54dd7ac9fa issue #5707
20 years ago
Russell Bryant 987b87662c make app_queue 1.2 jump compliant (issue #5580)
20 years ago
Kevin P. Fleming a0a9769616 issue #5648
20 years ago
Kevin P. Fleming f09c6bc78e application doc update
20 years ago
Russell Bryant 31a804b97c issue #5605
20 years ago
Russell Bryant 3bd298f2dd alphabetize option lists
20 years ago
Russell Bryant 5187de9ab6 remove unnecessary checks before calls to ast_strlen_zero
20 years ago
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue #5505)
20 years ago
Russell Bryant 4aa7912057 Massive cleanups to applications for LOCAL_USER handling and some other things.
20 years ago
Russell Bryant 29829640bf it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
20 years ago
Mark Spencer dbdd193e12 Fix segfault in app queue when no cdr exists for the calling channel (bug #5462)
20 years ago
Mark Spencer 4e919f337c Fix queue, iax and sip formatting issues (bug #5449)
20 years ago
Kevin P. Fleming 7215e4179d add auto-monitor support (issue #5411)
20 years ago
Josh Roberson 485e3e0801 Log timeouts in queues when the call timeout is set from the dialplan (Bug #5422)
20 years ago
Kevin P. Fleming e0680525e7 fix queues properly (issue #5300, take two)
20 years ago
Kevin P. Fleming d45b683bdd ensure that app_queue won't crash if no members are defined via Realtime (issue #5300)
20 years ago
Russell Bryant 90aec0b0e3 fix logic error that breaks queue exit (issue #5312)
20 years ago
Kevin P. Fleming d3f7c5fb74 don't drop the caller just because it's not time to play an announcement (issue #5279)
20 years ago
Kevin P. Fleming b8f23573fa more license/copyright header updates (thanks Ian!)
20 years ago
Kevin P. Fleming e0f02b46f1 convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
20 years ago
Kevin P. Fleming 37a3c098bf fix stupid thinko (thanks velter!)
20 years ago
Kevin P. Fleming 3103fd6292 don't duplicate devicestate-to-string function (issue #5078)
20 years ago
Mark Spencer 129fd190a9 Make sure "now" is initialized (bug #4961)
20 years ago
Mark Spencer e415ff3f87 Don't record all calls as abandoned (bug #4575) (fixes damage inadvertently added by bug #4644)
20 years ago
Mark Spencer a9a91571a1 Remove queue/session co-locking until deadlocks are properly resolved
20 years ago
Mark Spencer 5a7a8666a1 Add periodic announcement (bug #4677 with mods)
20 years ago
Russell Bryant 9d880dd2b2 remove useless call to time() and an extra variable when we can just use the
20 years ago
Russell Bryant 50a1d758d5 the time must be initialized for the 'n' option to actually work (bug #4834)
20 years ago
Kevin P. Fleming c4c9401efd make queue and interface name matching case-insensitive (bug #4815)
20 years ago
Kevin P. Fleming 1c30af0622 add English device state output (bug #4733, with minor mod)
20 years ago
Kevin P. Fleming 1432749293 add QueueStatusComplete event (bug #4694 with minor mods)
20 years ago
Kevin P. Fleming 79760d4802 add support for multiple-digit extensions in queue exit contexts (bug #4690)
20 years ago
Russell Bryant e24821e1cf fix off by one errors in calls to ast_copy_string (bug #4600)
20 years ago
Russell Bryant 4c531ca8c0 define an AST_MAX_CONTEXT for use instead of AST_MAX_EXTENSION
20 years ago
Kevin P. Fleming c13d601fb4 queue device state changes and handle them serially in a background thread
20 years ago
Kevin P. Fleming 25f2cb8ec9 ensure that "completed calls" counter is updated properly (bug #4575)
20 years ago
Kevin P. Fleming f8b140faa4 ensure that abandoned calls are recorded that way (bug #4644)
20 years ago
Kevin P. Fleming 706bf6d427 ensure CLI commands produce proper terminating output when used with manager interface (bug #4497)
20 years ago
Kevin P. Fleming c0b1e88e8a the last round of file version tags
20 years ago
Kevin P. Fleming 4f299de252 major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
20 years ago
Kevin P. Fleming 30973879c1 add realtime support to app_queue for static members/agents (bug #4037)
20 years ago
Kevin P. Fleming 9f3372e3e3 add missing if statement in say_position (bug #4435)
20 years ago