aboutsummaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2010-07-12Allow netsock2.c to compile on systems that do not define AI_NUMERICSERV.mmichelson1-0/+4
(closes issue #17617) Reported by: pprindeville Patches: asterisk-trunk-bugid17617.patch uploaded by pprindeville (license 347) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275587 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Fix some issues related to dynamic feature groups in features.conf.russell1-20/+63
The bridge handling code did not properly consider feature groups when setting parameters that would affect whether or not a native bridge would be attempted. If DYNAMIC_FEATURES only include a feature group, a native bridge would occur that may prevent features from working. Fix a bug in verbose output that would show the key mapping as empty if it was using the default mapping and not a custom mapping in the feature group. Add feature groups to the output of "features show". Adjust the feature execution logic to match that of the logic when executing a feature that was not configured through a feature group. Update features.conf.sample to show that an '=' is still required if using the default key mapping from [applicationmap]. Finally, clean up a little bit of formatting to better coform to coding guidelines while in the area. (closes issue #17589) Reported by: lmadsen Patches: issue_17589.rev4.txt uploaded by russell (license 2) Tested by: russell, lmadsen git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275424 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Add missing ao2_iterator_destroy().russell1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275310 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Merged revisions 275182 via svnmerge from mnicholson1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r275182 | mnicholson | 2010-07-09 13:23:23 -0500 (Fri, 09 Jul 2010) | 2 lines give a better error message when attempting to unload a module that is not loaded ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275186 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Merged revisions 275143 via svnmerge from mnicholson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r275143 | mnicholson | 2010-07-09 12:50:05 -0500 (Fri, 09 Jul 2010) | 2 lines don't unload modules that returned AST_MODULE_LOAD_DECLINE when they were loaded ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275144 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Kill some startup warnings and errors and make some messages more helpful in ↵tilghman4-13/+14
tracking down the source. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275105 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Merged revisions 275021 via svnmerge from russell1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r275021 | russell | 2010-07-09 10:33:08 -0500 (Fri, 09 Jul 2010) | 4 lines Document that a leading and trailing slash is expected for test categories. Also, emit a warning if a test is registered without one of these. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275022 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-09Sadly we can't dereference a pointer cast and use it as an lvalue without ↵simon.perreault1-1/+1
getting this warning (at least with gcc 4.4.4): netsock2.c:492: warning: dereferencing pointer ‘({anonymous})’ does break strict-aliasing rules So we're back to using memcpy()... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274909 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-08Add IPv6 to Asterisk.mmichelson9-205/+823
This adds a generic API for accommodating IPv6 and IPv4 addresses within Asterisk. While many files have been updated to make use of the API, chan_sip and the RTP code are the files which actually support IPv6 addresses at the time of this commit. The way has been paved for easier upgrading for other files in the near future, though. Big thanks go to Simon Perrault, Marc Blanchet, and Jean-Philippe Dionne for their hard work on this. (closes issue #17565) Reported by: russell Patches: asteriskv6-test-report.pdf uploaded by russell (license 2) Review: https://reviewboard.asterisk.org/r/743 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274783 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-08Generate a correct AstData string for ast_callerid.cid_tonrmudgett1-11/+39
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274782 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-08Fix trunk compile.rmudgett1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274773 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-08Implement AstData API data providers as part of the GSOC 2010 project,eliel5-86/+850
midterm evaluation. Review: https://reviewboard.asterisk.org/r/757/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274727 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-06Uh, yeah.tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@274053 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-05Merged revisions 273884 via svnmerge from pabelanger1-3/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r273884 | pabelanger | 2010-07-05 09:51:29 -0400 (Mon, 05 Jul 2010) | 8 lines Remove extra line breaks from 'core show config mappings' (closes issue #17583) Reported by: pabelanger Patches: issue17583.patch uploaded by pabelanger (license 224) Tested by: lmadsen ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273886 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-02Merged revisions 273717 via svnmerge from tilghman1-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r273717 | tilghman | 2010-07-02 12:09:47 -0500 (Fri, 02 Jul 2010) | 8 lines Autoservice loop optimization causes a busy loop, when channels are serviced while in hangup. (closes issue #17564) Reported by: ramonpeek Patches: 20100630__issue17564.diff.txt uploaded by tilghman (license 14) Tested by: ramonpeek ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273718 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-02Fix various typos reported by Lintiantzafrir4-5/+5
(Also fix the typos in the comments) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273641 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-01Merged revisions 273565 via svnmerge from russell1-1/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r273565 | russell | 2010-07-01 17:09:19 -0500 (Thu, 01 Jul 2010) | 7 lines Don't return a partially initialized datastore. If memory allocation fails in ast_strdup(), don't return a partially initialized datastore. Bad things may happen. (related to ABE-2415) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273566 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-01Fixed whitespace problemsmnicholson1-10/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273352 f38db490-d61c-443f-a65b-d21fe96a405b
2010-07-01Altered my comment about TCP_NODELAYmnicholson1-4/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273350 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-30Set TCP_NODELAY on manager TCP sockets to prevent delays on outgoing ↵mnicholson1-0/+15
packets. This regression was introduced in r48338. AST-359 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273270 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-30Permission checking for the system application is backwards.tilghman1-1/+1
(closes issue #17550) Reported by: kenner Patches: manager.c.diff uploaded by kenner (license 1040) Tested by: kenner git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273144 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-30Don't attempt to proceed if our internal parser indicates an invalid file.tilghman1-1/+3
(closes issue #17560) Reported by: Nick_Lewis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273142 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-29Send DialPlanComplete as a response, not as a separate event.tilghman1-1/+1
Otherwise, it goes to all manager sessions and may exclude the current session, if the Events mask excludes it. (closes issue #17504) Reported by: rrb3942 Patches: showdialplan_patch.diff uploaded by rrb3942 (license 1003) Tested by: rrb3942 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@273054 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Merged revisions 272925 via svnmerge from tilghman1-4/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r272925 | tilghman | 2010-06-28 16:50:02 -0500 (Mon, 28 Jun 2010) | 8 lines Don't change ownership/group/permissions on run directory, if it already exists. (closes issue #17076) Reported by: stuarth Patches: 20100324__issue17076.diff.txt uploaded by tilghman (license 14) Tested by: stuarth ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@272926 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-28Merged revisions 272921-272922 via svnmerge from tilghman1-15/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r272921 | tilghman | 2010-06-28 16:29:27 -0500 (Mon, 28 Jun 2010) | 8 lines Change the way that we read include files, to accommodate for changes in GCC 4.4. (closes issue #17472) Reported by: seandarcy Patches: config2.patch uploaded by nivan (license 1066) Tested by: nivan ........ r272922 | tilghman | 2010-06-28 16:38:49 -0500 (Mon, 28 Jun 2010) | 2 lines Also trim trailing blanks on #includes ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@272923 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-23Correct manager variable 'EventList' case.pabelanger1-1/+1
(closes issue #17520) Reported by: kobaz Patches: manager.patch uploaded by kobaz (license 834) Tested by: lmadsen git-svn-id: http://svn.digium.com/svn/asterisk/trunk@272252 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-22minor fixes for white/black event filtersdvossel1-19/+33
This fixes a ref count leak in event filters and checks for a filter container allocation failure during session creation. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271905 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-22Add regular expression filtering for manager events.jpeeler1-3/+127
This patch as documented in the sample config allows one to optionally apply white, black, or both types of filtering to manager events. The new 'eventfilter' option is set per user. (closes issue #14861) Reported by: fnordian Patches: eventfilter3.patch uploaded by fnordian (license 110), modified by me Review: https://reviewboard.asterisk.org/r/673/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271868 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-22fixes attended transfer behavior when both transferee and transferer hung updvossel1-0/+5
If both the transferer and transferee of a attended transfer hangup before the new channel picks up, the new channel should be hung up as well as it has no endpoint to talk to. This mirrors the expected behavior used in 1.4. (closes issue #17444) Reported by: corruptor git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271831 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-18file.c was truncating audio file formats to the lower 32bits.dvossel1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271341 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-17adds support for slin16 in sipdvossel1-3/+5
(closes issue #16153) Reported by: kfister Patches: 16153-1.6.2.0-rc5.patch uploaded by kfister (license 912) slin16.sip.patch.1 uploaded by malcolmd (license 924) Tested by: kfister, malcolmd git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271261 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-17adds speex 16khz audio supportdvossel3-11/+16
(closes issue #17501) Reported by: fabled Patches: asterisk-trunk-speex-wideband-v2.patch uploaded by fabled (license 448) Tested by: malcolmd, fabled, dvossel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271231 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-16Set sin_family to AF_INET when doing lookups, also reset sin_port the first ↵mnicholson2-9/+12
time the ip address changes. (closes issue #17496) Reported by: ManChicken (closes issue #15827) Reported by: DennisD Patches: dnsmgr_15827.patch uploaded by chappell (license 8) Tested by: DennisD, gentlec, damage, wimpy git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270974 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-16addition of G.719 pass-through supportdvossel3-0/+12
(closes issue #16293) Reported by: malcolmd Patches: g719.passthrough.patch.7 uploaded by malcolmd (license 924) format_g719.c uploaded by malcolmd (license 924) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270940 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-15Don't continue sending the file when there has been an errortwilson1-0/+1
If there is a problem with a firmware file, Polycom phones will close the connection. We were continuing to send the file anyway. There should be no reason to continue sending a file if there is an error writing it. (closes issue #16682) Reported by: lmadsen git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270692 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-15Merged revisions 270583 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r270583 | tilghman | 2010-06-15 13:25:12 -0500 (Tue, 15 Jun 2010) | 5 lines Variables have always been case-sensitive, so we should not be removing case-insensitive matches. Bug reported via the -dev list. See http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270584 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-11Merged revisions 269960 via svnmerge from tilghman1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r269960 | tilghman | 2010-06-11 13:23:05 -0500 (Fri, 11 Jun 2010) | 8 lines For SpeeX, 0 bits remaining is valid and does not need an emitted warning. (closes issue #15762) Reported by: nblasgen Patches: issue15672.patch uploaded by pabelanger (license 224) Tested by: nblasgen ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269976 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-11Add DBGetComplete event after a DBGetResponse.tilghman1-0/+4
(closes issue #16965) Reported by: rrb3942 Patches: DBGetComplete.patch uploaded by rrb3942 (license 1003) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269938 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-11Remove lines from the output related to the backtrace itself.tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269936 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-10Merged revisions 269821 via svnmerge from mmichelson1-4/+22
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r269821 | mmichelson | 2010-06-10 14:30:12 -0500 (Thu, 10 Jun 2010) | 19 lines Fix potential crash when writing raw SLIN audio on a PLC-enabled channel. The issue here was that the frame created when adjusting for PLC had no offset to its audio data. If this frame were translated to another format prior to being sent out an RTP socket, all went well because the translation code would put an appropriate offset into the frame. However, if the SLIN audio were not translated before being sent out the RTP socket, bad things would happen. Specifically, the ast_rtp_raw_write makes the assumption that the frame has at least enough of an offset that it can accommodate an RTP header. This was not the case. As such, data was being written prior to the allocation, likely corrupting the data the memory allocator had written. Thus when the time came to free the data, all hell broke loose. ....Well, Asterisk crashed at least. The fix was just what one would expect. Offset the data in the frame by a reasonable amount. The method I used is a bit odd since the data in the frame is 16 bit integers and not bytes. I left a big ol' comment about it. This can be improved on if someone is interested. I was more interested in getting the crash resolved. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269822 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-10Ensure that 'logger show channels' works properly when wildcards are used in ↵kpfleming1-1/+1
logger.conf. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269707 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-10Merged revisions 269635 via svnmerge from tilghman2-0/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010) | 9 lines Ensure restartable system calls can restart (BSD signal semantics). This eliminates the annoying <beep> on the console. (closes issue #17477) Reported by: jvandal Patches: 20100610__issue17477.diff.txt uploaded by tilghman (license 14) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269636 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-09Attempt to fix FreeBSD build problem.russell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269569 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-09Resolve an invalid memory read on an event.russell1-4/+13
Valgrind pointed out that attempting to get an IE value from an event that has no IEs produces an invalid memory read past the end of the event. Thanks to mmichelson for pointing the problem out to me and then testing the fix. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269417 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-09Merged revisions 269334 via svnmerge from pabelanger1-6/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r269334 | pabelanger | 2010-06-09 13:24:53 -0400 (Wed, 09 Jun 2010) | 12 lines Fix Debian init script to not use -c. When using the init script as-is currently, it could cause issues on Debian such as high CPU usage. This fix has worked for several people so I'm implementing the change. We now handle color displays properly. (closes issue #16784) Reported by: pabelanger Patches: 20100530__issue16784__2.diff.txt uploaded by tilghman (license 14) Tested by: pabelanger, tilghman ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269346 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-08Fix some doxygen warnings.lmadsen5-7/+8
(closes issue #17336) Reported by: snuffy Patches: doxygen-fixes1.diff uploaded by snuffy (license 35) Tested by: russell git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268969 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-08Add SRTP support for Asterisktwilson4-0/+126
After 5 years in mantis and over a year on reviewboard, SRTP support is finally being comitted. This includes generic CHANNEL dialplan functions that work for getting the status of whether a call has secure media or signaling as defined by the underlying channel technology and for setting whether or not a new channel being bridged to a calling channel should have secure signaling or media. See doc/tex/secure-calls.tex for examples. Original patch by mikma, updated for trunk and revised by me. (closes issue #5413) Reported by: mikma Tested by: twilson, notthematrix, hemanshurpatel Review: https://reviewboard.asterisk.org/r/191/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268894 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-07Seems strange (and the code backs up) that if the max and min of a statistic ↵tilghman1-1/+1
is expressed as a double, the last value would not also need to be a double. (closes issue #15807) Reported by: klaus3000 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268773 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-07Event well was going dry.tilghman1-0/+5
(issue #17234) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268731 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-07Set threshold for silence detection defaults to 256pabelanger1-5/+17
(closes issue #15685) Reported by: david_s5 Patches: dsp-silence-threshold-init.diff uploaded by dant (license 670) issue15685.patch.v5 uploaded by pabelanger (license 224) Tested by: danti Review: https://reviewboard.asterisk.org/r/670/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@268690 f38db490-d61c-443f-a65b-d21fe96a405b