aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
AgeCommit message (Collapse)AuthorFilesLines
2007-09-29This issue sort of closes 10786; All config files support #include with ↵murf2-180/+349
globbing (you know, *,[chars],?,{list,list},etc), so I've updated the AEL system to support this also. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@84133 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-27remove a todo item that has been completedrussell1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83976 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-22This closes issue #10788 -- The exact same fixes are made here for the first ↵murf1-3/+38
arg in the for(arg1; arg2; arg3) {} statement, as were done for the 3rd arg. It can now be an assignment that will embedded in a Set() app, or a macro call, or an app call. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83589 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-22This closes issue #10788 -- the 3rd arg in the for statement is now wrapped ↵murf1-5/+40
in Set() only if there's an '=' in that string. Otherwise, if it begins with '&', then a Macro call is generated; otherwise it is made into an app call. A bit more accomodating, keeps the new guys happy, and the guys with ael-1 code should be happy, too git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83558 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set ofrussell3-20/+18
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2. (closes issue #10774, patch from qwell) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18When copying the contents from the wildcard peer, do a deep copy instead ofrussell1-1/+31
shallow copy so that it doesn't crash when beging destroyed. (closes issue #10546, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82802 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-13Fix a small typo.qwell1-1/+1
retrytime > waittime git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82358 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-11The sample dundi.conf claims support for a wildcard peer entry - [*], but therussell1-3/+34
code did not support it. This patch makes it work. (closes issue #10546, patch by dds, with some changes by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82250 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-11(closes issue #10577)file1-0/+5
Reported by: jamesgolovich Patches: asterisk-dundifree.diff.txt uploaded by jamesgolovich (license 176) Don't leak memory when unloading DUNDi. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82243 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-28revert unintentional changes in rev 81226russell1-5/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81228 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-28Add Russian tones. (closes issue #7953, hanabana)russell1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81226 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27Add a \todo to note that this module leaks most of the memory it allocates onrussell1-0/+1
unload and should be fixed (when I'm not in the middle of something else ...). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81074 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27explicity define a variable as a booleanrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81065 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24backport of 80649, a fix to an unreported problem in the ael parser, that ↵murf3-236/+230
results in a crash on a 64bit machine git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80689 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13memset really, really needs to be used here.murf1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79363 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13This patch fixes bug 10411. I added a new regression test, some regression ↵murf9-129/+193
test cleanups git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79255 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10From a user complaint on #asterisk, I have forced pbx_spool to explain what ↵murf1-1/+1
reason codes mean, when they are logged git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79099 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode ↵file1-1/+1
using GCC 4.2. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75712 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18(closes issue #10224)file1-6/+7
Reported by: irroot Record the threadid of each running thread before shutting them down as the thread themselves may change the value. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75583 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Few minor thread synchronization tweaks. (issue #10124 reported by gzero)file1-4/+13
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74045 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Add a few sanity checks when writing out the dialplan. (issue #10157 ↵file1-2/+2
reported by dome) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73930 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-01Merged revisions 72805 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72805 | russell | 2007-07-01 18:51:34 -0500 (Sun, 01 Jul 2007) | 5 lines When appending lines to call files to keep track of retries, write a leading newline just in case the original call file did not have a newline at the end. This fix is in response to a problem I saw reported on the asterisk-users mailing list. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72806 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Merged revisions 72267 via svnmerge from russell1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72267 | russell | 2007-06-27 16:06:45 -0500 (Wed, 27 Jun 2007) | 5 lines Fix a minor issue with parsing the priority number. You could have as much whitespace as you want around a numeric priority, but you couldn't have any whitespace around a special priority like "n" or "hint". (issue #10039, reported by mitheloc, fixed by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72272 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Make unloading of pbx_dundi actually work.file1-2/+15
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72006 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-11"dialplan save" produced garbage in the config filetilghman1-8/+19
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@68595 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05this fixes bug 9883, wherein macros were not allowing the includes ↵murf3-231/+270
construct. fixed and tested, looks OK. Now includes can serve as an adjunct to catch. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67526 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-05Added code to automatically add a default case to switches that don't have ↵murf1-0/+27
one. In some cases, rather than fall thru, it results in a goto with -1 result, which terminates the extension; a sort of dialplan seqfault, sort of. This was required to fix bug reported in 9881 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67420 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-03updated the ael regressions to match what's in trunkmurf6-14/+456
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62913 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-03These mods fix bug 9623, where an '@' in the eswitch contents causes a ↵murf8-1176/+1185
syntax error. I also updated the regressions. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62883 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-02continue in for-loop should go to the incrementer, not the test. As per ↵murf1-1/+1
9435, thanks to marcelbarbulescu git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59688 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-27via 9373 (duplicate context in AEL crashes asterisk), kpfleming pointed on ↵murf1-1/+1
asterisk-dev, that DECLINE in this case the proper thing to do. This change now has it doing the proper thing. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59261 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26fix for 9373 (duplicate context in AEL crashes asterisk). I turned a ↵murf1-3/+3
duplicate context from a WARNING to an ERROR. Now you get a module load failure, and asterisk just exits. That's better than a crash, right\? git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59228 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26A fix for the flex input files, DONT_COMPILE, and STANDALONE_AELmurf2-6/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59206 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-26Have ast_copy_string magically appear in the aelparse binary! DONT_OPTIMIZE ↵file1-0/+4
should now work once again. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59200 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-20The fix for the AEL <<security hole>> (bug 9316) is here...murf1-11/+16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59069 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-03Updated the regression testsmurf4-35/+41
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57707 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-02I almost had comma escapes right, but 9184 points out the problem-- the ↵murf1-0/+8
escape is removed by pbx_config, and pbx_ael should also, before sending it down into the pbx engine. Also, you have to insert it back in, if you are generating extensions.conf code from the AEL. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57426 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-28I was surprised that I had not yet downgraded missing goto targets and macro ↵murf1-10/+38
call defs to a warning, in case they are in extensions.conf; I rectified this problem. Also, A goto in a macro to a target in a catch block was not being found; I fixed this too; the cause was that I needed to treat catch statements like an extension in the find_match code. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57049 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-26Merged revisions 56850 via svnmerge from file1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r56850 | file | 2007-02-26 15:05:02 -0500 (Mon, 26 Feb 2007) | 2 lines Obey the clearglobalvars option in extensions reload (or dialplan reload depending on your version). (issue #9146 reported by ramonpeek) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@56856 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Fix setting "autofallthrough" to yes by default. It was set to enabled inrussell1-2/+4
pbx.c. However, if the option was not present in extensions.conf, then pbx_config.c would set it back to disabled. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@54898 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-31Merged revisions 53045 via svnmerge from russell2-0/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r53045 | russell | 2007-01-31 15:25:11 -0600 (Wed, 31 Jan 2007) | 3 lines Fix a bunch of places where pthread_attr_init() was called, but pthread_attr_destroy() was not. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53046 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-29Argument number correctiontilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@52679 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-22This fixes 8836, according to dnaturalmurf1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51409 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-06Save 1 whopping byte of allocated memory!qwell1-1/+1
This looks like it may have been a chicken/egg scenario.. You had to call a cleanup func, because everything was allocated. Then since you had to call a cleanup func, you were forced to allocate - ie; strdup(""). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49742 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-02This is a slight modification to Josh's edits for #8579; both files edited ↵murf2-2/+2
were the produced by flex; so the source files need to be changed instead, and the generated files regenerated. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49237 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30IAX has been deprecated for quite some time so we had better use IAX2 when ↵file1-1/+1
creating the dial string for users. (issue #8697 reported by ssokol) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49073 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-30A fix for 8661, where the CUT func needed to have comma args converted to ↵murf1-1/+16
vertical bars. I hope this change does little harm. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49061 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28removed <err.h> as in trunk from the ael stuff. Also, threw in a minor fix ↵murf3-97/+112
to frame.c to avoid build-killing compiler warnings. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49020 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27ast_copy_string is not available when LOW_MEMORY is used and things are ↵file1-1/+1
being built in the utils directory, so we need to resort to the old method of strncpy. (issue #8579 reported by mottano) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49009 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27Merged revisions 48037 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48037 | file | 2006-11-27 10:30:37 -0500 (Mon, 27 Nov 2006) | 2 lines Do not reference the freed outgoing structure in the debug message. (issue #8425 reported by arkadia) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48038 f38db490-d61c-443f-a65b-d21fe96a405b