russell
0d37c9585d
staticize the list heads from my recent conversions to list macros
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02 04:40:09 +00:00
russell
f4e8696f01
- convert the list of dialplan function to the list macros
...
- add missing locking of the functions list in the "show functions" CLI command
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23950 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 15:09:51 +00:00
russell
eacc98d018
convert the applications list to the list macros
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23853 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01 03:14:21 +00:00
russell
06fbbd1989
a bunch of conversion to ast_channel_*lock (issue #7058 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29 14:50:18 +00:00
rizzo
8ebf64bddd
simplify pbx_builtin_execiftime
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21906 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 13:44:15 +00:00
rizzo
00c7615742
simplify a function
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21879 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 12:58:39 +00:00
rizzo
d8d540470f
minor cleanup
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 12:12:42 +00:00
rizzo
78de33e15b
one more client for find_context_locked()
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 11:30:02 +00:00
rizzo
ee68112134
localize a variable, and make a minor code rearrangement.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21 11:19:48 +00:00
rizzo
45d0c2be63
one more client for find_context_locked(),
...
plus a few minor fixes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 09:31:41 +00:00
rizzo
c8c4bc662e
use a function, set_ext_pri(), to assign extension and priority.
...
On passing, fix a bug in __ast_pbx_run() where the wrong priority
was used in a call to ast_exists_extension() (see comment in the code).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21392 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 09:18:30 +00:00
rizzo
fb843aa020
replace repeated code to walk contexts with a function,
...
find_context_locked()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21365 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19 08:52:15 +00:00
kpfleming
350446cca6
doh! don't double-increment the bracket count for embedded references
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21236 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 23:25:22 +00:00
kpfleming
7ddbf31401
don't ignore left-curly-braces when searching for the end of a variable/function reference; match them up with right-curly-braces so we choose the proper brace to end the reference (will still fail to parse properly if the reference contains unbalanced braces)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 23:24:02 +00:00
rizzo
3f25044e55
simplify logic in various functions, remove unnecessary variables
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18 13:37:07 +00:00
rizzo
84bbeee135
simplify a couple of functions.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20679 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16 21:57:02 +00:00
rizzo
277420d12b
misc. code cleanup
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20169 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 22:48:05 +00:00
rizzo
8cd540a042
constify a couple of function arguments
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20138 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 21:00:59 +00:00
kpfleming
31b2a51bfb
remove support for BYEXTENSION (which nobody even knows about anymore)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-10 23:01:22 +00:00
rizzo
bed083e083
minor formatting changes again
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17902 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 16:44:31 +00:00
file
d49bf25588
Merged revisions 17702 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r17702 | file | 2006-04-05 17:01:19 -0300 (Wed, 05 Apr 2006) | 2 lines
Unlock channel on failure so that ast_mutex_destroy doesn't throw a fit (issue #6647 reported by casper)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17726 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05 20:05:09 +00:00
kpfleming
9f975a210c
Merged revisions 16742 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r16742 | kpfleming | 2006-03-31 12:24:22 -0600 (Fri, 31 Mar 2006) | 2 lines
ensure that hint watchers (subscribers) cannot be added or removed while the dialplan is being modified
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16743 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 18:28:52 +00:00
rizzo
c977f70f81
as discussed with Mark a few weeks ago, the 'newstack' argument
...
in pbx_exec is always 1 so it can be removed.
This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 21:29:39 +00:00
russell
1431af3665
convert calloc and malloc+memset to ast_calloc and remove duplicate error messages
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16195 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 19:54:41 +00:00
tilghman
bedbd29a79
Merged revisions 16192 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r16192 | tilghman | 2006-03-29 13:11:18 -0600 (Wed, 29 Mar 2006) | 2 lines
Bug 6830 - Let GosubIf work with the same conditions as a GotoIf (change in API approved by Russell)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16193 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 19:30:57 +00:00
rizzo
c2d0a0894a
another batch of cli simplifications.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16129 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 16:51:51 +00:00
tilghman
83e4f560c1
Merged revisions 16082 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r16082 | tilghman | 2006-03-29 08:10:23 -0600 (Wed, 29 Mar 2006) | 2 lines
Bug 6835 - Updates to GotoIf help text
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16083 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 14:24:30 +00:00
kpfleming
bbd7baead7
let's format that output sanely instead :-(
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15816 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 22:14:50 +00:00
kpfleming
9fb8a9a6fd
make 'show hints' CLI command show context name for each hint
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15815 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 22:09:38 +00:00
mogorman
7f2b0a39ea
Janitor work converting !ast_strlen_zero(a)?a:b
...
to S_OR functions. from bug note 6805 with minor
modifications.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27 19:31:54 +00:00
kpfleming
4de046e80d
ensure global variables lock is held during 'show globals' CLI command
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14519 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23 21:16:46 +00:00
kpfleming
2fab0b4a84
correct typo
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23 21:06:26 +00:00
rizzo
72b5597185
Replace ast_say_* functionn with function pointers, so that modules
...
can override them.
On passing, fix a potential problem in the top level Makefile:
if a static library is not referenced by any of the core objects,
it is not linked in the main program, and will not be available
to modules, which leads to failure at runtime when the modules
are loaded.
This is the case of stdtime/localtime.o, which supplies some core
symbolx, but is only linked in as a library. Fix the problem by
linking in the object.
NOTE: this is intended as a temporary aid to replace the
existing say.c with a newer implementation. Once the
task is completed, we may decide whether or not the ast_say*()
functions should be pluggable or not and possibly revert
part of this change.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14382 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23 14:28:16 +00:00
file
2b16792999
Issue #6780 - ast_pbx_outgoing_cdr_failed description fix. (Reported and fixed by casper) - imported from 1.2
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14220 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-22 21:05:24 +00:00
tilghman
a991aeeac6
Bug 6745 - Fix for ranges that wrap around the ends
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13709 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-21 05:48:17 +00:00
russell
e69d1ded06
move the definition of the mappings between extension states and their text
...
representation into pbx.c so that every file that includes pbx.h does not
unnecessarily get a copy of it
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13357 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-17 21:39:36 +00:00
russell
9389382205
add an option to cdr.conf that enables ending CDRs before executing
...
the "h" extension as opposed to afterwards (issue #6193 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12896 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14 16:49:34 +00:00
russell
1a10f66c3d
add locking to protect the list of global dialplan variables
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12647 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-12 19:28:57 +00:00
mogorman
aeefcdabca
added show globals and set global from oej's patch
...
bug 6506
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12430 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-07 22:57:52 +00:00
russell
0896ace304
Fix the retrieval of the new SYSTEMNAME variable. Also, clarify some
...
documentation of how pbx_retrieve_variable works. (issue #6493 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 18:39:52 +00:00
kpfleming
69f7e69869
add 'systemname' option to prefix channel unique IDs with (issue #5825 )
...
convert chan->uniqueid to a stringfield from a fixed-size buffer
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10088 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 23:42:36 +00:00
kpfleming
5d9ed5739a
major dialplan functions update
...
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 04:28:58 +00:00
russell
0a0b84d8de
Merged revisions 9581 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r9581 | russell | 2006-02-11 13:15:00 -0500 (Sat, 11 Feb 2006) | 2 lines
now that CDR is a loadable module, don't depend on it elsewhere (issue #6460 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 18:31:59 +00:00
kpfleming
21d21f89c0
use string fields for some stuff in ast_channel
...
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 23:05:28 +00:00
russell
0e2d8be747
use arg parsing macros for WaitExten and Background (issue #6185 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8687 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-25 20:02:12 +00:00
russell
dca33b72ed
prevent writing outside of the provided workspace when calculating a
...
substring (issue #6271 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22 02:10:19 +00:00
russell
8234cfd106
const-ify some fields in the ast_exten and ast_include structures (issue #6270 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 23:05:19 +00:00
russell
252fb982f4
on this pass, only remove duplicate log messages
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
russell
b79bdab5cc
finish reverting my pass through the tree to remove checks of the result of
...
ast_strdupa, this one is revision 8362
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8401 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:20:06 +00:00
russell
708a7ca40e
remove some useless checks after calls to ast_strdupa
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8362 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 00:42:25 +00:00