Tilghman Lesher
aa7f0bf1b2
The addition of autoservice to func_curl additionally made func_curl dependent
...
on the existence of a channel, with no real reason. This should make func_curl
once again work without a channel.
Reported by jmls.
Fixed by tilghman.
Closes issue #11090
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
5ee24bef92
Backport alternate encoding of newline delimiters from trunk to 1.4, as approved by Russell
...
Reported by blitzrage
Closes issue #10903
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Steve Murphy
9ecad31855
closes issue #11052 -- where nothing after the ? will allow un-initialized variable values to corrupt and crash asterisk on 64-bit platforms
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@86902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
f59ad2a3ed
Using curl can take a substantial amount of time, so the channel should be
...
autoserviced while waiting for it to complete.
(closes issue #10725 , reported by mnicholson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@83177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
a390611c48
The IF() function was not allowing true values that had embedded colons (closes issue #10613 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
7b1aaf8791
Revert very broken fix for issue #10540 ... none of these values take ms so I
...
don't know what I was thinking
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80547 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
e5be9cb65f
Fix func_timeout to take values in floating point so 1.5 actually means
...
1.5 seconds instead of being rounded.
(closes issue #10540 , reported by spendergrass, patch by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80539 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
cbdc6b5b2d
To prevent 92138749238754 more reports of "I have unixodbc installed, but
...
still can't build *_odbc.so!", check for ltdl directly, instead of just listing
it as another library to include in the unixodbc check in the configure script.
This also makes ltdl show up as a dependency in menuselect so people know what
to go install. (related to issue #9989 , patch by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69702 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Jason Parker
5305d9c27f
Merged revisions 69258 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r69258 | qwell | 2007-06-14 10:15:53 -0500 (Thu, 14 Jun 2007) | 4 lines
Change a quite broken while loop to a for loop, so "continue;" works as expected instead of eating 99% CPU...
Issue 9966, patch by me.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
cb8813a250
Merged revisions 67161 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r67161 | tilghman | 2007-06-04 18:41:49 -0500 (Mon, 04 Jun 2007) | 2 lines
According to MATH, 0+1181000386 = 1181000448. Oops.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
70b882702c
On some drivers, deallocating the statement handle isn't enough. We also have to clear the cursor (nice, Oracle)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
e21412d53d
Merged revisions 66537 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66537 | tilghman | 2007-05-29 16:49:35 -0500 (Tue, 29 May 2007) | 2 lines
If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return 0, not 1.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Dwayne M. Hubbard
f4fc851405
merged qwell's func_math patch for issue 9507
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Joshua Colp
1d4adc0174
Merged revisions 61804 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r61804 | file | 2007-04-25 14:52:50 -0400 (Wed, 25 Apr 2007) | 2 lines
Merge rewritten group counting support. No more storing data on the variable list of the channels. That was bad, mmmk? (issue #7497 reported by sabbathbh)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
1572777fa0
Merged revisions 61680 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r61680 | tilghman | 2007-04-18 21:30:18 -0500 (Wed, 18 Apr 2007) | 5 lines
Bug 9557 - Specifying the GetVar AMI action without a Channel parameter can
cause Asterisk to crash. The reason this needs to be fixed in the functions
instead of in AMI is because Channel can legitimately be NULL, such as when
retrieving global variables.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61681 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
c0aca26f30
Convert the RTPQOS function to just be additional parameter of the CHANNEL
...
function. This way, it will be possible for other RTP based channel drivers
to expose this information in the future.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
7246207bd8
Oops, this should have been a %d all along
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Joshua Colp
54a94c650b
Fix typo in help for CDR function. (issue #9295 reported by ajohnson)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
1771f9621d
Function works fine, but the documentation is backwards.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
2fd66654ac
Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized
...
to all zeroes. This fixes a case where it wasn't.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Kevin P. Fleming
07462b8d1b
add some inter-module dependencies
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
51bcb9d3be
Fix the FIELDQTY function to not crash. (reported by blitzrage and Corydon on IRC)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
290fd87817
Make func_strings build under dev mode. Didn't I do this today already in the berkeley DB?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
86f51691c5
Oops.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
a94d8f5bd8
Merged revisions 53074 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r53074 | tilghman | 2007-02-01 14:07:35 -0600 (Thu, 01 Feb 2007) | 2 lines
Bug 8965 - Allow FIELDQTY to work with both variables and dialplan functions
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
7e0a469bda
Merged revisions 53069 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r53069 | tilghman | 2007-02-01 13:13:53 -0600 (Thu, 01 Feb 2007) | 2 lines
No wonder FIELDQTY doesn't work with functions... the documentation in pbx.c was wrong
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
76eb4e76dc
Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.
...
Issue 8832, patch(es) by tgrman
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
8d0defa82b
Fix some instances where when loading func_odbc, a double-free could occur.
...
Also, remove an unneeded error message. If the failure condition is
actually a memory allocation failure, a log message will already be
generated automatically.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
525f5e6d75
Fix the REALTIME() dialplan function. ast_build_string() advances the string
...
pointer to the position to begin the next write into the buffer. So, this
pointer can not be used to copy the contents of the string later. The
beginning of the buffer must be saved. Interestingly enough, this code could
not have ever worked. (Pointed out by Sebb on IRC, thanks!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
ab43c25d33
Merged revisions 48955 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r48955 | russell | 2006-12-25 00:19:48 -0500 (Mon, 25 Dec 2006) | 6 lines
Fix an error introduced by copying and pasting the handling of the >= operator
for the MATH function. If a single equal sign was used as an operator, the
function would treat it is as if it were the >= operator. Now, it properly
handles it as an invalid operator.
(issue #8665 , patch by tempest1)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
8e900c7db7
use the proper variable type for these unixODBC API calls, eliminating warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
c2490f8e72
instead of initializing the curl library every time the CURL() function is invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
fda0dce406
STRFTIME() does not actually require an argument (issue 8540)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
be037061e8
might as well also document the raw values of the flag vars
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48017 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
f4b1302b95
A little bit of func_cdr documentation upgrade-- no bug# involved, although 8221 may have inspired it.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
039c552a47
Small documentation clarification for URIENCODE. (issue #8294 reported by salaud)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
d318976f4d
Issue #8089 - Fix the ENUM support (picking one record by number). Thanks otmar!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
2ba44e6b10
update the doc string for both AEL and extensions.conf users.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Paul Cadach
53024e3508
CHANNEL() function sometime mix parameter and value
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44809 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
88873fbafa
Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
d2d4833b79
Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@43933 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
70af28270d
Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
32d119746c
move ODBC API into ast_ namespace
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43311 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matthew Fredrickson
33ddb53663
Various updates from PCadach's chan_h323-live branch
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
4c937339e5
As per discussion on bug 7862, the problem wasn't the fact that the documentation differed from behavior, but rather that users are used to REGEX having that space after the double quote in 1.2.x. So, in keeping with history, I investigated a little deeper, and discovered that the change in behavior was due to the modification of the function to use the AST_DECLARE_APP_ARGS and AST_NONSTANDARD_APP_ARGS() to parse the args. The code to skip the blank was left out. So, what I did was add code to throw out the first blank (space or tab) after the double quote, IF IT IS THERE. If not, nothing is done.Verbage is added to the function description saying that the space is optional, and skipped if it is there. If a space is desired, then the documentation advises putting two spaces there. This should make it compatible for 1.2 users, and not mess up new users who are used to using it with no space. It WILL mess up new users who WANT a space. Hopefully, they will double check the doc strings for this func and add the extra space. Hopefully, this class of new user is very small.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Steve Murphy
a7b5ef30e7
With respect to bug 7862, the syntax and description are misleading to users. the syntax included a space after the double quotes between the regex and the data to match. I removed this from the function doc, and added some verbage to make this crystal clear, I hope.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
bfef0a23ff
Missing field terminator
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
f1b43be465
Some changes/fixes for func_curl. curl_global_init is only supposed to be called once, and if it returns non-zero, we need to give up on further executions with that instance. Additionally, let's set absolute timeout values for the CURL connections to try and prevent possible Zap (and possibly other channel tech) channel lockouts.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41900 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
05a695af72
everything that loads a config that needs a config file to run
...
now reports AST_MODULE_LOAD_DECLINE when loading if config file
is not there, also fixed an error in res_config_pgsql where it
had a non static function when it should.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41633 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
badabb5bb9
oops.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
42fc890acc
The behavior of REGEX when it did not match was not defined by the docs, so
...
define it to provide a result of "0" and change the code appropriately.
(issue #7805 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
d12f54f90b
GNU make already knows how to quietly ignore non-existent files in 'include' directives
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
0a27d8bfe5
merge new_loader_completion branch, including (at least):
...
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
6fec811743
Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
08b23695b4
Add 'l' option to CDR dialplan function which will cause it to pass the last CDR record to getvar instead of the first. (issue #7689 reported by voipgate)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
d99e7d4f8e
Move curl version test to autoconf script
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
000ba592b2
more Makefile cleanup and consistency stuff
...
don't reuse LIBS variable from top-level Makefile (oops)
build Asterisk binary after subdirs (preparing for embedded modules)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
748431f7b6
move rules file to prepare for generic rules file
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37222 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
ebc9c3765b
Merged revisions 37143 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r37143 | tilghman | 2006-07-06 08:47:23 -0500 (Thu, 06 Jul 2006) | 2 lines
Fix spelling/grammar (issue 7493)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
e3482f7f38
Don't attempt to run a regcomp if we haven't even parsed arguments correctly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
2465fd611c
Revert the previous change to FILTER and fix the embedded documentation instead.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
df2223416d
fix the parsing of options in the FILTER function to match the documentation.
...
(issue #7465 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
a579371f43
use new (separate) dependencies file from menuselect
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
e61d3d91f3
The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
...
support the new location for zaptel.h and tonezone.h
use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries
combine the common rules into a top-level Makefile.rules file
remove all (now) unnecessary stuff from subdir Makefiles
change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory)
alphabetize --with-<foo> options in configure script
enhance Net-SNMP support in configure script to provide a --with-netsnmp option
fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated
add 'optional package' usage to modules now that menuselect can output it
allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
53a56fcfe7
remove various commands that remove old modules since they have been there a
...
sufficient amount of time. Even if they happen to be still present, the main
Makefile will spit out a huge warning telling the user that modules not
installed by that run of "make install" are present in the modules directory.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35605 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
48ae9f0d4f
- convert the 'uninstall' target to use separate targets to process each
...
subdirectory instead of a for loop
- remove the FORCE target from the main Makefile and add the couple places
I used it to the .PHONY target. .PHONY does the same thing and is a built-in
more efficient way of doing it.
- add a bunch more targets to .PHONY ...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35503 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
55e8a60363
- specify that 'depend' is a .PHONY target
...
- use separate targets instead of a for loop for doing 'make depend' for
each sub directory
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35501 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
9db0520ff9
- specify that 'all' is a .PHONY target
...
- add a copyright header to the build_tools Makefile
- remove 'depend' from the 'all' target in agi/ and utils/ since it is handled
by the main Makefile already
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
c399a06450
add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets
...
since they are targets that do not have resulting files and are never listed
as prerequisites to real targets. Using .PHONY in this manner improves make
performance by never having to check for resulting files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
9f2a6516cf
don't blow up in the sub Makefiles if menuselect.makeopts is not present. This
...
is valid in some cases, such as "make clean".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34738 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
472c1ca282
simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
503f99e2e8
remove the need to have to re-run make after a default menuselect.makeopts
...
file is generated. This allows a fresh checkout of asterisk to be built
and installed with the standard "./configure && make && make install".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
e856010714
use module names, not file names, in menuselect
...
work around XML parsing bug in menuselect for default sounds package
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Olle Johansson
7a60aff3b1
Make tonezone writeable in CHANNEL() (from my old func_tonezone.c)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
7ea0f04a80
this file contained the body twice, so remove the second instance.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30699 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
92314f96c5
Deprecate SetGlobalVar, replacing it with a dialplan function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30677 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
b68fa7a8f2
Should use the named handle, not one hardcoded
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Mark Spencer
70defe19fe
Lets not commit things that cause Asterisk to break when config files aren't present.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
d2872c914d
- mark some applications deprecated that already have replacements
...
- add BLACKLIST and mark LookupBlacklist deprecated
- add transfercapability support to CHANNEL and mark SetTransferCapability
deprecated
(issue #7225 , Corydon)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
a96606b329
add DB_DELETE function for the common case of retrieving and deleting a key in
...
a single operation (issue #7214 , twilson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
9e81cc3e0c
Escaping commas within fields isn't always desireable.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
3d022d073a
fix the build of func_realtime and aelparse with MTX_PROFILE enabled
...
(issue #7187 , #7188 , casper)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
e08dc08ae2
Add SPRINTF dialplan function made by the ever insaneful Corydon (issue #7078 reported by Corydon76)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
912f9f9dc7
Argument macro janitor for func_odbc, fixes #7171
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
8047e8067e
fix bogus patch to allow setting the CDR amaflags. (The original patch in
...
issue #7166 was fine.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27269 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
dd0ee63009
allow func_cdr to set amaflags patch provided by
...
bug 7166
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
9fd91e0829
Merged revisions 27051 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r27051 | tilghman | 2006-05-11 18:02:57 -0500 (Thu, 11 May 2006) | 2 lines
Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
932c5c7fd7
use the channel lock wrappers (issue #7120 , Mithraen)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
04ecb29d03
remove almost all of the checks of the result from ast_strdupa() or alloca().
...
As it turns out, all of these checks were useless, because alloca will never
return NULL.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
3e2079e46c
Fix output delimiters and add prefix parameter to func_odbc #7025 (Corydon76)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
a7b1476058
Provide the ability to adjust txgain/rxgain on a channel level via the CHANNEL() function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24621 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
a21507a60a
suppress a compiler warning
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
2d5900391b
remove variable declarations in the middle of two blocks.
...
While at it, normalize the surrounding code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24495 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
BJ Weschke
a9281a1142
Introducing the REALTIME() dialplan function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
574e14cbea
Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
652ccf5037
more NULL "" equivalence in CLI fields.
...
Mark a place where we don't clear a buffer while we probably should.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
501ac5189c
update res_odbc to support pooled connections
...
(from tilghman's developer branch, res_odbc_rewrite)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21181 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
f32e294300
remove some unnecessary braces
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
b8317169d0
Compatibility fixes for loader changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
e43bc6634d
This rather large commit changes the way modules are loaded.
...
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely. Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.
Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.
I am just sorry that this change missed SVN version number 20000!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago