aboutsummaryrefslogtreecommitdiffstats
path: root/apps
AgeCommit message (Collapse)AuthorFilesLines
2007-11-04Simplify the implementation and the API for stringfields;rizzo1-2/+2
details and examples are in include/asterisk/stringfields.h. Not applicable to older branches except for 1.4 which will receive a fix for the routines that free memory pools. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88454 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01This commits the performance mods that give the priority processing engine ↵murf8-21/+15
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. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88166 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01Merged revisions 88026 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r88026 | file | 2007-11-01 10:27:37 -0300 (Thu, 01 Nov 2007) | 2 lines Fix up commit for my Zap channel with spies in Meetme fix. (thanks Tony Mountifield!) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88027 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01Janitor: use ast_free to pair calls of ast_malloc and ast_calloctilghman1-1/+1
Reported by: eliel Patch by: eliel Closes issue #11135 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88008 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-01Merged revisions 87970 via svnmerge from file1-3/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r87970 | file | 2007-10-31 22:53:55 -0300 (Wed, 31 Oct 2007) | 4 lines If a Zap channel contains a spy or a spy is added take it out of the conference in kernel space and make it go through Asterisk so the spy gets audio from both sides. (closes issue #10060) Reported by: mparker ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87971 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31Add volume adjustment in.file1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87851 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31Restore operation of the option that only writes when the channel is bridged.file1-17/+21
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87850 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31Add volume adjustment to spy audiohook in app_chanspy.file1-0/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87833 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-30If no '?' is found in the arguments, don't attempt to continue.tilghman1-0/+5
Reported by: blitzrage Fixed by: tilghman Closes issue #11111 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87724 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29If a caller is listen-only, then don't bother with doing talker detection.russell1-2/+2
(closes issue #10911, reported by junky, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87428 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29Adding the more flexible QUEUE_MEMBER function to replace the ↵mmichelson1-2/+80
QUEUE_MEMBER_COUNT function. A deprecation notice will be issued the first time QUEUE_MEMBER_COUNT is used. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87395 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29Make sure we set flags to a 0 value before trying to use it. Pointed out by ↵qwell1-1/+1
seanbright while I was debugging issue 11109. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87393 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29Remove duplicate stdlib.h include.file1-1/+0
(closes issue #11105) Reported by: eliel Patches: app_voicemail.c.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-26Added queue strategy "linear". This strategy is useful for those who always ↵mmichelson1-12/+71
wish for their phones to be rung in a specific order. (closes issue #7279, reported and initially patched by diLLec, patch reworked by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87154 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-25Add support for a muted user to request to talk. The '2' option in the userrussell1-6/+46
menu will adjust this status if a user is muted. The talk request status will be reflected in the CLI commands as well as the manager interface. (closes issue #9418) Reported by: imesper Patches: app_meetme_v2.patch uploaded by imesper (license 275) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87040 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-24Adding the general option "shared_lastcall" to queues so that a member's ↵mmichelson1-5/+38
wrapuptime may be used across multiple queues. (closes issue #9777, reported and patched by eliel) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86985 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22Convert some spaces to tabs and make it so the CLI command is only registeredrussell1-15/+10
once instead of 3 times. (closes issue #11053) Reported by: seanbright Patches: app_playback.patch uploaded by seanbright (license 71) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86835 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former ↵qwell8-26/+26
didn't make much sense git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22Merged revisions 86754 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86754 | file | 2007-10-22 13:15:18 -0300 (Mon, 22 Oct 2007) | 4 lines Make sure res is a positive value before performing the check to determine whether the user stopped it or not. (closes issue #11023) Reported by: cfc ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86755 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22Merged revisions 86694 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86694 | mmichelson | 2007-10-22 09:48:46 -0500 (Mon, 22 Oct 2007) | 5 lines Account for the fact that sometimes headers may be terminated with \r\n instead of just \n (closes issue #11043, reported by yehavi) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86696 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19Convert NEW_CLI to AST_CLI.qwell8-26/+26
Closes issue #11039, as suggested by seanbright. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86536 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19Fixed a buffer size issue.transnexus1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86439 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-18Merged revisions 86328 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86328 | mmichelson | 2007-10-18 12:38:26 -0500 (Thu, 18 Oct 2007) | 5 lines If a non-existent file is specified to be played either as a periodic announcement or as a hold/position announcement, the caller would be kicked out of the queue. No longer does this happen. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86329 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-18Changed some spaces to tabsmmichelson1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86298 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17Merged revisions 86202 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86202 | mmichelson | 2007-10-17 16:39:05 -0500 (Wed, 17 Oct 2007) | 6 lines Changing the strategy field of the call_queue struct to be signed instead of unsigned, since the code attempts to set the strategy to -1 if you specify a bogus strategy. While this isn't a huge issue in 1.4, it could be a problem for someone who, say, tries to use the roundrobin strategy in trunk (despite all the deprecation warnings in 1.4). ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86208 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-17Enhancements to realtime (closes issue #9609)tilghman1-27/+190
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86065 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16Removed the monitor-join option. If one wishes to mix audio, they should ↵mmichelson1-5/+0
instead use monitor-type=mixmonitor. (related to issue #10885) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86030 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16Fixing the build.mmichelson1-5/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85992 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16Fixing app_read so that if a timeout of less than 1 ms is specified,mmichelson1-1/+7
assume that 1 ms is desired. (closes issue #11000, reported and patched by michael-fig, with a warning line added by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85965 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16Merged revisions 85958 via svnmerge from mmichelson1-1/+21
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85958 | mmichelson | 2007-10-16 16:14:34 -0500 (Tue, 16 Oct 2007) | 5 lines Trying to remove a non-dynamic queue member via dynamic means can lead to some interesting (read nasty) situations. This patch clears up the issue by making only dynamic queue members removable via dynamic methods. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85959 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16Merged revisions 85896 via svnmerge from russell1-3/+0
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85896 | russell | 2007-10-16 14:10:01 -0500 (Tue, 16 Oct 2007) | 2 lines Remove a pointless lock. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85897 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-16Fix IMAP compilation error.mmichelson1-1/+1
(closes issue #10986, reported and patched by snuffy) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85883 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15Merged revisions 85720 via svnmerge from russell1-2/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85720 | russell | 2007-10-15 16:10:02 -0500 (Mon, 15 Oct 2007) | 3 lines Ensure that no pending state changes are leaked when the device state change thread gets stopped on module unload. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85721 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-15Another major doc directory update from IgorG. This patch includesrussell1-1/+1
- Many uses of the astlisting environment around verbatim text to ensure that it gets properly formatted and doesn't run off the page. - Update some things that have been deprecated. - Add escaping as needed - and more ... (closes issue #10978) Reported by: IgorG Patches: texdoc-85542-1.patch uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85547 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-12Allow for the position announcement to be turned off if desired.mmichelson1-18/+26
(closes issue #8515, reported by bruno_rocha, initial patch by bruno_rocha, final patch by qwell) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85527 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11Make sure we propogate ANI2 to the outbound channelmattf1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85499 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-11Merge a ton of NEW_CLI conversions. Thanks to everyone that helped out! :)russell3-182/+207
(closes issue #10724) Reported by: eliel Patches: chan_skinny.c.patch uploaded by eliel (license 64) chan_oss.c.patch uploaded by eliel (license 64) chan_mgcp.c.patch2 uploaded by eliel (license 64) pbx_config.c.patch uploaded by seanbright (license 71) iax2-provision.c.patch uploaded by eliel (license 64) chan_gtalk.c.patch uploaded by eliel (license 64) pbx_ael.c.patch uploaded by seanbright (license 71) file.c.patch uploaded by seanbright (license 71) image.c.patch uploaded by seanbright (license 71) cli.c.patch uploaded by moy (license 222) astobj2.c.patch uploaded by moy (license 222) asterisk.c.patch uploaded by moy (license 222) res_limit.c.patch uploaded by seanbright (license 71) res_convert.c.patch uploaded by seanbright (license 71) res_crypto.c.patch uploaded by seanbright (license 71) app_osplookup.c.patch uploaded by seanbright (license 71) app_rpt.c.patch uploaded by seanbright (license 71) app_mixmonitor.c.patch uploaded by seanbright (license 71) channel.c.patch uploaded by seanbright (license 71) translate.c.patch uploaded by seanbright (license 71) udptl.c.patch uploaded by seanbright (license 71) threadstorage.c.patch uploaded by seanbright (license 71) db.c.patch uploaded by seanbright (license 71) cdr.c.patch uploaded by moy (license 222) pbd_dundi.c.patch uploaded by moy (license 222) app_osplookup-rev83558.patch uploaded by moy (license 222) res_clioriginate.c.patch uploaded by moy (license 222) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85460 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-10Merged revisions 85276 via svnmerge from mmichelson1-194/+23
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85276 | mmichelson | 2007-10-10 09:26:31 -0500 (Wed, 10 Oct 2007) | 5 lines A bunch of changes from sprintf to snprintf. See security advisory AST-2002-022 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-10Merged revisions 85242 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85242 | file | 2007-10-10 11:14:56 -0300 (Wed, 10 Oct 2007) | 6 lines Close voicemail message description file if duration did not meet the minimum, or else we will eventually run out of file descriptors. (closes issue #10918) Reported by: brak2718 Patches: vm1.4.12.1.patch uploaded by brak2718 (license 279) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85254 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-09Patch to add one-touch parking for queues.mmichelson1-0/+10
(closes issue #10869, reported and patched by bluecrow76) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85177 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-09Remove redundant includes (patch by snuffy) (Closes issue #10922)tilghman5-7/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@85140 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-04A two-in-one patch from the bugtrackermmichelson1-1/+12
1) Fix some bad logic in the counting of statistics for QueueSummary manager event. Variables were not being reset for each additional queue, so cumulative totals were reported on each successive queue. 2) Add a longest hold time stat to QueueSummary manager event. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84726 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-04Merged revisions 84692 via svnmerge from mmichelson1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84692 | mmichelson | 2007-10-04 16:57:03 -0500 (Thu, 04 Oct 2007) | 5 lines Don't allocate space for queue members unless it's needed. You end up deleting dynamic members on a reload. Not good. closes issue (#10879, reported by dazza76, patched by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84693 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-04Merged revisions 84637 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84637 | file | 2007-10-04 11:51:57 -0300 (Thu, 04 Oct 2007) | 4 lines Create a duplicate of the channel's member name as the tab completion stuff will free it. (closes issue #10884) Reported by: adamg ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84638 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01Corydon posted this janitor project to the bug tracker and mvanbaak providedrussell2-2/+2
a patch for it. It replaces a bunch of simple calls to snprintf with ast_copy_string (closes issue #10843) Reported by: Corydon76 Patches: 2007092900_10843.diff uploaded by mvanbaak (license 7) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84173 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01Merged revisions 84166 via svnmerge from russell1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84166 | russell | 2007-10-01 09:24:49 -0500 (Mon, 01 Oct 2007) | 2 lines Simplify the CAN_EARLY_BRIDGE macro a bit. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84167 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01Merged revisions 84158 via svnmerge from file1-5/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r84158 | file | 2007-10-01 10:49:36 -0300 (Mon, 01 Oct 2007) | 4 lines Only attempt early bridging if the options given to Dial() permit it. (closes issue #10861) Reported by: peekyb ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@84159 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-24interface_exists_global was never returning 1. Most likely an error from my ↵mmichelson1-0/+1
merge on Friday. (closes issue #10817, reported and patched by snar, patch simplified by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83656 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-22Add the MeetmeList and Reload manager commands, which supplement the need to ↵tilghman1-0/+78
have Command privilege. (closes issue #10736) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83532 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21Fix some areas where we were still using '|' for an argument delimiter ↵tilghman1-28/+42
(closes issue #10793) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@83484 f38db490-d61c-443f-a65b-d21fe96a405b