Commit Graph

511 Commits (2bf8f9fca312d9e738ed4e9dda6256cc286cc54c)

Author SHA1 Message Date
Kevin P. Fleming 5b8cef7ecb ensure that all remaining multi-object modules are built using their proper CFLAGS and include directory paths
18 years ago
Tilghman Lesher 7060a6888d When deleting a task from the scheduler, ignoring the return value could
18 years ago
Russell Bryant 665c498c52 Fix up setting the EID on BSD based systems.
18 years ago
Steve Murphy b04af32888 Applied the same fixes for ael.flex as was done in 97849 for ast_expr2.fl; overrode the normally generate yyfree func with our own version that checks the pointer for non-null before passing to free(). Also takes care of a little problem with 2.5.33 and the use of the __STDC_VERSION__ macro.
18 years ago
Russell Bryant 142e5dd457 Remove other remnants of pbx_kdeconsole
18 years ago
Russell Bryant 742fd8127c Remove pbx_kdeconsole from the tree. It hasn't worked in ages, and nobody has
18 years ago
Russell Bryant 3378ef39fd Strip terminal sequences from the verbose messages
18 years ago
Russell Bryant d8004449d5 Make pbx_gtkconsole build ... but doesn't actually load on my system still
18 years ago
Russell Bryant ec8a896935 Convert locks of the contexts list in pbx_config to the appropriate rdlock or wrlock
18 years ago
Russell Bryant 93748ccb9c pbx_dundi only needs a rdlock on the contexts list.
18 years ago
Kevin P. Fleming fd1e942f53 fix some copy-and-paste leftovers
18 years ago
Kevin P. Fleming 627f595c58 In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
18 years ago
Joshua Colp 107209927a Use ast_free to free memory, or else we shall implode if MALLOC_DEBUG is enabled.
18 years ago
Steve Murphy 164d8a5e61 In response to 10578, I just ran 1.4 thru valgrind; some of the config leakage I've already fixed, but it doesn't hurt to double check. I found and fixed leaks in res_jabber, cdr_tds, pbx_ael. Nothing major, tho.
18 years ago
Steve Murphy 3176ba94c3 closes issue #11108 -- where the 'dialplan save' cli command saves a file where the semicolon is not escaped. Fixed this; User also wanted comments to be preserved across dialplan save, but this is impossible at this point in time, because comments are not stored in the dialplan. They are 'compiled' out of extensions.conf. The only way to preserve those comments is to use the config file reader/writer that the GUI uses to allow online user edits. extensions.conf is first and foremost, a config file, and is read in by the normal config-file reading routines. Then, it is processed into a dialplan (context/exten structs).
18 years ago
Steve Murphy 6addd141d9 Included some verbage in the check_includes func, to inform the user that included contexts that have no match in the AEL, might be OK, as AEL cannot check in the extensions.conf or the in-memory contexts, as they may not be there at the time of the check.
18 years ago
Steve Murphy 4c7393a6a4 closes issue #11086 where a user complains that references to following contexts report a problem; The problem was REALLy that he was referring to empty contexts, which were being ignored. Reporter stated that empty contexts should be OK. I checked it out against extensions.conf, and sure enough, empty contexts ARE ok. So, I removed the restriction from AEL. This, though, highlighted a problem with multiple contexts of the same name. This should be OK, also. So, I added the extend keyword to AEL, and it can preceed the 'context' keyword (mixed with 'abstract', if nec.). This will turn off the warnings in AEL if the same context name is used 2 or more times. Also, I now call ast_context_find_or_create for contexts now, instead of just ast_context_create; I did this because pbx_config does this. The 'extend' keyword thus becomes a statement of intent. AEL can now duplicate the behavior of pbx_config,
18 years ago
Steve Murphy 94aabf9844 closes issue #11037 -- unable to specify app:spec in hint arguments
18 years ago
Joshua Colp 796cc69527 Fix tab completion for dundi show peer.
18 years ago
Russell Bryant ca69081253 Ensure the buffer passed to ast_canmatch_extension() is properly initialized so
18 years ago
Russell Bryant 91bfacc3ed Don't create the context for users in users.conf until we know at least one user exists.
18 years ago
Russell Bryant c27db984f9 Fix the potential use of an uninitialized buffer in a log message.
18 years ago
Steve Murphy 563c9e74a2 closes issue #10870 ; where a CUT() function call in a switch expr doesn't execute correctly, because the commas in the function args are not converted to vertbars before the func is called. I modified just the switch code to convert the commas to vertbars if there, but if more of these sort of probs are found, I may have to resort to something a little more fundamental. We'll see, I guess.
18 years ago
Steve Murphy ed75fa38e9 closes issue #10834 ; where a null input to a switch statement results in a hangup; since switch is implemented with extensions, and the default case is implemented with a '.', and the '.' matches 1 or more remaining characters, the case where 0 characters exist isn't matched, and the extension isn't matched, and the goto fails, and a hangup occurs. Now, when a default case is generated, it also generates a single fixed extension that will match a null input. That extension just does a goto to the default extension for that switch. I played with an alternate solution, where I just tack an extra char onto all the patterns and the goto, but not the default case's pattern. Then even a null input will still have at least one char in it. But it made me nervous, having that extra char in , even if that's a pretty secret and low-level issue.
18 years ago
Steve Murphy 8bf81e2bac Anything to keep gcc 4.2 happy...
18 years ago
Steve Murphy b7f66e48e8 closes issue #10777 -- by returning a null for the parse tree when there's really nothing there, and making sure we don't try to do checking on a null tree.
18 years ago
Steve Murphy fce1741a01 This is a regression update that matches what I did in 84134 for AEL regressions.
18 years ago
Steve Murphy 0ffda2d201 This issue sort of closes 10786; All config files support #include with globbing (you know, *,[chars],?,{list,list},etc), so I've updated the AEL system to support this also.
18 years ago
Russell Bryant a4dcd03dcb remove a todo item that has been completed
18 years ago
Steve Murphy 4cd59ff447 This closes issue #10788 -- The exact same fixes are made here for the first 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.
18 years ago
Steve Murphy eef551c063 This closes issue #10788 -- the 3rd arg in the for statement is now wrapped 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
18 years ago
Russell Bryant d6b8fb4dc0 gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
18 years ago
Russell Bryant 885a35488a When copying the contents from the wildcard peer, do a deep copy instead of
18 years ago
Jason Parker 6da68a5f0a Fix a small typo.
18 years ago
Russell Bryant 057505c5a3 The sample dundi.conf claims support for a wildcard peer entry - [*], but the
18 years ago
Joshua Colp f2ba32f8e9 (closes issue #10577)
18 years ago
Russell Bryant dce43f8d32 revert unintentional changes in rev 81226
18 years ago
Russell Bryant 9b1802ffa3 Add Russian tones. (closes issue #7953, hanabana)
18 years ago
Russell Bryant a9c8aa431f Add a \todo to note that this module leaks most of the memory it allocates on
18 years ago
Russell Bryant 264aeeca70 explicity define a variable as a boolean
18 years ago
Steve Murphy 765b1af228 backport of 80649, a fix to an unreported problem in the ael parser, that results in a crash on a 64bit machine
18 years ago
Steve Murphy 7d83255ef8 memset really, really needs to be used here.
18 years ago
Steve Murphy 9020699e0a This patch fixes bug 10411. I added a new regression test, some regression test cleanups
18 years ago
Steve Murphy 241769b53c From a user complaint on #asterisk, I have forced pbx_spool to explain what reason codes mean, when they are logged
18 years ago
Joshua Colp 6d143d401f Backport GCC 4.2 fixes. Without these Asterisk won't build under devmode using GCC 4.2.
18 years ago
Joshua Colp f836d642f9 (closes issue #10224)
18 years ago
Joshua Colp ce4e654f2c Few minor thread synchronization tweaks. (issue #10124 reported by gzero)
18 years ago
Joshua Colp 1944dea3bd Add a few sanity checks when writing out the dialplan. (issue #10157 reported by dome)
18 years ago
Russell Bryant fde5578a20 Merged revisions 72805 via svnmerge from
18 years ago
Russell Bryant 9fe9682f50 Merged revisions 72267 via svnmerge from
18 years ago