summaryrefslogtreecommitdiff
path: root/channels/chan_agent.c
AgeCommit message (Collapse)Author
2006-08-21merge new_loader_completion branch, including (at least):Kevin P. Fleming
- 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: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19deprecate chan_agent callback modeKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-19merge Russell's 'hold_handling' branch, finally implementing music-on-hold ↵Kevin P. Fleming
handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-07Merged revisions 37212 via svnmerge from BJ Weschke
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37212 | bweschke | 2006-07-06 15:38:45 -0500 (Thu, 06 Jul 2006) | 3 lines Don't do wierd things on a callback agent that has attempted logoff while still on the phone. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-07-03Blocked revisions 36725 via svnmergeRussell Bryant
........ r36725 | russell | 2006-07-03 00:19:09 -0400 (Mon, 03 Jul 2006) | 4 lines use ast_set_callerid to be more consistent and to make sure that the "callerid" option in the conf files is always handled the same way and sets ANI (issue #7285, gkloepfer) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-27Code cleanup while trying to understand this channel...Olle Johansson
- please check git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-21Add video support to chan_agent. Olle Johansson
More ideas for developing better video support in Asterisk? Join the asterisk-video mailing list to help out in the Asterisk Video Task Force! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35365 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-16 Fixed per kpfleming's suggestion to asterisk-dev.BJ Weschke
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-16 Make sure agent_tech is unregistered within unload_module(). It's in 1.2, ↵BJ Weschke
but was lost at some point in /trunk. #7374 (jstorm) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-14- Use our standard of doxygen comments, not javadoc styleOlle Johansson
- small reformatting changes git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-13use a compiler builtin (which uses processor instructions) for this operationKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵Kevin P. Fleming
again :-) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-11 - The recent change to linklists.h broke the build on linux for some reason.Russell Bryant
So, I have removed all of the uses of AST_LIST_HEAD_INIT and replaced them with the equivalent static initializations. - On passing, fix a memory leak in the unload_module() function of chan_agent. The agents list mutex was never destroyed, and the elements in the agents list were not freed. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().Russell Bryant
As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-10ensure that control frames with payload can be sent to channel drivers via ↵Kevin P. Fleming
->indicate() update iax2_indicate to pass control frame payload to the connected channel add an API call for sending an indication with payload, and use it for control frames with payload git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26417 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08Merged revisions 25563 via svnmerge from BJ Weschke
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r25563 | bweschke | 2006-05-08 10:12:20 -0400 (Mon, 08 May 2006) | 3 lines Don't show agents as available when they are in wrap-up time. #6726 (ZX81) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-05-08woohoo asterdevcon first commit, adds feature to Matt O'Gorman
cli for agents, show agents online , patch from bug 7096 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25441 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-24Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have ↵Kevin P. Fleming
autoconf and menuselect tools for Asterisk! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-15add the ability to turn off the feature that allows agents to end callsRussell Bryant
by pressing '*'. This is still on by default. (issue #6897) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14This rather large commit changes the way modules are loaded. Luigi Rizzo
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: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-08since the module API is changing, it's a good time to const-ify the ↵Kevin P. Fleming
description() and key() return values git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-05Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) ↵Tilghman Lesher
rand() to threadsafe ast_random() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28optimize a bit name completion by avoiding repeated calls toLuigi Rizzo
strlen(word), localize variables and normalize the test for finding the candidate string. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-27Janitor work converting !ast_strlen_zero(a)?a:bMatt O'Gorman
to S_OR functions. from bug note 6805 with minor modifications. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-26conversions to S_OR (issue #6803)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25Add micro-http server and abstract manager interface, make snmp not die Mark Spencer
on reload. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15remove the uses of the deprecated STANDARD_LOCAL_USERRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15Merged revisions 10137 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r10137 | kpfleming | 2006-02-14 19:21:33 -0600 (Tue, 14 Feb 2006) | 2 lines ensure that agents logged in via the manager interface are stored in the persistence database (related to issue #6301) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-14add 'systemname' option to prefix channel unique IDs with (issue #5825)Kevin P. Fleming
convert chan->uniqueid to a stringfield from a fixed-size buffer git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-12major dialplan functions updateKevin P. Fleming
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01use string fields for some stuff in ast_channelKevin P. Fleming
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: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-31define a global null_frame object so when queueing a null frame, you don'tRussell Bryant
have to allocate one on the stack git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-30Merge Rizzo's waitfor update (bug #4584)Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25use arg parsing macros in the AGENT dialplan function (issue #6236, with ↵Russell Bryant
small mods) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8676 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-25store agent_pvt list using linked list macros (issue #6342)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21on this pass, only remove duplicate log messagesRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21revert my pass through the tree to remove checks of the result of ast_strdupaRussell Bryant
(revisions 8378 through 8381) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21remove some useless checks of the result of ast_strdupaRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-20More doxygen updatesOlle Johansson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8315 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-18constify arguments in more places where strings should not be modified ↵Russell Bryant
(issue #6286) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8203 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-14 Code cleanup spawned from an earlier commit today r8063. Standardize ↵BJ Weschke
manager event responses and queue_log behavior on callbacklogoff. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13Made chan_agent code parsing more robust andMatt O'Gorman
implemented new macro code. from 6228. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13 Implement the autologoffunavail option in chan_agent (#6038 with some minor ↵BJ Weschke
mods) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8063 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13added some minor changes from bug 6046 thanks ppyyMatt O'Gorman
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-13fix spelling errors (issue #6227)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-12Added option for limiting a user from logging inMatt O'Gorman
as multiple agents at same time. bug 6046 thanks ppyy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8021 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-12removed unused variable and config parsing for itMatt O'Gorman
as to bug 6219 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11Merged revisions 7986 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r7986 | russell | 2006-01-11 14:08:53 -0500 (Wed, 11 Jan 2006) | 2 lines move variable to correct scope (issue #6197) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11convert some channels to use the memory allocation wrappers.Russell Bryant
(This is being added to the janitor projects list.) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-06Merged revisions 7829 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r7829 | kpfleming | 2006-01-05 18:21:00 -0600 (Thu, 05 Jan 2006) | 2 lines update agent persistence when an agent gets logged off by autologoff ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7830 65c4cc65-6c06-0410-ace0-fbb531ad65f3