aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
AgeCommit message (Collapse)AuthorFilesLines
2006-04-14This rather large commit changes the way modules are loaded. rizzo1-13/+8
As partly documented in loader.c and include/asterisk/module.h, modules are now expected to return all of their methods and flags into a structure 'mod_data', and are normally loaded with RTLD_NOW | RTLD_LOCAL, so symbols are resolved immediately and conflicts should be less likely. Only in a small number of cases (res_*, typically) modules are loaded RTLD_GLOBAL, so they can export symbols. The core of the change is only the two files loader.c and include/asterisk/module.h, all the rest is simply adaptation of the existing modules to the new API, a rather mechanical (but believe me, time and finger-consuming!) process whose detail you can figure out by svn diff'ing any single module. Expect some minor compilation issue after this change, please report it on mantis http://bugs.digium.com/view.php?id=6968 so we collect all the feedback in one place. I am just sorry that this change missed SVN version number 20000! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10remove support for BYEXTENSION (which nobody even knows about anymore)kpfleming1-10/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08since the module API is changing, it's a good time to const-ify the ↵kpfleming1-2/+2
description() and key() return values git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) ↵tilghman1-2/+2
rand() to threadsafe ast_random() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-04Issue #6882 oej1-25/+23
- move "res=-1" out of verbose block. - minor code cleanup Imported from 1.2 branch git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17350 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29Normalize some cli completion code.rizzo1-41/+27
On passing, replace strdup with ast_strdup() and remove the now useless checks for NULL since ast_strdup() can handle it correctly. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25Add micro-http server and abstract manager interface, make snmp not die markster1-24/+56
on reload. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14Merged revisions 12925 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r12925 | russell | 2006-03-14 13:28:39 -0500 (Tue, 14 Mar 2006) | 3 lines fix a problem with not loading realtime queue members by always reloading a realtime queue from the database even if it is found in the list (issue #6680) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12926 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-11Bug 6459 - tell manager when queue is abandonedtilghman1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15remove the uses of the deprecated STANDARD_LOCAL_USERrussell1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15add option to avoid calling members whose channels are 'in use' (issue ↵kpfleming1-1/+14
#6315, plus documentation) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10163 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15add channel's uniqueid to manager 'join' event (issue #6458)kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10122 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14don't use localuser structure for outbound calls (issue #6216)kpfleming1-210/+148
various code cleanup and reorganization (issue #6216) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10046 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14Merged revisions 9961,9964,9990,10018 via svnmerge from kpfleming1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r10018 | kpfleming | 2006-02-14 14:20:15 -0600 (Tue, 14 Feb 2006) | 2 lines don't double-increment abandon counter for calls that are hung up while dialing members (issue #6289) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10019 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADDrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12major dialplan functions updatekpfleming1-9/+8
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01use string fields for some stuff in ast_channelkpfleming1-3/+4
const-ify some more APIs remove 'type' field from ast_channel, in favor of the one in the channel's tech structure allow string field module users to specify the 'chunk size' for pool allocations update chan_alsa to be compatible with recent const-ification patches git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-23changed some settings to app_args and some codemogorman1-57/+54
cleaning patch 6267 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8495 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22fix memory leak from not freeing the list of queue members when freeing a queuerussell1-36/+32
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8447 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22Bug 6312 - Macro janitortilghman1-103/+66
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8436 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21on this pass, only remove duplicate log messagesrussell1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21Bug 5936 - Cannot AddQueueMember on realtime queue, if queue not yet loaded ↵tilghman1-59/+90
(different fix than 1.2) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8402 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21revert my pass through the tree to remove checks of the result of ast_strduparussell1-8/+16
(revisions 8378 through 8381) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21remove lots of useless checks of the result of ast_strduparussell1-15/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20Merged revisions 8347 via svnmerge from russell1-5/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r8347 | russell | 2006-01-20 13:34:42 -0500 (Fri, 20 Jan 2006) | 2 lines fix invalid value of prev_q (issue #6302) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8348 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18constify arguments in more places where strings should not be modified ↵russell1-3/+3
(issue #6286) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17oops all better now.mogorman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8153 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17allow for multiple periodic announcementsmogorman1-5/+39
from bug 5273 with minor changes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 Spelling corrections (mostly in comments and doxygen areas) #6249 bweschke1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8100 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13Added QUEUE_MEMBER_COUNT and QUEUE_MEMBER_LIST mogorman1-1/+79
from bug 5451 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8069 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13Various cleanups from comments in an email from Luigi Rizzo. Thank you!russell1-2/+1
- Use a cleaner syntax for declaring the allocation macros - Fix return value for ast_strdup/ast_strndup - remove safe_strdup from app_macro, since ast_strup does the same thing - fix a place in app_queue where ast_calloc+strncpy was used instead of ast_strdup. If you are helping out with these conversions, please watch out for other places where this is done. - add a note to the coding guidelines about the fix to app_queue git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8065 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13added two new features to meetme, autofill and mogorman1-17/+38
autopause. thanks twisted from 5577 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 More memory wrapper and cleanup work. #6226 w/one very minor compile fix ↵bweschke1-20/+12
mod in app_rpt.c git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8044 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 Remove an unneccessary unlock and do away with the error msg about not ↵bweschke1-1/+0
being able to unlock the lock. #6201 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8020 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 More new memory wrapper work and initializing some memory allocations to ↵bweschke1-9/+6
zero where they weren't before. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8011 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-06allow limiting of queue members who will be delivered a given caller's call ↵kpfleming1-15/+43
by penalty setting git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7833 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30update doxygen docs to specify authorsrussell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-29avoid multiple strlen calls in complete_queuerussell1-4/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7667 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26Merged revisions 7634 via svnmerge from russell1-8/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r7634 | russell | 2005-12-26 13:19:12 -0500 (Mon, 26 Dec 2005) | 2 lines cast time_t to an int in printf/scanf (issue #5635) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7635 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-06Clarify purpose of function, by renamingtilghman1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7353 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-05Merged revisions 7337 via svnmerge from russell1-2/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r7337 | russell | 2005-12-04 19:09:12 -0500 (Sun, 04 Dec 2005) | 2 lines don't delete dynamic queue members when reloading the static members from a realtime database (issue #5922) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7338 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-04convert most of the option_*'s to a single ast_flags structure. Also, fix somerussell1-4/+4
formatting, remove some unnecessary casts, and other little code cleanups. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7331 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-03Bug 5858 - Make the chanvars.c functions return a 'const char *'tilghman1-3/+2
This should prevent us from unintentionally changing variable values when they're returned from pbx_builtin_getvar_helper. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7304 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/trunk@7248 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/trunk@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