aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-10document special character interpretation.rizzo1-0/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26283 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10indentation fixesrizzo1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26282 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10prevent a warning for uninitialized variable.rizzo1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26281 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09implement the new sorting algorithm for extensions,rizzo1-13/+130
see the documentation near functions ext_cmp1() and ext_cmp(). All sorting decisions are now in one place so it is easy to revise them. NOTE the major change is that now most specific patterns come first, so there might be differences in how diaplans behave. If you really really really need to revert to the old sorting order while you adapt your dialplan, you can uncomment the '#if 0' line in ext_cmp(). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26216 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09various doxygen fixeskpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26170 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09remove duplicate atof() invokationrizzo1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26055 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09normalize code, remove some useless castsrizzo1-14/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26054 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09change some log_warning into log_debug rizzo1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09large rewrite of the extension matching code,rizzo1-563/+513
prerequisite to implement the specification defined yesterday. While I have been using this code for months now, the change is large so expect some instability. Also the new specification (sorting extension by match length etc.) is not implemented yet. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25928 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09misc fixupsrizzo1-6/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25925 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09remove trailing whitespacerizzo1-198/+198
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25914 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09more code simplifications.rizzo1-29/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25892 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09simplify matchcid()rizzo1-9/+18
define struct pbx_find_info for later use git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25861 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09more small simplificationsrizzo1-5/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25856 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08another function restructuredrizzo1-43/+27
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25749 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08more code restructuringrizzo1-26/+24
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25748 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08remove some common code in parsing function callsrizzo1-36/+29
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25747 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08more code restructuringrizzo1-52/+45
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25746 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08restructure a function reducing nesting depth.rizzo1-157/+142
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25717 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08fix indentation of a large block.rizzo1-74/+73
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25715 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08minor code restructuring in preparation for more work.rizzo1-11/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25683 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08localize some variablesrizzo1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25652 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08document th way extensions are sortedrizzo1-7/+27
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25613 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08 - convert the lists of switches to use the linked list macrosrussell1-146/+72
- remove some checks of the result of ast_mutex_lock, since it is not necessary (this would be a good project to add to the janitor projects list). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25443 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08remove an XXX commentrussell1-1/+1
- we can't use ast_true here because non-empty strings would no longer be evaluated as true document the return values of pbx_checkcondition() in doxygen format git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25411 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-05constify the argument to pbx_checkconditionrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02staticize the list heads from my recent conversions to list macrosrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01- convert the list of dialplan function to the list macrosrussell1-81/+43
- 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-01convert the applications list to the list macrosrussell1-80/+52
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23853 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29a bunch of conversion to ast_channel_*lock (issue #7058)russell1-17/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21simplify pbx_builtin_execiftimerizzo1-28/+22
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21906 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21simplify a functionrizzo1-27/+16
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21879 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21minor cleanuprizzo1-9/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21one more client for find_context_locked()rizzo1-20/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21localize a variable, and make a minor code rearrangement.rizzo1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19one more client for find_context_locked(),rizzo1-33/+18
plus a few minor fixes. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-19use a function, set_ext_pri(), to assign extension and priority.rizzo1-24/+26
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-19replace repeated code to walk contexts with a function,rizzo1-109/+69
find_context_locked() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21365 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18doh! don't double-increment the bracket count for embedded referenceskpfleming1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21236 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18don't ignore left-curly-braces when searching for the end of a ↵kpfleming1-1/+3
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-18simplify logic in various functions, remove unnecessary variablesrizzo1-60/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16simplify a couple of functions.rizzo1-22/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20679 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14misc. code cleanuprizzo1-19/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20169 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14constify a couple of function argumentsrizzo1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20138 f38db490-d61c-443f-a65b-d21fe96a405b
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