aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
AgeCommit message (Collapse)AuthorFilesLines
2007-07-18removed the word 'pissed' from ast_log(...) function call for BE-90dhubbard1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@75657 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Fix an issue where it was possible to have a service level of over 100%qwell1-10/+13
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.2@74427 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Reset ServicelevelPerf variable back to 0 if we are unable to calculate it ↵file1-2/+1
each time... otherwise we will get previous values. (issue #10117 reported by noriyuki) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@73315 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Fix issue where queue log events might be missing. (issue #7765 reported by ↵file1-0/+4
mtryfoss) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@72327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-22Fix a memory leak that I just noticed in the device state handling in app_queue.russell1-0/+2
On most device state changes, it would leak roughly 8 to 64 bytes (the length of the name of the device). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65389 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-20If the '* to hangup' option is not enabled, we don't need to disable * as a ↵qwell1-1/+1
valid exit key. If it was enabled, this statement would've never been checked in the first place. Issue #9552 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61692 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-31Fix a bunch of places where pthread_attr_init() was called, butrussell1-0/+1
pthread_attr_destroy() was not. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53045 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-27Make COMPLETECALLER and COMPLETEAGENT output to queue_log follow ↵file1-3/+3
documentation. (issue #7677 reported by amilcar) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@52415 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03fix a logic error in my previous fix to the queue reload codekpfleming1-3/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44296 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28fix buggy (and overly complex) loop used during reload of app_queue for ↵kpfleming1-17/+15
static member list updating git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43916 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 app_queue is comparing the device names incorrectly while checking their ↵bweschke1-2/+16
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/branches/1.2@43897 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 Fix race condion crash with get_member_status (#7864 - tim_ringenbach ↵bweschke1-1/+4
reported and patched) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43871 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19fixes some verbose vs debug issues. patch from bug 2617mogorman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@43269 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 Make sure the forwarded channel inherits variables appropriately when we ↵bweschke1-0/+1
receive a call forward in the queue. (#7867 - raarts reported and patched) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@41882 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) - This should have been patched here first and then merged into /trunk. My bad! git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@41880 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 Setting a retry of 0 is generally not a good idea and shouldn't be allowed. ↵bweschke1-1/+1
(#7574 - reported by regin) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@41827 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-05remove duplicate queue log entry when the caller exits on a timeoutrussell1-1/+0
(issue #7616, ppyy) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@38972 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23 We should lock the queue before we go making changes to member interface ↵bweschke1-0/+2
statuses. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@35669 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-15don't use prefixed structure names for internal structureskpfleming1-50/+50
don't use a plural structure name for a singular object git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@34274 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-14coding style cleanups on queue interface handling code that was committed ↵kpfleming1-74/+71
for the last release git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@34160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-04return bridge exit logic to what it was before i broke it :-(kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@31921 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-30 Fix infinite loop scenario and add some sanity checking to prevent segfault ↵bweschke1-0/+10
on a NULL parameter coming in (which probably shouldn't happen, but just to be safe...) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@30770 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-26 A new way to try and deal with deadlocks that occur in app_queue at ↵bweschke1-29/+146
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. Backported from /trunk for the "bug fix". git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@30546 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-25 Oops.bweschke1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@30424 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24fix various bugs related to exiting from queue via keypress and moh handling ↵kpfleming1-26/+24
(issue #6776, different fix) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29971 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-20don't allow queue member devices to ring longer than the total queue timeout ↵kpfleming1-4/+4
(issue #6423, reported and patched by bcnit) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@28968 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19Treat paused queue members as unreachable (issue #7127 reported by peterh)file1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@28627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 Make QueueStatusComplete event thread safe by wrapping it inside the queue ↵bweschke1-1/+1
lock clause already there. #7013 (bziherl reporting) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25522 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 Oops. :(bweschke1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25520 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 Don't recheck valid_exit() after getting the result from say_position ↵bweschke1-2/+4
(which already checks it). Should prevent another loop if the caller hits digits during the position announcement. #6776 (tgj reporting) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@25518 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-04Bug 7023 - reload should not unpause memberstilghman1-15/+47
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@24706 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-27Queue(somequeue,,,,) -> interpreted as Queue(somequeue,,,,0) (issue #7044 ↵file1-1/+1
reported nathan fixed by jsmith - sort of) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@22954 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04Issue #6882 - move "res=-1" out of verbosity block, minor code cleanups (casper)oej1-25/+23
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@17335 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14fix a problem with not loading realtime queue members by always reloading a russell1-1/+1
realtime queue from the database even if it is found in the list (issue #6680) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@12925 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14don't double-increment abandon counter for calls that are hung up while ↵kpfleming1-2/+1
dialing members (issue #6289) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@10018 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22fix memory leak from not freeing the queue member list when freeing an old queuerussell1-44/+45
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8445 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21Bug 5936 - AddQueueMember fails on realtime queue, if queue not yet loadedtilghman1-60/+91
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8394 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20fix invalid value of prev_q (issue #6302)russell1-5/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8347 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26cast time_t to an int in printf/scanf (issue #5635)russell1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7634 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-05don't delete dynamic queue members when reloading the static members from a ↵russell1-2/+3
realtime database (issue #5922) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7337 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-01fix queue weight feature - compare member interfaces instead of pointers torussell1-1/+1
the members, since each queue has its own list of members. (issue #5863) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7249 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-10issue #5707kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7053 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08make app_queue 1.2 jump compliant (issue #5580)russell1-107/+164
add missing includes of stdio.h remove some unused and duplicate headers git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7026 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5648kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-07application doc updatekpfleming1-7/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6992 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06issue #5605russell1-73/+80
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6979 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06alphabetize option listsrussell1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6975 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26remove unnecessary checks before calls to ast_strlen_zerorussell1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-7/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b