aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
AgeCommit message (Collapse)AuthorFilesLines
2006-10-03bug #8076 check option_debug before printing to debug channel.mogorman1-10/+20
patch provided in bugnote, with minor changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02Expand setinterfacevar option to also set a variable, MEMBERNAME, which ↵file1-1/+3
contains the member's name. (issue #8046 reported by jmls) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44218 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02Make callerid fields in Manager events more consistent. CallerIDNum for ↵file1-2/+2
number and CallerIDName for name. (issue #7976 reported by suhler) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44217 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02Add option 'keepstats' which will keep queue statistics during a reload. ↵file1-1/+8
(issue #7908 reported by jmls) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44150 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Merged revisions 43944 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43944 | qwell | 2006-09-28 13:11:22 -0700 (Thu, 28 Sep 2006) | 4 lines Fix incorrect argument order for member names, on persisted members. Issue 8047, patch by jmls. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43945 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Merged revisions 43919 via svnmerge from kpfleming1-16/+13
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r43919 | kpfleming | 2006-09-28 12:35:42 -0500 (Thu, 28 Sep 2006) | 10 lines Merged revisions 43916 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43916 | kpfleming | 2006-09-28 12:31:57 -0500 (Thu, 28 Sep 2006) | 2 lines fix buggy (and overly complex) loop used during reload of app_queue for static member list updating ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43921 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Merged revisions 43899 via svnmerge from bweschke1-2/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r43899 | bweschke | 2006-09-28 12:41:05 -0400 (Thu, 28 Sep 2006) | 11 lines Merged revisions 43897 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43897 | bweschke | 2006-09-28 12:37:15 -0400 (Thu, 28 Sep 2006) | 3 lines app_queue is comparing the device names incorrectly while checking their statuses. It's internal list of interfaces includes the dial string, while the argument passed to this function does not have the dial string (/n for a local channel). This causes it to ignore the device state changes because it thinks it belongs to none of its members. (#8040 reported and patch by tim_ringenbach) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43902 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Merged revisions 43873 via svnmerge from bweschke1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r43873 | bweschke | 2006-09-28 11:29:21 -0400 (Thu, 28 Sep 2006) | 11 lines Merged revisions 43871 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43871 | bweschke | 2006-09-28 11:18:05 -0400 (Thu, 28 Sep 2006) | 3 lines Fix race condion crash with get_member_status (#7864 - tim_ringenbach reported and patched) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43875 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Merged revisions 43864 via svnmerge from bweschke1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r43864 | bweschke | 2006-09-28 09:24:10 -0400 (Thu, 28 Sep 2006) | 3 lines Autopause not working for queue members. (#8042 - jmls reported and patch) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43865 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26Add QueueSummary manager action.qwell1-1/+61
Gives "at a glance" information about a single queue, or all queues. Issue #8035, patch by rgollent, slightly modified (formatting) by me. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43721 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21Remove deprecated CLI apps from the coretilghman1-54/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43449 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21Remove deprecated apps and funcstilghman1-12/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43439 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Constify the result of a config retrieval function, to avoid mutilation ↵tilghman1-3/+3
(issue 7983). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Fix a segfault that was reported by jcmoore in #asterisk-bugs on IRC.qwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43357 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20We need to persist the member name alsoqwell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43322 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Add a "member name" to queue members.qwell1-60/+117
Add option to the various methods of adding a queue member, to add the "member name". Member name is used in (most) queue log records, in place of the interface name. This makes it consistent, so that you can log in from any device, and still be logged as "member name" git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43316 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19similar patch for verbose vs debug with minor changesmogorman1-1/+1
bug 2617 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43272 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-43/+60
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 This was added to app_dial a while back, and now it's in app_queue as well. ↵bweschke1-4/+14
Provide an option to prevent members of the queue from forwarding calls from the queue to somewhere else. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41901 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03Merged revisions 41882 via svnmerge from bweschke1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r41882 | bweschke | 2006-09-03 13:38:22 -0400 (Sun, 03 Sep 2006) | 3 lines Make sure the forwarded channel inherits variables appropriately when we receive a call forward in the queue. (#7867 - raarts reported and patched) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41883 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 Don't keep trying the same member in certain strategies when members of the ↵bweschke1-0/+5
queue are unavailable (#7278 - diLLec reported and patched) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41879 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03Merged revisions 41827 via svnmerge from bweschke1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r41827 | bweschke | 2006-09-03 10:16:08 -0400 (Sun, 03 Sep 2006) | 3 lines Setting a retry of 0 is generally not a good idea and shouldn't be allowed. (#7574 - reported by regin) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41829 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-02 With the somewhat recent addition (from one of the Astridevcon Europe ↵bweschke1-1/+1
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) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41810 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31everything that loads a config that needs a config file to runmogorman1-9/+7
now reports AST_MODULE_LOAD_DECLINE when loading if config file is not there, also fixed an error in res_config_pgsql where it had a non static function when it should. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-53/+44
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-11 Increase the size of the variable space for writing/reading persistent ↵bweschke1-1/+1
queue member data to allow for larger queues of members. (Matthew Roth #7703) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39516 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-05Merged revisions 38972 via svnmerge from russell1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r38972 | russell | 2006-08-05 04:08:48 -0400 (Sat, 05 Aug 2006) | 3 lines remove duplicate queue log entry when the caller exits on a timeout (issue #7616, ppyy) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38973 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-26Typo found on the -dev listtilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38258 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-19merge Russell's 'hold_handling' branch, finally implementing music-on-hold ↵kpfleming1-4/+5
handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-16add a QueueLog application that allows for custom entries in the queue_logrussell1-9/+57
(issue #7368, by stevedavies with some modifications) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37734 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-14Whitespace fixtilghman1-247/+247
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-13only compare the queue entry's max penalty to the member's penalty when the ↵kpfleming1-1/+1
queue entry actually has a non-zero penalty git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37515 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-05Change superfluous messages to DEBUG and remove dead codetilghman1-5/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37046 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23Merged revisions 35669 via svnmerge from bweschke1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r35669 | bweschke | 2006-06-23 06:30:17 -0500 (Fri, 23 Jun 2006) | 3 lines We should lock the queue before we go making changes to member interface statuses. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35670 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22Bug 6589 - option to display channel variables in queue eventstilghman1-49/+99
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35504 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-21Actually allow realtime queue members to be added (issue #7408 reported by ↵file1-3/+2
tgrman) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-15Merged revisions 34274 via svnmerge from kpfleming1-50/+50
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r34274 | kpfleming | 2006-06-15 08:30:22 -0500 (Thu, 15 Jun 2006) | 3 lines don't use prefixed structure names for internal structures don't use a plural structure name for a singular object ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34275 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-14use the proper named constants for checking device state, and don't treat ↵kpfleming1-4/+6
UNKNOWN as not available in autofill mode git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-14various coding style cleanup and minor fixeskpfleming1-285/+262
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34193 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-14Merged revisions 34159-34160 via svnmerge from kpfleming1-71/+73
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r34159 | kpfleming | 2006-06-14 17:17:37 -0500 (Wed, 14 Jun 2006) | 2 lines use existing dial string parser for strings supplied to iax2_devicestate, because they can be complete dial strings, not just device names ........ r34160 | kpfleming | 2006-06-14 17:22:21 -0500 (Wed, 14 Jun 2006) | 2 lines coding style cleanups on queue interface handling code that was committed for the last release ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34161 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-4/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-04Merged revisions 31921 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r31921 | kpfleming | 2006-06-03 22:43:35 -0500 (Sat, 03 Jun 2006) | 2 lines return bridge exit logic to what it was before i broke it :-( ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31922 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-30officially deprecate the 'roundrobin' queue strategy in favor of 'rrmemory'kpfleming1-0/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30837 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 A new way to try and deal with deadlocks that occur in app_queue at ↵bweschke1-31/+145
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. :) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30430 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25Merged revisions 30424 via svnmerge from bweschke1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r30424 | bweschke | 2006-05-25 17:22:16 -0400 (Thu, 25 May 2006) | 3 lines Oops. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30426 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 Properly initialize destination variables before we send them into ↵bweschke1-0/+3
pbx_substitute_variables_helper(..). Ya! Testing! Take 2. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30216 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 Making sure a char ptr is initialized before we strchr on it is a GOOD ↵bweschke1-2/+3
thing. Ya! Testing! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30194 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 Doxygen comment for Qwellbweschke1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30173 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 Make sure we catch all the instances where a member didn't answer the call ↵bweschke1-14/+32
sent to them rather than just on a timeout after a dial attempt and some minor code cleanup/reuse. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24Merged revisions 29971 via svnmerge from kpfleming1-26/+24
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r29971 | kpfleming | 2006-05-24 11:52:08 -0500 (Wed, 24 May 2006) | 2 lines fix various bugs related to exiting from queue via keypress and moh handling (issue #6776, different fix) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29972 f38db490-d61c-443f-a65b-d21fe96a405b