aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
AgeCommit message (Collapse)AuthorFilesLines
2006-04-10remove support for BYEXTENSION (which nobody even knows about anymore)kpfleming1-4/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06minor formatting changes againrizzo1-34/+30
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17902 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05Merged revisions 17702 via svnmerge from file1-4/+10
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-03-31Merged revisions 16742 via svnmerge from kpfleming1-6/+21
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-30as discussed with Mark a few weeks ago, the 'newstack' argumentrizzo1-40/+22
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-29convert calloc and malloc+memset to ast_calloc and remove duplicate error ↵russell1-87/+44
messages git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16195 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29Merged revisions 16192 via svnmerge from tilghman1-1/+1
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-29another batch of cli simplifications.rizzo1-35/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16129 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29Merged revisions 16082 via svnmerge from tilghman1-5/+7
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-28let's format that output sanely instead :-(kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15816 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28make 'show hints' CLI command show context name for each hintkpfleming1-2/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15815 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-27Janitor work converting !ast_strlen_zero(a)?a:bmogorman1-2/+2
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-23ensure global variables lock is held during 'show globals' CLI commandkpfleming1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14519 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23correct typokpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23Replace ast_say_* functionn with function pointers, so that modulesrizzo1-0/+1
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-22Issue #6780 - ast_pbx_outgoing_cdr_failed description fix. (Reported and ↵file1-3/+2
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-21Bug 6745 - Fix for ranges that wrap around the endstilghman1-4/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13709 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-17move the definition of the mappings between extension states and their textrussell1-0/+12
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-14add an option to cdr.conf that enables ending CDRs before executingrussell1-0/+2
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-12add locking to protect the list of global dialplan variablesrussell1-11/+38
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12647 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-07added show globals and set global from oej's patchmogorman1-0/+41
bug 6506 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12430 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15Fix the retrieval of the new SYSTEMNAME variable. Also, clarify somerussell1-2/+7
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-14add 'systemname' option to prefix channel unique IDs with (issue #5825)kpfleming1-2/+4
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-12major dialplan functions updatekpfleming1-31/+30
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-11Merged revisions 9581 via svnmerge from russell1-5/+14
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-01use string fields for some stuff in ast_channelkpfleming1-3/+4
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-01-25use arg parsing macros for WaitExten and Background (issue #6185)russell1-56/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8687 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22prevent writing outside of the provided workspace when calculating arussell1-26/+23
substring (issue #6271) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8421 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21const-ify some fields in the ast_exten and ast_include structures (issue #6270)russell1-25/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21on this pass, only remove duplicate log messagesrussell1-20/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21finish reverting my pass through the tree to remove checks of the result ofrussell1-12/+34
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-21remove some useless checks after calls to ast_strduparussell1-34/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8362 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18constify arguments in more places where strings should not be modified ↵russell1-4/+4
(issue #6286) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17remove some more deprecated (pre-1.2) stuffkpfleming1-73/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8157 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 Another patch against this code (the right one now) to deal with cyclic ↵bweschke1-2/+2
ranges. #6230 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8059 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 Range should be inclusive, not exclusive, of the end of the range.bweschke1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8056 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12Remove unnecessary (but unexecutable) unlocks, cleanup code (bug #6220)markster1-3/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12Merge rizzo's range optimizations (bug #6101)markster1-174/+83
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8016 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11fix locking bug - lock instead of unlock (see commit to r7960 to branches/1.2)russell1-84/+76
store hint list using linked list macros git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7962 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-09Bug 6099 - cleanup of parse_variable_name and pbx_retrieve_variabletilghman1-210/+170
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7911 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04add memory-pool based string field management for structureskpfleming1-1/+1
convert chan_sip sip_pvt and sip_registry structures to use string fields add 'const' qualifiers to a few API calls that don't modify their input strings add an asprintf() wrapper to astmm git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7797 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03update copyright headers for files changed this yearkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7751 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-01clean up some loops and replace some duplicate code with a for loop (issue ↵russell1-33/+18
#6100) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7693 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30update doxygen docs to specify authorsrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27minor cleanups for another cli completion function ...russell1-7/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7661 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27avoid duplicate strlen calls for the command completion functions forrussell1-10/+12
'show application' and 'show applications' git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7660 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26- normalize some loopsrussell1-52/+43
- simplify and reduce code by keeping track of return value - replace some simple if/then sections with conditional expressions (issue #6065) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7639 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-26Bug 6057 - Deprecate builtins that have been replaced by functionstilghman1-1/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7633 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-24minor cleanups ...russell1-224/+141
- use for loops instead of while loops for basic list traversals - only calculate word length one time in CLI complete functions - use calloc instead of malloc + memset - remove some unnecessary casts - formatting tweaks git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7618 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-23Alphabetize the functions listtilghman1-2/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7615 f38db490-d61c-443f-a65b-d21fe96a405b