aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-11-29incorporates r159808 from branches/1.4:kpfleming42-114/+140
------------------------------------------------------------------------ r159808 | kpfleming | 2008-11-29 10:58:29 -0600 (Sat, 29 Nov 2008) | 7 lines update dev-mode compiler flags to match the ones used by default on Ubuntu Intrepid, so all developers will see the same warnings and errors since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them format attributes in a consistent way ------------------------------------------------------------------------ in addition: move some format attributes from main/utils.c to the header files they belong in, and fix up references to the relevant functions based on new compiler warnings git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159818 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-29we can now build with -Wformat=2, which found a couple of real bugskpfleming9-188/+261
because SPRINTF() use non-literal format strings (which cannot be checked), move it into its own module so the rest of func_strings can benefit from format string checking git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159774 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-28Make res_config_ldap compile with the official OpenLDAP 2.3.X versions.mvanbaak1-0/+2
They removed the LDAP_DEPRECATED define from their source and since we are using a couple of deprecated function calls we should define it with a CFLAG. Tested by me on OpenBSD 4.4 and snuff-home on Linux to make sure everything keeps compiling. It shouldn't break, we only define the LDAP_DEPRECATED with this which is what all 2.2.X and older versions of OpenLDAP did in their own tree. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159734 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-27Removed duplicate codephsultan1-8/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159701 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Make a formatting change to test a new post-commit hook for reviewboard.russell1-1/+2
http://reviewboard.digium.com/r/65/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159666 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Make a formatting change to test a new post-commit hook for reviewboard.russell1-1/+3
http://reviewboard.digium.com/r/65/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159665 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Make a formatting change to test a new post-commit hook for reviewboard.russell1-1/+3
http://reviewboard.digium.com/r/65/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159664 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26improve handling of API calls provided by loaded modules through use of some ↵kpfleming9-38/+810
GCC features; this makes app_stack's usage of AGI APIs even cleaner, and will allow it to work 'as expected' either with or without res_agi being loaded reviewed at http://reviewboard.digium.com/r/62 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159631 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26add support for event suppression for AMI-over-HTTPkpfleming2-2/+24
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159629 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Blocked revisions 159571 via svnmergekpfleming0-0/+0
........ r159571 | kpfleming | 2008-11-26 14:21:04 -0600 (Wed, 26 Nov 2008) | 2 lines rename these files so as to avoid conflicts when users update their working copies and have unversioned files already in place ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159573 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Add some necessary hangup commands in the case that forwardingmmichelson1-0/+2
a call fails 1) Hang up the original destination if the local channel cannot be requested. 2) Hang up the local channel (in addition to the original destination) if ast_call fails when calling the newly created local channel. This prevents channels from sticking around forever in the case of a botched call forward (e.g. to an extension which does not exist). (closes issue #13764) Reported by: davidw Patches: 13764_v2.patch uploaded by putnopvut (license 60) Tested by: putnopvut, davidw git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159554 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Merged revisions 159476 via svnmerge from kpfleming4-15/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r159476 | kpfleming | 2008-11-26 12:36:24 -0600 (Wed, 26 Nov 2008) | 7 lines simplify (and slightly bug-fix) the recent developer-oriented COMPILE_DOUBLE mode ensure that 'make clean' removes dependency files for .i files that are created in COMPILE_DOUBLE mode ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159534 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26If the config file does not exist, then the first use crashes Asterisk.tilghman1-3/+3
(closes issue #13848) Reported by: klaus3000 Patches: udptl.c.patch uploaded by eliel (license 64) Tested by: blitzrage git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159475 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Don't allow for configuration options to overwrite optionsmmichelson1-5/+27
set via channel variables on a reload. (closes issue #13921) Reported by: davidw Patches: 13921.patch uploaded by putnopvut (license 60) Tested by: davidw git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159437 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26Always parse arguments in park_call_exec so that app_args is valid. This ↵jpeeler1-4/+2
prevents a crash when executing Park from the dialplan with no arguments. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159402 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Merged revisions 159316 via svnmerge from murf2-0/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r159316 | murf | 2008-11-25 15:41:10 -0700 (Tue, 25 Nov 2008) | 15 lines (closes issue #12694) Reported by: yraber Patches: 12694.2nd.diff uploaded by murf (license 17) Tested by: murf, laurav Thanks to file (Joshua Colp) for his IAX fix. the change to cdr.c allows no-answer to percolate up into CDR's, and feels like the right place to locate this fix; if BUSY is done here, no-answer should be, too. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159360 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Add an option, waitfordialtone, for UK analog lines which do not end a calltilghman5-73/+189
until the originating line hangs up. (closes issue #12382) Reported by: one47 Patches: zap-waitfordialtone-trunk.080901.patch uploaded by one47 (license 23) zap-waitfordialtone-bra-1.4.21.2.patch uploaded by fleed (license 463) Tested by: fleed git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159317 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Merged revisions 159269 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r159269 | tilghman | 2008-11-25 15:56:48 -0600 (Tue, 25 Nov 2008) | 7 lines Don't try to send a response on a NULL pvt. (closes issue #13919) Reported by: barthpbx Patches: chan_iax2.c.patch uploaded by eliel (license 64) Tested by: barthpbx ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159276 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Make the options for the general and profiles more consistentmmichelson1-1/+1
for the "pls_hold_prompt" option. This does not affect any released version of Asterisk, so there is no need to update the CHANGES file for this. (closes issue #13893) Reported by: eliel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159250 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Merged revisions 159246 via svnmerge from tilghman1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r159246 | tilghman | 2008-11-25 15:40:28 -0600 (Tue, 25 Nov 2008) | 14 lines Merged revisions 159245 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r159245 | tilghman | 2008-11-25 15:37:06 -0600 (Tue, 25 Nov 2008) | 7 lines Regression fix for last security fix. Set the iseqno correctly. (closes issue #13918) Reported by: ffloimair Patches: 20081119__bug13918.diff.txt uploaded by Corydon76 (license 14) Tested by: ffloimair ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159247 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Don't actually do anything with a negative priority, because we ignore it intilghman1-0/+6
the result, anyway. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159189 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Don't limit the length of the hint at the final step (from ~8100 chars maxtilghman1-3/+4
(or ~500 chars max on LOW_MEMORY) to 80 chars max). This will allow more channels to be used in a single hint. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159162 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Blocked revisions 159158 via svnmergerussell0-0/+0
........ r159158 | russell | 2008-11-25 11:34:50 -0600 (Tue, 25 Nov 2008) | 2 lines Add ao2_trylock() to go along with ao2_lock() and ao2_unlock() ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159159 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Add missing variable declaration for PPC codetwilson1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159093 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Copyright clarification; also, have variable set to "t" or "i" on timeout ortilghman1-8/+10
invalid extension, respectively. (closes issue #13944) Reported by: chappell git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159054 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Merged revisions 159025 via svnmerge from tilghman6-9541/+2776
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r159025 | tilghman | 2008-11-24 22:50:00 -0600 (Mon, 24 Nov 2008) | 3 lines System call ioperm is non-portable, so check for its existence in autoconf. (Closes issue #13863) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159050 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Make chan_usbradio compile under dev modetwilson1-7/+21
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158992 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25This is basically a complete rollback of r155401, as it was determined thatseanbright16-145/+236
it would be best to maintain API compatibility. Instead, this commit introduces ao2_callback_data() which is functionally identical to ao2_callback() except that it allows you to pass arbitrary data to the callback. Reviewed by Mark Michelson via ReviewBoard: http://reviewboard.digium.com/r/64 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158959 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Fix compiling in dev mode.mnicholson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158925 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-25Make the Join event from app_queue use CallerIDNum insead of CallerID formnicholson2-1/+4
indicating the callerid number just like the rest of asterisk. (closes issue #13883) Reported by: davidw git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158924 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-24Added EVENT_FLAG_AGI and used it for manager calls in res_agi.cmnicholson3-9/+11
(closes issue #13873) Reported by: fnordian Patches: ami_agievent.patch uploaded by fnordian (license 110) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158876 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-24Add a bit of documentation (thanks, I-MOD) on what the silence thresholdtilghman1-0/+7
constant actually does and what values are valid for it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158857 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-24Make ast_streamfile() check the result of ast_openstream() before doingmnicholson1-18/+18
anything with it. (closes issue #13955) Reported by: chris-mac git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158851 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-24This patch adds a new application for sending MWI to phones via Asterisk's ↵twilson1-92/+300
event subsystem. Also, the minivm documentation is all converted to use xmldocs. (closes issue #13946) Reported by: Marquis Patches: minivmmwi_plus_xmldocs.patch uploaded by Marquis (license 32) Tested by: otherwiseguy, Marquis git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158808 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-23If you enabled 'notifycid' one of the limitations is that the calling channelseanbright2-6/+22
is only found if it dialed the extension that was subscribed to. You can now specify 'ignore-context' for the 'notifycid' option in sip.conf which will, as it's value implies, ignore the current context of the caller when doing the lookup. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158756 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-23No need to use a separate structure for this since we can just passseanbright1-15/+4
our sip_pvt pointer in directly. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158754 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-22last commit worked on OpenBSD but still generated warning on Ubuntu.mvanbaak1-1/+1
Initialise a variable so --enable-dev-mode does not complain git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158723 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-22dont send reorder tone after a device is hungup if a dialout is abandoned or ↵mvanbaak1-6/+12
failed. Without this reorder tone will play after hangup and both wedhorn's and my wife have threatened to use an axe on our asterisk box (closes issue #13948) Reported by: wedhorn Patches: switch.diff uploaded by wedhorn (license 30) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158694 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-22Add Media Source Update to skinny's control2strmvanbaak1-0/+2
(issue #13948) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158690 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-22fix a very occasional core dump in chan_skinny found by wedhorn.mvanbaak1-1/+2
(issue #13948) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158688 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-22make this compile under devmodemvanbaak1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158686 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-22Blocked revisions 158629 via svnmergejpeeler0-0/+0
........ r158629 | jpeeler | 2008-11-21 18:04:36 -0600 (Fri, 21 Nov 2008) | 5 lines (closes issue #13786) Reported by: tzafrir When compiling against Zaptel dahdi_compat will now only define all the DAHDI defines if the Zaptel define is present. Also, there is no such thing as DAHDI_PRI. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158632 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Merged revisions 158603 via svnmerge from murf1-9/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r158603 | murf | 2008-11-21 16:14:50 -0700 (Fri, 21 Nov 2008) | 11 lines In reference to the fix made for 13871, I was merging the fix into 1.6.0 and realized I missed the code in the h-exten block, and didn't catch it because my test case had the h-exten commented out. So, this corrects the code I missed, as a preventative against another crash report. Tested with the h-exten defined, all is well. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158606 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Allow space within an extension, when the space is within a character class.tilghman1-9/+10
(requested by lmadsen on -dev, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158605 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Merged revisions 158600 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r158600 | tilghman | 2008-11-21 17:07:46 -0600 (Fri, 21 Nov 2008) | 5 lines The passed extension may not be the same in the list as the current entry, because we strip spaces when copying the extension into the structure. Therefore, use the copied item to place the item into the list. (found by lmadsen on -dev, fixed by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158602 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Merged revisions 158539 via svnmerge from russell2-0/+26
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r158539 | russell | 2008-11-21 16:05:55 -0600 (Fri, 21 Nov 2008) | 2 lines When compiling with DEBUG_THREADS, report the real file/func/line for ao2_lock/ao2_unlock ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158540 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Merged revisions 158483 via svnmerge from murf1-3/+5
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r158483 | murf | 2008-11-21 14:19:47 -0700 (Fri, 21 Nov 2008) | 11 lines (closes issue #13871) Reported by: mdu113 This one is totally my fault. The code doesn't even create a bridge CDR if the channel CDR has POST_DISABLED. I didn't check for that at the end of the bridge. Fixed with a few small insertions. Tested. Looks good. No cdr generated, no crash, no unnecc. data objects created either. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158484 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Fix for #13963. Make physical channel mapping unconfigured defaultmattf1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158482 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21as suggested by jtodd, document the purposes of the CHANGES and UPGRADE fileskpfleming5-6/+53
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158449 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Make sure we add the Event header for CoreShowChannels.qwell1-0/+1
(closes issue #13334) Reported by: srt Patches: 13334_missing_event_header_in_core_show_channel.diff uploaded by srt (license 378) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158414 f38db490-d61c-443f-a65b-d21fe96a405b