aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-5963/+0
- 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-14add MacroExclusive application, a Macro that only one call can executed atrussell1-0/+58
a time (issue #7366, Steve Davies, with mods by me as discussed in the report) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39681 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-14When taking a substring and a negative length is provided, instead of justrussell1-9/+13
ignoring it, allow this to mean that we want that many characters off of the end of the string so that ${EXTEN:0:$[${LEN(${EXTEN}) - 1]} can become ${EXTEN:0:-1}. (issue #7586, Corydon) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39659 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-23remove a stray newlinerussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38099 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-22ast_pbx_outgoing_cdr_failed() is not used outside of pbx.c so make it staticrussell1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38078 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-19merge Russell's 'hold_handling' branch, finally implementing music-on-hold ↵kpfleming1-2/+2
handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-08Support hold/unhold in Zap, update IAX2 parser to know about modern ↵markster1-2/+17
commands, forward hold/unhold in dial, add hold device state and implement holding in the SLA. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37318 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-26METERMAIDS:oej1-1/+1
----------- - Adding devicestate providers, a new architecture to add non-channel related device state information, like parking lots, queues, meetmes, vending machines and Windows 98 reboots (lots of blinking on those lights) - Adding provider for parking lots, so you can subscribe to the status of a parking lot - Adding provider for meetme, so you can have a blinking lamp for a meetme ( Example: exten => edvina,hint,meetme:1234 ) - Adding support for directed parking - set the PARKINGEXTEN before you manually call Park() and you will be parked on that space. If it's occupied, dialplan execution will continue. This work was sponsored by Voop A/S - www.voop.com git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36055 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-16Don't force a busy state that will break channel signalling if the channeloej1-2/+8
already is up. (Reported by Steve Davies in e-mail, waiting for 1.2 approval) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@34433 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-13Merged revisions 33813 via svnmerge from russell1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33813 | russell | 2006-06-13 08:40:40 -0400 (Tue, 13 Jun 2006) | 2 lines remove duplicate mutex_unlock ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-11Merged revisions 33548 via svnmerge from russell1-2/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33548 | russell | 2006-06-11 17:21:23 -0400 (Sun, 11 Jun 2006) | 2 lines fix another place where a frame does not get free'd ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33549 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-08Cleanup formatting a little...markster1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07move autoconfig.h to the include/asterisk directory so it will get installedkpfleming1-1/+0
install asterisk.h include the system's default include directory git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32860 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-4/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-30fix various typos and other bits (from Ian Kinner)kpfleming1-16/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-28Deprecate SetGlobalVar, replacing it with a dialplan functiontilghman1-0/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@30677 f38db490-d61c-443f-a65b-d21fe96a405b
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