dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

210 Commits

Author SHA1 Message Date
rizzo 1b4ffa5248 rename the structs struct tone_zone_sound and struct tone_zone
defined in indications.h to ind_tone_zone_sound and ind_tone_zone,
to avoid conflicts with the structs with the same names
defined in tonezone.h

Hope i haven't missed any instance.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48958 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 06:38:09 +00:00
russell d5ae839795 Merged revisions 48956 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

................
r48956 | russell | 2006-12-25 00:21:20 -0500 (Mon, 25 Dec 2006) | 14 lines

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: http://svn.digium.com/svn/asterisk/trunk@48957 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 05:22:40 +00:00
russell 131cea90ac Simplify the if statements used to check to see if the argument was "num"
or "number".  It is not possible to ever reach the second part of this
conditional statement.

Thanks to my brother, Brett, for pointing this out.  :)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48951 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 02:31:04 +00:00
kpfleming 3f07ee6c8d Merged revisions 48577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48577 | kpfleming | 2006-12-19 08:57:09 -0600 (Tue, 19 Dec 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@48578 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19 14:57:45 +00:00
rizzo be65ff79d9 replace ast_build_string() with ast_str_*().
Unless i am very mistaken, function_realtime_read() was
broken in that it would always return an empty string
(because ast_build_string() advanced the pointer to the
end of the string, and there was no reference to the
initial value.

This commit should fix this problem.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48551 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-17 22:57:46 +00:00
kpfleming ad0e0a29d4 update to use trunk's version of the threadstorage API
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48526 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 21:24:08 +00:00
kpfleming 79a60fb124 Merged revisions 48513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48513 | kpfleming | 2006-12-15 22:25:09 -0600 (Fri, 15 Dec 2006) | 2 lines

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: http://svn.digium.com/svn/asterisk/trunk@48514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16 04:25:46 +00:00
tilghman 101927e5b1 Merged revisions 48382 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48382 | tilghman | 2006-12-10 23:37:09 -0600 (Sun, 10 Dec 2006) | 2 lines

STRFTIME() does not actually require an argument (issue 8540)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48384 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11 05:40:38 +00:00
rizzo c2fb9a8f0a remove an extra comma in an initializer
Detected by: AST_DEVMODE=yes



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48034 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-27 14:47:15 +00:00
murf d6bbc3a58c Merged revisions 48017 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48017 | murf | 2006-11-25 17:26:16 -0700 (Sat, 25 Nov 2006) | 1 line

might as well also document the raw values of the flag vars
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48018 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26 00:31:13 +00:00
murf 9481a291a2 Merged revisions 48015 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r48015 | murf | 2006-11-25 17:01:34 -0700 (Sat, 25 Nov 2006) | 1 line

A little bit of func_cdr documentation upgrade-- no bug# involved, although 8221 may have inspired it.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48016 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26 00:15:42 +00:00
pcadach 5b74ecfcfa Merged revisions 44809 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44809 | pcadach | 2006-10-10 23:44:54 +0700 (Втр, 10 Окт 2006) | 1 line

CHANNEL() function sometime mix parameter and value
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47718 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-16 08:18:41 +00:00
file c744624e6f Merged revisions 47625 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r47625 | file | 2006-11-14 16:30:44 -0500 (Tue, 14 Nov 2006) | 2 lines

Small documentation clarification for URIENCODE. (issue #8294 reported by salaud)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47626 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14 21:33:59 +00:00
oej 0c84a12d69 Issue #80898 - Restoring func_enum (otmar)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46635 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31 11:01:06 +00:00
oej d130b1904f show, list, view, display... whatever.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46514 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 21:56:48 +00:00
oej eb896134ce Adding dialplan function IFMODULE, so you can create dialplans that handle
various PBX installations and checks if a module is loaded before using
it.
	example IFMODULE(chan_sip3.so)

issue #6671 in the bug tracker, finally gone. Thanks to mithraen for keeping
it updated.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46513 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30 21:48:41 +00:00
murf 650179d98d This new function, VERSION(), created via bug report 8176, may help dialplan programmers in the future. In the meantime, they can use the algorithm I outline on the bug report notes; If anyone invents something better, I'd hope they post it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45724 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-19 22:06:27 +00:00
murf 6bda949bd6 update the doc string for both AEL and extensions.conf users.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45142 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-14 04:36:21 +00:00
tilghman dced8f07fd Merged revisions 44808 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r44808 | tilghman | 2006-10-10 11:42:19 -0500 (Tue, 10 Oct 2006) | 2 lines

Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44810 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-10 16:46:01 +00:00
file 773598e767 Timeout values are in seconds (issue #7122 reported by jmls)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44768 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-09 18:23:21 +00:00
pcadach d2747c97ad Extend CALLERID() function for "pres" and "ton" values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44685 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-07 14:45:49 +00:00
mogorman 4a1aaf52ae bug #8076 check option_debug before printing to debug channel.
patch provided in bugnote, with minor changes.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44253 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03 15:53:07 +00:00
file 3a27d3bc70 Merged revisions 43933 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r43933 | file | 2006-09-28 14:05:43 -0400 (Thu, 28 Sep 2006) | 2 lines

Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43934 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28 18:09:01 +00:00
tilghman d634012c4e Remove deprecated apps and funcs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43439 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21 19:35:29 +00:00
tilghman e8ef9fd3ba Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 20:40:39 +00:00
kpfleming 99788749f1 move ODBC API into ast_ namespace
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20 04:57:20 +00:00
mattf b759835a90 Various updates from PCadach's chan_h323-live branch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43294 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19 21:07:49 +00:00
murf 411f01b40e 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: http://svn.digium.com/svn/asterisk/trunk@42423 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08 16:44:38 +00:00
murf b644e296ba 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: http://svn.digium.com/svn/asterisk/trunk@42224 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07 04:23:00 +00:00
tilghman cfbbdd26d5 Missing field terminator
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42034 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-05 17:23:50 +00:00
bweschke c1f28d707c 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: http://svn.digium.com/svn/asterisk/trunk@41900 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 19:07:58 +00:00
mogorman 73925ee14a 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: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 21:00:20 +00:00
russell 71708ac949 oops.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41545 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 04:19:54 +00:00
russell 7ab2e8a729 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: http://svn.digium.com/svn/asterisk/trunk@41544 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31 04:07:35 +00:00
kpfleming 0ba6df7e01 GNU make already knows how to quietly ignore non-existent files in 'include' directives
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26 23:58:47 +00:00
kpfleming 8b0c007ad9 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: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21 02:11:39 +00:00
tilghman 69a1a8ff24 Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40632 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20 15:46:00 +00:00
file 3ce8f8c39b 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: http://svn.digium.com/svn/asterisk/trunk@40226 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-17 16:29:44 +00:00
tilghman e63bd04ff0 Move curl version test to autoconf script
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37678 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15 21:39:26 +00:00
kpfleming 51482ed964 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: http://svn.digium.com/svn/asterisk/trunk@37661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15 19:59:35 +00:00
kpfleming 84cc5e8bd0 move rules file to prepare for generic rules file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 21:04:28 +00:00
tilghman c3f025f5e6 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: http://svn.digium.com/svn/asterisk/trunk@37144 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06 13:50:54 +00:00
tilghman 668c080264 Don't attempt to run a regcomp if we haven't even parsed arguments correctly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36777 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03 06:32:35 +00:00
tilghman 14ce4301aa Revert the previous change to FILTER and fix the embedded documentation instead.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01 16:03:51 +00:00
russell 7940aa5a61 fix the parsing of options in the FILTER function to match the documentation.
(issue #7465)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36504 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01 14:42:42 +00:00
kpfleming 673e53a328 use new (separate) dependencies file from menuselect
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-25 08:50:14 +00:00
kpfleming 41af2260b7 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: http://svn.digium.com/svn/asterisk/trunk@35832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24 19:43:31 +00:00
russell c28707b6f1 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: http://svn.digium.com/svn/asterisk/trunk@35605 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23 01:29:41 +00:00
russell 9b1d7f9fa8 - 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: http://svn.digium.com/svn/asterisk/trunk@35503 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 15:38:13 +00:00
russell ddb0e59eb0 - 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: http://svn.digium.com/svn/asterisk/trunk@35501 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22 15:08:08 +00:00