aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-25Merge in branch which gives you the ability to set the hangup causecode ↵file1-3/+24
using the Hangup application. (issue #7160 reported by kmilitzer branch by jcollie) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30390 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-24Typo fix. Thanks Peter!oej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30010 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23Handle ringing (early) state properly on SIPmarkster1-0/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29619 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-19Fix tab completion when you just do a plain tab without entering anything, ↵file1-1/+3
and also fix show application tab completion. (issue #7089 reported by blitzrage) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28792 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 - The recent change to linklists.h broke the build on linux for some reason.russell1-3/+1
So, I have removed all of the uses of AST_LIST_HEAD_INIT and replaced them with the equivalent static initializations. - On passing, fix a memory leak in the unload_module() function of chan_agent. The agents list mutex was never destroyed, and the elements in the agents list were not freed. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26990 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11oops, missing ! in matchcid...rizzo1-1/+1
this should fix bug #7142 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11normalize the code to navigate through extensions and prioritiesrizzo1-28/+29
(use the walk_*() routines so we don't use the link fields directly, and slightly restructure the blocks to reduce the nesting depth). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26723 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11fix behaviour for earlymatch and matchmore.rizzo1-16/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26719 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10replace a macro with actual code;rizzo1-36/+38
mark dubious code with XXX. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26686 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10lock conlock before accessing the list.rizzo1-4/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26625 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10lots of comments trying to document the agreed behaviour ofrizzo1-11/+20
E_MATCHMORE and '!'. If the comments are correct, the code must be slightly changed (simplified). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26624 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().russell1-16/+11
As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
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